/*
Theme Name: Alvorada Mortgage
Theme URI: https://www.alvoradamortgage.com/
Author: Alvorada Mortgage
Description: Custom trilingual (English / Portuguese / Spanish) theme for Alvorada Mortgage, LLC - mortgage broker serving the Brazilian community in Georgia and Florida. Brazilian flag color scheme, native language pages, PDF reports library, mortgage calculators, OptimalBlue rate widget.
Version: 3.0
Requires PHP: 7.4
License: Proprietary
Text Domain: alvorada
*/

/* ============================================
   CSS VARIABLES - Brazilian Flag Colors
   ============================================ */
:root {
    --green-dark: #006B3F;
    --green-primary: #009C3B;
    --green-light: #00B847;
    --green-pale: #E8F5E9;
    --yellow-dark: #D4A017;
    --yellow-primary: #FFDF00;
    --yellow-light: #FFF176;
    --yellow-pale: #FFFDE7;
    --blue-dark: #001A4D;
    --blue-primary: #002776;
    --blue-light: #1A4D99;
    --blue-pale: #E3F2FD;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    --black: #212529;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --section-padding: 80px 0;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --radius: 8px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-secondary); color: var(--gray-dark); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; line-height: 1.2; color: var(--blue-dark); }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--green-primary); transition: var(--transition); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* ============================================
   LANGUAGE BAR
   ============================================ */
.language-bar {
    background: var(--blue-dark);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.language-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.language-bar .top-contact {
    color: var(--white);
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
    align-items: center;
}
.language-bar .top-contact a { color: var(--yellow-primary); }
.language-bar .top-contact a:hover { color: var(--yellow-light); }
.language-bar .top-contact svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; }
.language-switcher { display: flex; align-items: center; gap: 8px; }
.language-switcher .lang-label { color: rgba(255,255,255,0.7); font-size: 0.8rem; font-family: var(--font-primary); }
.lang-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn:hover, .lang-btn.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
}
.lang-btn .flag { font-size: 1.1rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 88px; width: auto; max-width: none; background: transparent; transition: var(--transition); }
.site-header.scrolled .site-logo img { height: 64px; }

/* Navigation */
.nav-menu { display: flex; list-style: none; gap: 5px; align-items: center; }
.nav-menu li { position: relative; }
.nav-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--gray-dark);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu .active > a { color: var(--green-primary); background: var(--green-pale); }

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; background: var(--white);
    min-width: 240px; box-shadow: var(--shadow-lg); border-radius: var(--radius);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); list-style: none; z-index: 100;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { padding: 10px 20px; font-size: 0.85rem; text-transform: none; border-radius: 0; }
.nav-menu .sub-menu a:hover { background: var(--green-pale); padding-left: 25px; }
.nav-menu .has-children > a::after { content: '\25BE'; margin-left: 5px; font-size: 0.7rem; }

/* Nav CTA */
.nav-cta a {
    background: var(--green-primary) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}
.nav-cta a:hover {
    background: var(--green-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer; padding: 10px;
    flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 28px; height: 3px; background: var(--blue-dark); border-radius: 2px; transition: var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-family: var(--font-primary); font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--green-primary); color: var(--white); border-color: var(--green-primary); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,156,59,0.4); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--yellow-primary); }
.btn-secondary:hover { background: var(--yellow-primary); color: var(--blue-dark); transform: translateY(-3px); }
.btn-gold { background: var(--yellow-primary); color: var(--blue-dark); border-color: var(--yellow-primary); }
.btn-gold:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--white); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--green-primary); border-color: var(--green-primary); }
.btn-outline:hover { background: var(--green-primary); color: var(--white); transform: translateY(-3px); }

/* ============================================
   HERO
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--blue-light) 100%);
    padding: 100px 0 80px; position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; background: radial-gradient(circle, var(--green-primary) 0%, transparent 70%);
    opacity: 0.1; border-radius: 50%;
}
.hero-section::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px; background: radial-gradient(circle, var(--yellow-primary) 0%, transparent 70%);
    opacity: 0.08; border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero-text h1 span { color: var(--yellow-primary); display: block; }
.hero-text p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 35px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat { text-align: center; }
.hero-stat .number { font-family: var(--font-primary); font-size: 2rem; font-weight: 800; color: var(--yellow-primary); display: block; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--section-padding); }
.section-light { background: var(--off-white); }
.section-green { background: linear-gradient(135deg, var(--green-dark), var(--green-primary)); color: var(--white); }
.section-blue { background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary)); color: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .overline {
    display: inline-block; font-family: var(--font-primary); font-size: 0.85rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--green-primary); margin-bottom: 12px;
}
.section-green .section-header .overline, .section-blue .section-header .overline { color: var(--yellow-primary); }
.section-header h2 { margin-bottom: 16px; }
.section-green .section-header h2, .section-blue .section-header h2 { color: var(--white); }
.section-header p { max-width: 700px; margin: 0 auto; color: var(--gray-medium); font-size: 1.1rem; }
.section-green .section-header p, .section-blue .section-header p { color: rgba(255,255,255,0.8); }

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px 30px;
    text-align: center; transition: var(--transition); border: 1px solid var(--gray-light);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--yellow-primary));
    transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
    width: 70px; height: 70px; margin: 0 auto 20px; background: var(--green-pale);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.service-card:hover .icon { background: var(--green-primary); }
.service-card .icon svg { width: 32px; height: 32px; fill: var(--green-primary); transition: var(--transition); }
.service-card:hover .icon svg { fill: var(--white); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--gray-medium); font-size: 0.95rem; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-weight: 600; font-size: 0.9rem; color: var(--green-primary); }
.service-card .card-link:hover { gap: 10px; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-features { display: grid; gap: 24px; }
.why-feature { display: flex; gap: 20px; align-items: flex-start; }
.why-feature .feature-icon {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px;
    background: var(--yellow-pale); display: flex; align-items: center; justify-content: center;
}
.why-feature .feature-icon svg { width: 24px; height: 24px; fill: var(--yellow-dark); }
.why-feature h4 { margin-bottom: 6px; }
.why-feature p { color: var(--gray-medium); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================
   TEAM
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.team-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-card .photo {
    position: relative; overflow: hidden; height: 300px;
    background: linear-gradient(135deg, var(--blue-primary), var(--green-primary));
    display: flex; align-items: center; justify-content: center;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .info { padding: 25px 20px; }
.team-card .info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.team-card .info .role {
    color: var(--green-primary); font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 12px;
}
.team-card .info .phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-medium); font-size: 0.95rem; }

/* ============================================
   CALCULATOR
   ============================================ */
.calculator-section { background: var(--off-white); }
.calculator-wrapper {
    max-width: 800px; margin: 0 auto; background: var(--white);
    border-radius: var(--radius-lg); padding: 50px; box-shadow: var(--shadow-md);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-family: var(--font-primary); font-weight: 600; font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 8px; }
.form-group input, .form-group select {
    padding: 12px 16px; border: 2px solid var(--gray-light); border-radius: var(--radius);
    font-family: var(--font-secondary); font-size: 1rem; color: var(--gray-dark); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(0,156,59,0.1); }
.calc-result {
    text-align: center; padding: 30px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    border-radius: var(--radius-lg); color: var(--white); transition: var(--transition);
}
.calc-result .payment-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; opacity: 0.8; }
.calc-result .payment-amount { font-family: var(--font-primary); font-size: 3rem; font-weight: 800; }
.calc-result .payment-breakdown {
    display: flex; justify-content: center; gap: 30px; margin-top: 20px;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2);
}
.calc-result .breakdown-item { text-align: center; }
.calc-result .breakdown-item .value { font-weight: 700; font-size: 1.1rem; display: block; }
.calc-result .breakdown-item .label { font-size: 0.8rem; opacity: 0.7; }

/* ============================================
   TOOLS
   ============================================ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.tool-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 30px;
    text-align: center; border: 2px solid var(--gray-light); transition: var(--transition); cursor: pointer;
    display: block;
}
.tool-card:hover { border-color: var(--green-primary); transform: translateY(-5px); box-shadow: var(--shadow-md); color: inherit; }
.tool-card .tool-icon {
    width: 60px; height: 60px; margin: 0 auto 16px; background: var(--blue-pale);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.tool-card .tool-icon svg { width: 28px; height: 28px; fill: var(--blue-primary); }
.tool-card h4 { margin-bottom: 8px; font-size: 1.1rem; }
.tool-card p { color: var(--gray-medium); font-size: 0.9rem; margin-bottom: 0; }

/* ============================================
   LOAN CARDS
   ============================================ */
.loan-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.loan-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.loan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.loan-card .loan-header {
    padding: 25px 30px; background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
    color: var(--white); display: flex; align-items: center; gap: 16px;
}
.loan-card .loan-header .loan-icon {
    width: 50px; height: 50px; background: rgba(255,255,255,0.15); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.loan-card .loan-header .loan-icon svg { width: 24px; height: 24px; fill: var(--yellow-primary); }
.loan-card .loan-header h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0; }
.loan-card .loan-body { padding: 25px 30px; }
.loan-card .loan-body p { color: var(--gray-medium); font-size: 0.95rem; }
.loan-card .loan-body ul { list-style: none; margin-top: 15px; }
.loan-card .loan-body ul li { padding: 8px 0; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.loan-card .loan-body ul li:last-child { border-bottom: none; }
.loan-card .loan-body ul li::before { content: '\2713'; color: var(--green-primary); font-weight: 700; }

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { height: 220px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .thumb img { transform: scale(1.08); }
.blog-card .thumb .category {
    position: absolute; top: 16px; left: 16px; background: var(--green-primary); color: var(--white);
    padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.blog-card .blog-content { padding: 25px; }
.blog-card .blog-meta { display: flex; gap: 15px; margin-bottom: 12px; font-size: 0.85rem; color: var(--gray-medium); }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: var(--blue-dark); }
.blog-card h3 a:hover { color: var(--green-primary); }
.blog-card .excerpt { color: var(--gray-medium); font-size: 0.9rem; margin-bottom: 15px; }
.blog-card .read-more { font-weight: 600; font-size: 0.9rem; color: var(--green-primary); display: inline-flex; align-items: center; gap: 6px; }
.blog-card .read-more:hover { gap: 10px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-cards { display: grid; gap: 20px; }
.contact-card { display: flex; gap: 20px; padding: 25px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-card .icon-wrap {
    flex-shrink: 0; width: 50px; height: 50px; background: var(--green-pale);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-wrap svg { width: 22px; height: 22px; fill: var(--green-primary); }
.contact-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p, .contact-card a { color: var(--gray-medium); font-size: 0.95rem; margin-bottom: 0; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form textarea {
    padding: 12px 16px; border: 2px solid var(--gray-light); border-radius: var(--radius);
    font-family: var(--font-secondary); font-size: 1rem; color: var(--gray-dark);
    width: 100%; min-height: 140px; resize: vertical; transition: var(--transition);
}
.contact-form textarea:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(0,156,59,0.1); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"] {
    width: 100%; padding: 12px 16px; border: 2px solid var(--gray-light); border-radius: var(--radius);
    font-family: var(--font-secondary); font-size: 1rem; color: var(--gray-dark); transition: var(--transition);
}
.contact-form input:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(0,156,59,0.1); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
    padding: 70px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 400px; height: 400px; background: radial-gradient(circle, var(--yellow-primary) 0%, transparent 70%);
    opacity: 0.1; border-radius: 50%;
}
.cta-banner h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,0.7); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--green-primary); border-radius: 2px; }
.footer-about .footer-logo { height: 90px; margin-bottom: 16px; background: var(--white); padding: 10px; border-radius: var(--radius); }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--yellow-primary); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.footer-contact-item svg { width: 18px; height: 18px; fill: var(--green-primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--yellow-primary); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--green-primary); transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; margin-bottom: 4px; }
.footer-bottom .disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); max-width: 800px; margin: 10px auto 0; line-height: 1.6; }

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary)); padding: 80px 0 60px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 12px; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.page-hero .breadcrumb a { color: var(--yellow-primary); }
.page-content { padding: 60px 0; }

/* ============================================
   BLOG LAYOUT
   ============================================ */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 60px 0; }
.blog-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-widget { background: var(--white); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-light); }
.sidebar-widget .category-list { list-style: none; }
.sidebar-widget .category-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-light); }
.sidebar-widget .category-list li:last-child { border-bottom: none; }
.sidebar-widget .category-list a { color: var(--gray-dark); font-size: 0.9rem; display: flex; justify-content: space-between; }
.sidebar-widget .category-list a:hover { color: var(--green-primary); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   PREVIEW BANNER
   ============================================ */
.preview-banner {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white; text-align: center; padding: 10px;
    font-family: var(--font-primary); font-weight: 700; font-size: 0.85rem;
    position: relative; z-index: 9999;
}
.preview-banner a { color: white; text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
    .nav-menu a { font-size: 0.74rem; padding: 9px 8px; letter-spacing: 0.3px; }
    .nav-cta a { padding: 9px 16px !important; }
    .site-logo img { height: 72px; }
    .site-header.scrolled .site-logo img { height: 56px; }
}
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; }
    .main-navigation {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px;
        height: 100vh; background: var(--white); box-shadow: var(--shadow-lg);
        padding: 80px 30px 30px; transition: var(--transition); z-index: 999; overflow-y: auto;
    }
    .main-navigation.active { right: 0; }
    .nav-menu { flex-direction: column; gap: 0; }
    .nav-menu a { padding: 14px 16px; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; }
    .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 20px; }
    .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; }
    .nav-overlay.active { display: block; }
}
@media (max-width: 768px) {
    :root { --section-padding: 50px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    /* Compact single-row language bar: phone + email icon + switcher.
       The street address is hidden (it lives in the footer and contact page). */
    .language-bar { padding: 6px 0; }
    .language-bar .container { flex-direction: row; gap: 10px; }
    .language-bar .top-contact { gap: 12px; font-size: 0.8rem; flex-shrink: 1; min-width: 0; }
    .language-bar .top-contact span { display: none; }
    .language-bar .top-contact a[href^="mailto:"] { font-size: 0; line-height: 0; }
    .language-bar .top-contact a[href^="mailto:"] svg { width: 17px; height: 17px; margin-right: 0; }
    .language-bar .top-contact a { white-space: nowrap; }
    .hero-text h1 { font-size: 2.2rem; }
    /* Wrap the stats row so it cannot force the hero wider than the screen */
    .hero-stats { flex-wrap: wrap; gap: 20px 28px; justify-content: center; }
    /* Let the OptimalBlue rate widget keep a readable width and scroll
       sideways inside its card instead of squeezing to the screen width */
    iframe[src*="obmmi"] { min-width: 700px; }
    div:has(> iframe[src*="obmmi"]) { justify-content: flex-start; }
    .calc-grid { grid-template-columns: 1fr; }
    .calculator-wrapper { padding: 30px 20px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid, .team-grid, .loan-types-grid, .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .language-bar .top-contact { gap: 8px; font-size: 0.75rem; }
    .lang-btn { padding: 4px 10px; font-size: 0.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .cta-banner h2 { font-size: 1.8rem; }
}

/* Google Translate overrides */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }
body > .skiptranslate { display: none !important; }
.goog-te-gadget { font-family: var(--font-primary) !important; font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
    background: transparent; border: 2px solid rgba(255,255,255,0.3); color: var(--white);
    padding: 4px 12px; border-radius: 4px; font-size: 0.85rem; font-family: var(--font-primary);
    font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.goog-te-gadget .goog-te-combo option { color: #333; background: #fff; }

.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }

/* ============================================
   PDF REPORT CARDS
   ============================================ */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.report-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--gray-light); transition: var(--transition);
    display: flex; flex-direction: column;
}
.report-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.report-card .r-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.report-card .r-icon {
    flex-shrink: 0; width: 48px; height: 56px; border-radius: 6px; position: relative;
    background: linear-gradient(160deg, var(--blue-primary), var(--blue-dark));
    display: flex; align-items: center; justify-content: center;
}
.report-card .r-icon::after {
    content: 'PDF'; color: var(--yellow-primary); font-family: var(--font-primary);
    font-weight: 800; font-size: 0.7rem; letter-spacing: 1px;
}
.report-card .r-icon::before {
    content: ''; position: absolute; top: 0; right: 0; border-style: solid;
    border-width: 0 14px 14px 0; border-color: var(--off-white) var(--off-white) var(--green-primary) var(--green-primary);
    border-radius: 0 0 0 4px;
}
.report-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0; }
.report-card .r-desc { color: var(--gray-medium); font-size: 0.92rem; flex-grow: 1; }
.report-card .r-meta { font-size: 0.78rem; color: var(--gray-medium); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-primary); font-weight: 600; margin: 12px 0; }
.report-card .btn { padding: 10px 22px; font-size: 0.85rem; align-self: flex-start; }
.cat-anchors { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cat-anchors a {
    background: var(--white); border: 2px solid var(--gray-light); border-radius: 50px;
    padding: 8px 20px; font-family: var(--font-primary); font-weight: 600; font-size: 0.85rem;
    color: var(--gray-dark);
}
.cat-anchors a:hover { border-color: var(--green-primary); color: var(--green-primary); }

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
    background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3); z-index: 9998; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #FFFFFF; }
.whatsapp-float .wa-label {
    position: absolute; right: 70px; background: var(--blue-dark); color: var(--white);
    padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-family: var(--font-primary);
    font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: var(--transition);
}
.whatsapp-float:hover .wa-label { opacity: 1; visibility: visible; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 22px 60px 22px 25px; font-family: var(--font-primary); font-weight: 700;
    font-size: 1.05rem; color: var(--blue-dark); position: relative; transition: var(--transition);
}
.faq-question::after {
    content: '+'; position: absolute; right: 25px; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--green-primary); transition: var(--transition);
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-item.open .faq-question { color: var(--green-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 25px 22px; color: var(--gray-medium); font-size: 0.95rem; }

/* ============================================
   COMPARISON (Broker vs Lender)
   ============================================ */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.comparison-col { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-col .comp-header { padding: 25px 30px; text-align: center; color: var(--white); }
.comparison-col .comp-header h3 { color: var(--white); font-size: 1.3rem; margin: 0; }
.comparison-col .comp-header .comp-sub { font-size: 0.85rem; opacity: 0.85; }
.comparison-col.comp-broker .comp-header { background: linear-gradient(135deg, var(--green-dark), var(--green-primary)); }
.comparison-col.comp-lender .comp-header { background: linear-gradient(135deg, var(--gray-medium), var(--gray-dark)); }
.comparison-col ul { list-style: none; padding: 25px 30px; }
.comparison-col ul li { padding: 10px 0; border-bottom: 1px solid var(--gray-light); font-size: 0.95rem; display: flex; gap: 10px; align-items: flex-start; }
.comparison-col ul li:last-child { border-bottom: none; }
.comparison-col.comp-broker ul li::before { content: '\2713'; color: var(--green-primary); font-weight: 700; }
.comparison-col.comp-lender ul li::before { content: '\2717'; color: #C0392B; font-weight: 700; }

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.process-step { background: var(--white); border-radius: var(--radius-lg); padding: 35px 25px; text-align: center; box-shadow: var(--shadow-sm); position: relative; transition: var(--transition); }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-step .step-number {
    width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    color: var(--white); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-primary); font-weight: 800; font-size: 1.4rem;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { color: var(--gray-medium); font-size: 0.9rem; margin-bottom: 0; }

/* ============================================
   RATE WIDGET
   ============================================ */
.rate-widget {
    max-width: 800px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-light); padding: 60px 40px; text-align: center;
}
.rate-widget .rate-icon {
    width: 70px; height: 70px; margin: 0 auto 20px; background: var(--green-pale); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.rate-widget .rate-icon svg { width: 32px; height: 32px; fill: var(--green-primary); }
.rate-widget h3 { margin-bottom: 12px; }
.rate-widget p { color: var(--gray-medium); max-width: 520px; margin: 0 auto 25px; }
.rate-disclaimer { max-width: 800px; margin: 40px auto 0; padding: 20px 25px; background: var(--yellow-pale); border-left: 4px solid var(--yellow-dark); border-radius: var(--radius); font-size: 0.85rem; color: var(--gray-medium); }

/* ============================================
   PAGINATION & SEARCH
   ============================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 14px; border-radius: var(--radius); font-family: var(--font-primary); font-weight: 600; font-size: 0.9rem;
    background: var(--white); color: var(--gray-dark); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.pagination .current { background: var(--green-primary); color: var(--white); }
.pagination a:hover { background: var(--green-pale); color: var(--green-dark); }
.search-box { display: flex; gap: 0; }
.search-box input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--gray-light); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-secondary); font-size: 0.95rem;
}
.search-box input:focus { outline: none; border-color: var(--green-primary); }
.search-box button {
    background: var(--green-primary); color: var(--white); border: none; padding: 0 18px;
    border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; transition: var(--transition);
}
.search-box button:hover { background: var(--green-dark); }
.search-box button svg { width: 18px; height: 18px; fill: var(--white); }

/* ============================================
   MISC INNER-PAGE HELPERS
   ============================================ */
.info-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.prose { max-width: 800px; margin: 0 auto; font-size: 1.05rem; color: var(--gray-dark); }
.prose p { margin-bottom: 1.2rem; }
.two-col-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.testimonial-card .stars { color: var(--yellow-dark); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 12px; }
.testimonial-card .quote { font-style: italic; color: var(--gray-medium); font-size: 0.95rem; }
.testimonial-card .author { font-family: var(--font-primary); font-weight: 700; color: var(--blue-dark); margin-top: 14px; margin-bottom: 0; font-size: 0.9rem; }
.form-response { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--green-pale); color: var(--green-dark); font-weight: 600; }
@media (max-width: 768px) {
    .comparison-grid, .two-col-cards { grid-template-columns: 1fr; }
}
