﻿/* ====================================
   MODERN MORTGAGE BROKER SITE - 2025
   Mobile-First, Conversion-Optimized
   GOLD THEME - #c59617
   ==================================== */

/* === CSS Variables === */
:root {
    --primary-color: #c59617;
    --primary-dark: #a07d13;
    --primary-light: #d4a940;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Sections === */
.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
}

/* === Mobile CTA Bar === */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-cta-bar .cta-button {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.cta-call {
    background: var(--primary-color);
    color: white;
}

.cta-call:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cta-quote {
    background: var(--secondary-color);
    color: white;
}

.cta-quote:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* === Header/Navigation === */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.nav-tagline {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: 24px;
}

.nav-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-phone {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
}

/* === Navigation Dropdown === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    display: inline-block;
    pointer-events: none;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
    list-style: none;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #c59617 0%, #a07d13 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23c59617" width="1200" height="600"/><path fill="%23a07d13" opacity="0.3" d="M0 400 Q300 300 600 400 T1200 400 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 80px 0 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-item {
    color: white;
    font-size: 0.9375rem;
}

.trust-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* === Buttons === */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.button-primary {
    background: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.button-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.button-block {
    display: block;
    width: 100%;
}

/* === Rates Banner === */
.rates-banner {
    background: white;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 20px;
}

.rate-item {
    text-align: center;
}

.rate-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.rate-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.rate-apr {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.rates-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.rates-disclaimer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* === Services === */
.services-grid {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    padding-left: 0;
    margin-bottom: 24px;
}

.service-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-gray);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* === Calculator === */
.calculator-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    color: var(--text-gray);
    font-weight: 600;
}

.input-prefix {
    left: 16px;
}

.input-suffix {
    right: 16px;
}

.input-with-prefix input {
    padding-left: 36px;
}

.input-with-prefix input[type="number"]:has(~ .input-suffix) {
    padding-right: 36px;
}

input[type=number], input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(197, 150, 23, 0.1);
}

.input-helper {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.calculator-results {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.result-main {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.result-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.result-sublabel {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.result-breakdown {
    margin-bottom: 24px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span {
    color: var(--text-gray);
}

.breakdown-item strong {
    color: var(--text-dark);
}

.result-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-top: 16px;
}

/* === Quote/Apply CTA Section === */
.quote-wrapper-simple {
    max-width: 700px;
    margin: 0 auto;
}

.quote-cta-card {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 3px solid var(--primary-color);
}

.quote-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.quote-cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.quote-cta-card .quote-intro {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.quote-cta-card .quote-benefits {
    text-align: left;
    margin-bottom: 40px;
}

.quote-cta-card .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
    margin-bottom: 16px;
}

.quote-cta-card .benefit-item svg {
    flex-shrink: 0;
}

.quote-cta-card .form-privacy {
    margin-top: 24px;
    font-size: 1rem;
    color: var(--text-gray);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
}

.benefit-item svg {
    flex-shrink: 0;
}

/* === Reviews === */
.reviews-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.review-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author strong {
    color: var(--text-dark);
}

.review-author span {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.reviews-cta {
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === About === */
.about-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-credentials {
    display: grid;
    gap: 16px;
    margin: 32px 0;
    padding: 32px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.credential-item {
    display: flex;
    flex-direction: column;
}

.credential-item strong {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.credential-item span {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.placeholder-image {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-gray);
    border: 2px dashed var(--border-color);
}

/* === Content List === */
.content-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.content-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    line-height: 1.7;
}

.content-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

/* === CTA Box === */
.cta-box {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 48px;
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.cta-box .button {
    margin: 0 8px 8px;
}

/* === Sidebar === */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    margin: 16px 0 4px;
    text-align: center;
}

.sidebar-card h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.sidebar-title {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.sidebar-license {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.sidebar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.sidebar-button:nth-child(2) {
    background: var(--secondary-color);
}

.sidebar-button:nth-child(2):hover {
    background: #059669;
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* === Contact === */
.contact-grid {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
}

.contact-card p {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.contact-link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, #c59617 0%, #a07d13 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* === Breadcrumbs === */
.breadcrumbs {
    background: var(--bg-gray);
    padding: 16px 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-gray);
}

/* === Services Intro === */
.services-intro {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.services-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === Process Steps === */
.process-steps {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.process-step {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === Comparison Table === */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 48px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: var(--bg-gray);
}

.table-link {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

.table-link:hover {
    text-decoration: underline;
}

.table-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 16px;
    font-style: italic;
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Resources === */
.resources-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.resources-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.resources-intro p {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.resources-grid {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.resource-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.resource-card.featured {
    border: 2px solid var(--primary-color);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.resource-card p {
    color: var(--text-gray);
    margin-bottom: 16px;
    flex-grow: 1;
}

.resource-features {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
}

.resource-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.resource-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* === States Grid === */
.states-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

.state-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.state-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.state-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.state-card p {
    color: var(--text-gray);
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.state-card a {
    color: var(--primary-color);
    font-weight: 600;
}

/* === Video Grid === */
.video-grid {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-gray);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(197, 150, 23, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-card:hover .play-button {
    background: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.25rem;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* === Downloads Grid === */
.downloads-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

.download-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-md);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.download-card .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === Help Box === */
.help-box {
    background: var(--bg-gray);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.help-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.help-box p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.help-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Footer === */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.footer-email a {
    color: var(--primary-color);
    word-break: break-word;
}

.footer-email a:hover {
    text-decoration: underline;
    color: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

/* === Social Media Links === */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 24px;
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* === Responsive Design === */

/* Mobile Navigation Updates */
@media (max-width: 767px) {
    .nav-logo {
        height: 35px;
    }
    
    .nav-brand-text h1 {
        font-size: 1rem;
    }
    
    .nav-tagline {
        font-size: 0.65rem;
    }
    
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-gray);
        margin-top: 8px;
        padding-left: 20px;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .button {
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-box .button {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .quote-cta-card {
        padding: 40px 24px;
    }
    
    .quote-cta-card h2 {
        font-size: 1.75rem;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .mobile-cta-bar {
        display: none;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .nav-brand-text h1 {
        font-size: 1.25rem;
    }
    
    .nav-tagline {
        font-size: 0.75rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 32px;
        box-shadow: none;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .nav-menu a {
        font-size: 0.9375rem;
        padding: 0;
    }

    /* Show dropdown on hover - DESKTOP */
    .nav-dropdown:hover > .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Ensure proper positioning */
    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    .hero {
        min-height: 600px;
        padding: 120px 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }
    
    .nav-logo {
        height: 50px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .downloads-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .nav-logo {
        height: 55px;
    }
}

/* Print styles */
@media print {
    .mobile-cta-bar,
    .header,
    .hero,
    .quote-section,
    .contact,
    .footer {
        display: none;
    }
}
