﻿/*
Theme Name: Call Dan Veterans
Theme URI: https://veterans.calldan.co/
Author: Call Dan Homes & Loans
Description: Veteran-focused mortgage and Arizona real estate theme for Call Dan Homes & Loans.
Version: 1.0.28
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: call-dan-veterans
*/
:root {
    --navy: #10233f;
    --blue: #1f5f96;
    --gold: #d4af37;
    --gold-hover: #b89224;
    --red: var(--gold);
    --ink: #18202b;
    --muted: #617083;
    --line: #d9e0e8;
    --paper: #eef2f3;
    --warm: #f6f0e6;
    --mist: #e7edf1;
    --panel: #fbfaf7;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(16, 35, 63, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img, iframe { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-hover); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
#contact, #va-loans, #first-time, #areas, #education, #faq, #video {
    scroll-margin-top: 96px;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 240, 230, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); min-width: max-content; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue));
    font-weight: 800;
}
.brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; line-height: 1.15; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.header-cta, .button, .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    color: var(--navy);
    background: var(--gold);
    font-weight: 800;
    cursor: pointer;
}
.button:hover, .header-cta:hover, .wpcf7-submit:hover { color: var(--navy); background: var(--gold-hover); }
.button.secondary { color: var(--navy); background: var(--white); border: 1px solid rgba(255,255,255,0.7); }
.button.secondary:hover { color: var(--navy); background: #eef4f8; }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-media {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(16, 35, 63, 0.92), rgba(16, 35, 63, 0.66) 42%, rgba(16, 35, 63, 0.18)), url("veteran-family-closing-table-arizona-home-loans-hero.png");
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; padding: 100px 0 76px; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 0.98;
}
.hero-lede { max-width: 700px; margin: 24px 0 0; font-size: 1.25rem; color: #edf3f7; }
.hero-identity {
    max-width: 720px;
    margin: 18px 0 0;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
    color: #f7fbff;
    font-size: 1.06rem;
    font-weight: 800;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 840px;
    margin-top: 42px;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 7px;
    background: rgba(255,255,255,0.09);
    color: #f6f9fb;
    font-weight: 800;
}
.trust-strip svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--gold);
}

.intro-band {
    padding: 70px 0;
    background: var(--warm);
    border-block: 1px solid #ded4c7;
}
.section-band {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--mist), #dfe7eb);
    border-block: 1px solid #cbd6dc;
}
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; }
.hero h1 { color: var(--white); }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3vw, 3rem); }

.service-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    padding: 78px 0;
}
.service-card, .post-card, .contact-card, .article-aside {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.service-card { padding: 28px; }
.service-card.featured { grid-row: span 3; background: linear-gradient(150deg, var(--navy), #183a60); color: #eef3f8; }
.service-card.featured h2 { color: var(--white); }
.service-card:not(.featured) {
    border-top: 4px solid var(--gold);
}
.service-card ul { padding-left: 20px; }
.dan-feature-photo {
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}
.dan-feature-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
}
.dan-feature-photo figcaption {
    padding: 11px 13px;
    color: #f7fbff;
    font-size: 0.88rem;
    font-weight: 800;
}

.section-heading { max-width: 760px; margin-bottom: 30px; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.area-grid a {
    min-height: 86px;
    padding: 18px;
    display: flex;
    align-items: center;
    border: 1px solid #c8d3db;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--panel);
    color: var(--navy);
    font-weight: 900;
}

.split-section, .contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 78px 0;
}
.split-section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}
.contact-section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 70px;
    padding: 48px;
    border-radius: 8px;
    background: var(--warm);
    border: 1px solid #ded4c7;
    align-items: start;
}
.link-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.link-list a, .text-link { font-weight: 900; }
.video-panel { padding: 18px; border: 1px solid #c8d3db; border-radius: 8px; background: #dde7ec; }
.responsive-video { position: relative; aspect-ratio: 16 / 9; background: #0f1f38; border-radius: 6px; overflow: hidden; }
.responsive-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details { border: 1px solid #c8d3db; border-radius: 8px; background: var(--panel); padding: 20px; }
summary { color: var(--navy); font-weight: 900; cursor: pointer; }

.contact-card { padding: 24px; }
.contact-trust-panel {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #d8cfc2;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: rgba(255,255,255,0.42);
}
.contact-trust-panel h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}
.contact-trust-panel ul {
    margin: 0;
    padding-left: 20px;
}
.contact-trust-panel li {
    margin: 8px 0;
}
.contact-trust-panel p {
    margin: 18px 0 0;
    color: var(--navy);
    font-weight: 900;
}
label { display: block; color: var(--navy); font-weight: 800; margin-bottom: 14px; }
input, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid #bdc8d5;
    border-radius: 6px;
    font: inherit;
}
.wpcf7-form p { margin: 0 0 14px; }
.wpcf7-form label { margin-bottom: 0; }
.wpcf7-submit { width: auto; margin-top: 6px; }
.wpcf7-spinner { display: block; margin: 12px 0 0; }
.small { color: var(--muted); font-size: 0.86rem; }
.license { font-weight: 800; color: var(--navy); }
.footer-license {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.18);
    color: #f3f7fb;
    font-weight: 800;
}
.partner-logos {
    margin-top: 12px;
    max-width: 284px;
}
.partner-logos img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 284px;
}

.page-hero.compact { padding: 82px 0 56px; background: var(--navy); color: var(--white); }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-content, .content-list { padding: 58px 0; }
.content-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 18px; }
.post-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 6px; }
.post-meta { color: var(--muted); font-weight: 800; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; padding: 58px 0; }
.article-content > figure:first-child {
    margin: 0 0 28px;
}
.article-content .wp-post-image {
    aspect-ratio: 16 / 9;
    background: #f5f0e6;
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: none;
    object-fit: contain;
    width: 100%;
}
.article-content img { border-radius: 8px; height: auto; max-width: 100%; }
.article-aside { position: sticky; top: 110px; padding: 24px; align-self: start; }
.article-faq-title { margin-bottom: 18px; }
.article-faq-accordion { display: grid; gap: 10px; margin: 0 0 28px; }
.article-faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 30, 58, 0.06);
    overflow: hidden;
}
.article-faq-question {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 900;
    justify-content: space-between;
    padding: 18px 20px;
    text-align: left;
    width: 100%;
}
.article-faq-question::after {
    color: var(--gold);
    content: "+";
    flex: 0 0 auto;
    font-size: 1.45rem;
    line-height: 1;
    margin-left: 18px;
}
.article-faq-question[aria-expanded="true"]::after { content: "-"; }
.article-faq-question:focus-visible {
    outline: 3px solid rgba(216, 177, 58, 0.42);
    outline-offset: -3px;
}
.article-faq-answer {
    border-top: 1px solid var(--line);
    color: var(--navy);
    padding: 0 20px 18px;
}
.article-faq-answer p:last-child { margin-bottom: 0; }

.google-reviews-band {
    background: linear-gradient(180deg, var(--white) 0%, #f7fafc 100%);
    border-block: 1px solid var(--line);
    padding: 54px 0;
}
.google-reviews-head {
    align-items: end;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.1fr) auto;
    margin-bottom: 26px;
}
.google-reviews-head h2 {
    margin-bottom: 0;
}
.google-rating-pill {
    align-items: center;
    background: var(--white);
    border: 1px solid #cdd8e3;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.08);
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    white-space: nowrap;
}
.google-rating-pill strong {
    color: var(--navy);
}
.google-rating-pill span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}
.google-stars {
    color: #fbbc04;
    font-size: 1.05rem;
    letter-spacing: 0;
}
.google-review-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.google-review-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(16, 35, 63, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 22px;
}
.google-review-card .google-stars {
    margin-bottom: 14px;
}
.google-review-copy {
    color: #273a50;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 20px;
}
.google-review-author {
    border-top: 1px solid #e5ebf1;
    color: var(--navy);
    font-weight: 900;
    padding-top: 14px;
}
.google-review-author span {
    color: var(--muted);
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    margin-top: 3px;
}
.google-reviews-empty {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(16, 35, 63, 0.07);
    color: #273a50;
    max-width: 760px;
    padding: 26px;
}
.google-reviews-empty p {
    margin: 10px 0 0;
}
.google-reviews-actions {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.95rem;
    gap: 20px;
    justify-content: space-between;
    margin-top: 24px;
}
.google-reviews-link {
    flex: 0 0 auto;
}
.google-reviews-buttons {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}
.google-reviews-buttons .button.secondary {
    background: var(--white);
    border: 1px solid #cdd8e3;
    color: var(--navy);
}
.google-reviews-buttons .button.secondary:hover {
    background: #f3f7fb;
}

.site-footer { padding: 58px 0 24px; background: #0f1f38; color: #dce5ee; }
.site-footer h2, .footer-brand { color: var(--white); }
.footer-brand { font-size: 1.35rem; font-weight: 900; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.8fr 1.1fr; gap: 36px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #f3f7fb; }
.compliance-logos {
    margin-top: 16px;
    max-width: 130px;
}
.compliance-logos img {
    display: block;
    height: auto;
    max-width: 100%;
    max-height: 41px;
    object-fit: contain;
    object-position: left center;
    width: 100%;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); color: #b7c4d2; }

@media (max-width: 900px) {
    .header-inner { min-height: 68px; }
    .nav-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--white); padding: 9px 12px; font-weight: 900; }
    .primary-nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 20px; }
    .nav-open .primary-nav { display: block; }
    .primary-nav ul { display: grid; gap: 14px; }
    .header-cta { display: none; }
    .hero { min-height: 650px; }
    .hero-media { background-image: linear-gradient(90deg, rgba(16, 35, 63, 0.94), rgba(16, 35, 63, 0.68)), url("veteran-family-closing-table-arizona-home-loans-hero.png"); }
    .intro-grid, .service-grid, .split-section, .contact-section, .footer-grid, .article-layout, .google-reviews-head, .google-review-grid { grid-template-columns: 1fr; }
    .service-card.featured { grid-row: auto; }
    .area-grid, .faq-grid { grid-template-columns: 1fr 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .partner-logos, .compliance-logos { max-width: min(100%, 284px); }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1120px); }
    .hero { min-height: 700px; }
    .hero-content { padding: 74px 0 48px; }
    .hero h1 { font-size: 2.35rem; }
    .hero-lede { font-size: 1.05rem; }
    .area-grid, .faq-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .google-rating-pill, .google-reviews-actions { align-items: flex-start; flex-direction: column; }
    .google-reviews-buttons { justify-content: flex-start; }
    .compliance-logos { max-width: 124px; }
}

