/* ===== WARM HERITAGE THEME VARIABLES ===== */
:root {
    /* Primary Colors - Warm & Inviting */
    --primary: #2d5a3d;
    --primary-light: #4a7c59;
    --primary-dark: #1e3d28;

    /* Accent Colors - Warm Gold */
    --accent: #d4a574;
    --accent-light: #e8c9a8;
    --accent-glow: rgba(212, 165, 116, 0.4);

    /* Background - Warm Cream tones */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f1eb;
    --bg-tertiary: #ebe5db;

    /* Text - Warm Dark - INCREASED CONTRAST */
    --text-primary: #212121; /* Darker than #2c2c2c */
    --text-secondary: #4a4540; /* Darker than #5a5550 */
    --text-muted: #75706b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    --gradient-accent: linear-gradient(135deg, #d4a574 0%, #c9956a 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(212, 165, 116, 0.15) 0%, transparent 70%);

    /* Effects - Warm & Soft */
    --glass: rgba(255, 255, 255, 0.85); /* Increased opacity for better readability */
    --glass-border: rgba(212, 165, 116, 0.2);
    --shadow-glow: 0 8px 32px rgba(212, 165, 116, 0.25);
    --shadow-card: 0 4px 24px rgba(45, 90, 61, 0.12);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 2px 20px rgba(45, 90, 61, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.logo-divider {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.real-logo-nav {
    height: 32px; /* Slight increase for better visibility */
    width: auto;
    display: inline-block;
    filter: contrast(1.1); /* Enhance logo clarity */
}

/* Hidden Home Logo - Like FedEx Arrow */
.logo-home {
    position: relative;
    display: inline-block;
    margin: 0 0.15em;
}

.logo-home::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-1px);
    opacity: 0;
    transition: var(--transition-base);
}

.logo:hover .logo-home::before {
    opacity: 1;
}

/* Home shape hidden in the negative space */
.logo-home::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--bg-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(2px);
    opacity: 0;
    transition: var(--transition-base);
}

.logo:hover .logo-home::after {
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.cta-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

.nav-link.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.nav-link.cta-btn::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    color: var(--text-primary); /* Ensure explicit color */
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for readability if gradient fails */
    color: var(--primary);
    text-shadow: 0 1px 1px rgba(0,0,0,0.05); /* Subtle shadow definition */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    font-weight: 400; /* Ensure it's not too thin */
    text-shadow: 0 1px 0 rgba(255,255,255,0.5); /* Increase contrast against background */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-stat {
    padding: var(--space-md);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content */
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; /* Standardize full rounded pill */
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(45, 90, 61, 0.35);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.25);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: var(--transition-base);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: var(--space-md);
}

.tag-icon {
    font-size: 1.2rem;
}

.section-tag span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .section-tag {
    display: inline-flex;
    margin: 0 auto var(--space-md);
}

.centered-header {
    text-align: center;
}

.section-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-visual {
    position: relative;
}

.team-photo-frame {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

.team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.team-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    gap: var(--space-xs);
}

.team-photo-placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.4;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.placeholder-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.frame-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-accent);
    border-radius: 16px;
    z-index: 1;
    opacity: 0.3;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    align-items: stretch; /* Ensure cards are same height */
}

/* Modern Card Base Styles */
.modern-card {
    background: white;
    border-radius: 20px; /* Unified radius */
    padding: var(--space-lg) var(--space-md); /* Adjust padding */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%; /* Fill grid cell */
}

.modern-card:hover {
    transform: translateY(-8px); /* slightly more lift */
    box-shadow: 0 12px 32px rgba(45, 90, 61, 0.15);
}

/* Icon Wrappers */
.card-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px; /* Match card radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    margin-left: auto;
    margin-right: auto;
}

.card-icon {
    width: 48px;
    height: 48px;
}

.sell-color {
    background: linear-gradient(135deg, #d4a574 0%, #c9956a 100%);
    color: white;
}

.buy-color {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
}

.relocate-color {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: white;
}

/* Modern Titles & Text */
.modern-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-align: center;
    min-height: 3.5rem; /* Ensure 2 lines are accommodated for alignment */
    display: flex;
    align-items: flex-end; /* Align bottom to keep spacing to text consistent */
    justify-content: center;
}

.modern-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    text-align: center;
    flex-grow: 0; /* Don't expand this, expand the list/container */
}

/* Benefit List */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    flex: 1; /* Pushes the button to the bottom */
}

.benefit-item {
    display: flex;
    align-items: flex-start; /* Align to top if text wraps */
    gap: var(--space-xs);
    color: var(--text-muted); /* Slightly softer than primary */
    font-size: 0.95rem;
}

.benefit-icon {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.4rem; /* Optical alignment with text */
}

.sell-color .benefit-icon {
    color: #d4a574;
}

.buy-color .benefit-icon {
    color: #2d5a3d;
}

.relocate-color .benefit-icon {
    color: #64748b;
}

/* Modern Link */
.modern-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.modern-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.sell-color + .modern-title + .modern-description + .benefit-list + .modern-link:hover {
    color: #d4a574;
}

.buy-color + * + * + * + .modern-link:hover {
    color: #2d5a3d;
}

.relocate-color + * + * + * + .modern-link:hover {
    color: #64748b;
}

/* ===== STATS SECTION ===== */
.stats {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 36px;
    height: 36px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus, .stat-unit, .stat-percent {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ===== CTA SECTION ===== */
.cta {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.cta-trust {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-icon {
    color: var(--accent);
    font-weight: 700;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
}

.contact-info {
    section-title {
        margin-bottom: var(--space-md);
    }
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-method {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.contact-method a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-method a:hover {
    color: var(--accent);
}

.contact-method p {
    color: var(--text-secondary);
}

.warm-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
}

.badge-icon {
    font-size: 2rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-content strong {
    color: var(--text-primary);
}

.badge-content span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== NJ COMPLIANCE STYLES ===== */
.team-credentials {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: var(--glass);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    text-align: center;
}

.team-member {
    margin-bottom: var(--space-sm);
}

.team-member:last-of-type {
    margin-bottom: var(--space-md);
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.brokerage-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

/* Brokerage name should be slightly larger than team names per NJ guidelines */
.footer-brokerage {
    margin-top: var(--space-sm);
}

.brokerage-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.real-logo-small {
    height: 40px;
    width: auto;
}

.brokerage-info strong {
    font-size: 1rem;
    color: var(--bg-primary);
}

.footer-bottom p:nth-child(2) {
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.8);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-progress {
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo .logo-text {
    color: var(--bg-primary);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--bg-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: rgba(250, 248, 245, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: var(--space-xs);
}

.footer-badge {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
}

.footer-badge span {
    display: block;
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.8);
}

.footer-badge strong {
    color: var(--accent);
    display: block;
    margin-top: var(--space-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(250, 248, 245, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: var(--space-md);
        border-bottom: 1px solid var(--glass-border);
        transition: var(--transition-base);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE SPECIFIC (iPhone 12, S21U, etc) ===== */
@media (max-width: 640px) {
    /* Container Padding */
    .container {
        padding: 0 var(--space-sm);
    }

    /* Hero Section */
    .hero {
        padding-top: 100px; /* Account for fixed nav */
        padding-bottom: var(--space-lg);
    }

    .hero-title {
        font-size: 2.5rem; /* Reduce from clamp default which might be too large */
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: var(--space-sm);
    }
    
    .stat-value {
        font-size: 2rem;
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    /* Services Cards */
    .services-grid {
        grid-template-columns: 1fr; /* Force single column */
    }

    .modern-card {
        padding: var(--space-md);
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: var(--space-md); /* Reduce padding to prevent cutoff */
    }

    .contact-grid {
        gap: var(--space-lg);
    }

    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Footer */
    .footer-content {
        gap: var(--space-md);
        text-align: center; 
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .brokerage-info {
        justify-content: center !important;
        flex-direction: column !important;
        gap: var(--space-xs);
        display: flex !important;
        width: 100%;
    }
    
    /* Blog Specifics */
    .blog-post-header {
        padding-top: 100px;
    }

    .article-title {
        font-size: 2rem;
    }

    .image-wrapper {
        border-radius: 12px;
    }
    
    .content-wrapper {
        padding: 0 var(--space-sm);
    }
    
    .article-body p {
        font-size: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== BLOG STYLES ===== */

/* Blog Post Page */
.blog-post {
    background: var(--bg-primary);
}

.blog-post-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.article-breadcrumbs a:hover {
    color: var(--primary);
}

.article-breadcrumbs .separator {
    color: var(--text-muted);
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.article-meta-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details .author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-details .author-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-featured-image {
    padding: 2rem 0;
}

.image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.article-hero-image-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 2/1;
}

.image-caption {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.article-body {
    max-width: 100%;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-intro {
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
    font-weight: 500;
    line-height: 1.7 !important;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.cta-widget p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid var(--glass-border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.category-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Comments Section */
.comments-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.comments-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.comments-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.comment-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-form input {
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Mobile Responsive for Blog */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-post-header {
        padding: 100px 0 40px;
    }

    .article-meta-full {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Team Photo Author Styling */
.author-box .author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.author-box .author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Author Bio Photo Styling */
.bio-content .bio-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bio-content .bio-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.toc-widget h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
}

.toc-list a:hover {
    color: var(--primary);
    border-left-color: var(--accent);
    padding-left: 0.75rem;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

/* ===== MODERN LINK STYLE ===== */
.modern-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto; /* Push to bottom if flex column */
    align-self: center;
    transition: var(--transition-base);
}

.modern-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Force Mobile Footer Centering */
@media (max-width: 640px) {
    .footer-content {
        text-align: center !important;
    }
    
    .footer-contact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .brokerage-info {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: var(--space-xs) !important;
    }
}
