/* ============================================================
   BEGLEY LAW — style.css
   Primary stylesheet for michellebegley.com
   ============================================================ */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --blue-primary: #4D95E2;
    --blue-accent:  #316DB3;
    --blue-dark:    #1e4d82;
    --text-dark:    #222222;
    --text-mid:     #555555;
    --text-light:   #888888;
    --card-border:  #e4e8ee;
    --card-bg:      #ffffff;
    --white:        #ffffff;
    --off-white:    #f5f7fa;
    --transition:   0.3s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Container ───────────────────────────────────────────── */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Scroll-Triggered Fade-In-Up ─────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.15s;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HEADER SECTION
   ============================================================ */

/* ── Top Contact Bar ─────────────────────────────────────── */
.top-bar {
    width: 100%;
    height: 40px;
    background-color: var(--blue-dark);
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-phone,
.top-bar-email {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition);
}
.top-bar-phone:hover,
.top-bar-email:hover { color: var(--white); }

.top-bar-addr {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Main Header ─────────────────────────────────────────── */
.main-header {
    width: 100%;
    height: 120px;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow var(--transition);
}
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ── Logo ────────────────────────────────────────────────── */
.logo-link { display: flex; align-items: center; }
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* ── Desktop Navigation ──────────────────────────────────── */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color var(--transition), background-color var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--blue-primary); background-color: #f0f6ff; }

.nav-arrow {
    font-size: 8px;
    opacity: 0.6;
    transition: transform var(--transition);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--text-dark);
    display: block;
    padding: 10px 18px;
    transition: color var(--transition), background-color var(--transition);
}
.dropdown li a:hover { color: var(--blue-primary); background-color: #f0f6ff; }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.ham-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.ham-open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.ham-open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger.ham-open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #aaaaaa;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, 0.72) 0%,
        rgba(20, 20, 20, 0.35) 60%,
        rgba(20, 20, 20, 0.10) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.22;
    color: var(--white);
    margin-bottom: 28px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.btn-hero {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--white);
    background-color: var(--blue-primary);
    border: 2px solid var(--white);
    padding: 14px 30px;
    border-radius: 4px;
    margin-bottom: 16px;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-hero:hover {
    background-color: var(--blue-accent);
    border-color: var(--blue-primary);
    transform: translateY(-2px);
}

.hero-address {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
    color: rgba(255,255,255,0.92);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ============================================================
   SECTION 2: SERVICE CARDS ROW
   ============================================================ */
.cards-section {
    width: 100%;
    padding: 60px 0;
    background-color: var(--white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 44px 28px 40px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
    box-shadow: 0 8px 32px rgba(77, 149, 226, 0.14);
    border-color: var(--blue-primary);
    transform: translateY(-4px);
}

.card-icon {
    margin: 0 auto 22px;
    width: 100px;
    height: 100px;
    background-color: #eef4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    color: #AAB5A3;
    margin-bottom: 14px;
}

.card-desc {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.65;
    color: var(--text-mid);
}

/* ============================================================
   SECTION 3: ATTORNEY INTRO
   ============================================================ */
.intro-section {
    width: 100%;
    padding: 80px 0;
    background-color: var(--off-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.intro-heading {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--blue-accent);
    margin-bottom: 22px;
}

.intro-body {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.btn-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    color: var(--white);
    background-color: var(--blue-primary);
    padding: 12px 36px;
    border-radius: 4px;
    transition: background-color var(--transition), transform var(--transition);
}
.btn-more:hover {
    background-color: var(--blue-accent);
    transform: translateY(-2px);
}

.intro-photo { position: relative; }

.photo-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.photo-wrap figcaption {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--text-light);
    text-align: center;
    padding: 10px 0 6px;
}

.michelle-photo {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ============================================================
   SECTION 4: PARALLAX SECTION
   ============================================================ */
.parallax-section {
    width: 100%;
    min-height: 540px;
    background-image: url('images/parallax-home.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 40, 80, 0.58);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.parallax-text {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--white);
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    max-width: 820px;
    margin: 0 auto;
}

/* ============================================================
   FAT FOOTER SECTION
   ============================================================ */
.fat-footer {
    width: 100%;
    background: linear-gradient(135deg, #0d2d5e 0%, #1e5aab 50%, #3a82d4 100%);
    padding: 60px 0;
}

.fat-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
}

.footer-address p {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
}

.footer-phone {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--white);
    display: block;
    transition: opacity var(--transition);
}
.footer-phone:hover { opacity: 0.85; }

.footer-email {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}
.footer-email:hover { color: var(--white); }

.footer-map iframe {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ============================================================
   COPYRIGHT FOOTER BAR
   ============================================================ */
.copyright-bar {
    width: 100%;
    background-color: #1a1a1a;
    padding: 14px 0;
}

.copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright-inner p {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(255,255,255,0.65);
}
.copyright-inner a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}
.copyright-inner a:hover { color: var(--white); }

/* ============================================================
   SUB-PAGE: TITLE BAR
   ============================================================ */
.page-title-bar {
    width: 100%;
    background: linear-gradient(135deg, #2a6abf 0%, #5aaae8 100%);
    padding: 52px 0 48px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

/* Photo-background variant for sub-pages */
.page-title-bar--photo {
    background-size: cover;
    background-position: center center;
    padding: 80px 0 72px;
}
.page-title-bar--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.58);
}
.page-title-bar--photo .page-title-inner { position: relative; z-index: 1; }
.page-title-bar--photo .page-title { text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.page-title-bar--photo .page-subtitle {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-title-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-page-title {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 13px 32px;
    border-radius: 4px;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-page-title:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ============================================================
   SUB-PAGE: CONTENT AREA
   ============================================================ */
.subpage-content {
    width: 100%;
    padding: 80px 0 90px;
    background-color: var(--white);
}

.subpage-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: start;
}

.subpage-grid--even {
    grid-template-columns: 1fr 1fr;
}

.subpage-heading {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--blue-accent);
    margin-bottom: 16px;
}

.subpage-tagline {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.subpage-body {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 22px;
}
.subpage-body:last-child { margin-bottom: 0; }

.subpage-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--blue-accent);
    margin-top: 32px;
    margin-bottom: 14px;
}
.subpage-subheading:first-child { margin-top: 0; }

.subpage-list {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.subpage-list li {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.75;
    color: var(--text-dark);
    padding-left: 20px;
    position: relative;
}
.subpage-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue-primary);
    font-size: 18px;
    line-height: 1.75;
}
.subpage-list li strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Single-column content variant (no image column) */
.subpage-content--single { padding-bottom: 80px; }

.subpage-text-full {
    max-width: 1240px;
}

/* Full-width answer section below content grid */
.subpage-answers {
    width: 100%;
    padding: 56px 0 80px;
    background-color: var(--white);
    border-top: 1px solid var(--card-border);
}

.answers-heading {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--blue-accent);
    margin-bottom: 18px;
}

.answers-body {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.85;
    color: var(--text-dark);
    max-width: 900px;
}

/* Content image (non-portrait) */
.content-img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}

.subpage-photo { position: relative; }

/* ============================================================
   FAQ ACCORDION SECTION
   ============================================================ */
.faq-section {
    width: 100%;
    padding: 80px 0 90px;
    background-color: var(--white);
}

.faq-intro-heading {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--blue-accent);
    margin-bottom: 44px;
}

.faq-group {
    margin-bottom: 56px;
}
.faq-group:last-child { margin-bottom: 0; }

.faq-group-heading {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--blue-accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-primary);
}

.accordion {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
}

.acc-item {
    border-bottom: 1px solid var(--card-border);
}
.acc-item:last-child { border-bottom: none; }

.acc-question {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: var(--white);
    padding: 18px 52px 18px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    user-select: none;
    transition: background-color var(--transition), color var(--transition);
}
.acc-question::-webkit-details-marker { display: none; }
.acc-question::before {
    content: '+';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--blue-primary);
    color: var(--white);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    transition: background-color var(--transition), transform var(--transition);
}
.acc-item[open] > .acc-question { color: var(--blue-accent); background-color: #f4f8ff; }
.acc-item[open] > .acc-question::before {
    content: '\2212';
    background-color: var(--blue-accent);
}
.acc-question:hover { background-color: #f4f8ff; color: var(--blue-primary); }

.acc-answer {
    padding: 4px 20px 20px 56px;
    background-color: #f4f8ff;
    animation: accFadeIn 0.25s ease;
}
.acc-answer p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.acc-answer p:last-child { margin-bottom: 0; }

.acc-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.acc-list li {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.7;
    color: var(--text-dark);
    padding-left: 18px;
    position: relative;
}
.acc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue-primary);
}

@keyframes accFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .faq-section { padding: 50px 0 60px; }
    .faq-group-heading { font-size: 22px; }
    .acc-question { font-size: 15px; padding: 15px 44px 15px 16px; }
    .acc-answer { padding: 4px 16px 16px 48px; }
}

/* ── Sub-page responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .subpage-grid { grid-template-columns: 1fr; gap: 44px; }
    .subpage-photo { max-width: 520px; }
    .page-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .page-title-bar { padding: 36px 0 32px; }
    .page-title-bar--photo { padding: 52px 0 44px; }
    .page-title { font-size: 28px; }
    .page-subtitle { font-size: 17px; }
    .btn-page-title { font-size: 15px; padding: 12px 24px; }
    .subpage-content { padding: 50px 0 30px; }
    .subpage-heading { font-size: 26px; }
    .subpage-body { font-size: 16px; }
    .subpage-list li { font-size: 16px; }
    .michelle-photo { height: 320px; }
    .content-img { height: 280px; }
    .subpage-answers { padding: 40px 0 56px; }
    .answers-heading { font-size: 26px; }
    .answers-body { font-size: 16px; }
}

/* ============================================================
   MOBILE STICKY PHONE BAR
   ============================================================ */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--blue-accent);
    border-top: 2px solid var(--blue-primary);
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--white);
    transition: background-color var(--transition);
}
.mobile-sticky-btn:hover { background-color: var(--blue-dark); }

/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .intro-photo { max-width: 520px; }
    .michelle-photo { height: 420px; }
    .hero-title { font-size: 34px; }
    .hero-content { width: 65%; }
    .parallax-text { font-size: 34px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Top bar — hidden on mobile */
    .top-bar { display: none; }

    /* Header */
    .main-header { height: 74px; }
    .logo-img { height: 46px; }

    /* Disable CSS hover dropdowns on touch (prevents double-tap to navigate) */
    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
        visibility: hidden;
        max-height: 0;
    }

    /* Remove 300ms tap delay on all interactive nav elements */
    .nav-link,
    .dropdown li a,
    .hamburger {
        touch-action: manipulation;
    }

    /* Mobile nav */
    .hamburger { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 2px solid var(--blue-primary);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 12px 0 20px;
        z-index: 800;
        max-height: calc(100vh - 74px);
        overflow-y: auto;
    }
    .main-nav.nav-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
    .nav-item { border-bottom: 1px solid var(--card-border); }
    .nav-link {
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 0;
        justify-content: space-between;
    }
    .nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 100%;
        min-height: 50px;
        font-size: 11px;
        border-left: 1px solid var(--card-border);
    }

    /* Mobile dropdown */
    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--card-border);
        border-radius: 0;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease, visibility 0.3s ease;
        background: var(--off-white);
        padding: 0;
    }
    .nav-item.dropdown-open .dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 400px;
    }
    .dropdown li a { padding: 12px 32px; font-size: 14px; }

    /* Hero */
    .hero-section { height: 400px; }
    .hero-content { width: 90%; text-align: center; }
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        white-space: normal;
    }
    .btn-hero { font-size: 15px; padding: 13px 22px; }

    /* Cards */
    .cards-section { padding: 40px 0; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .service-card { padding: 28px 16px 24px; }
    .card-title { font-size: 16px; }

    /* Intro */
    .intro-section { padding: 50px 0; }
    .intro-heading { font-size: 30px; }
    .intro-body { font-size: 16px; }
    .michelle-photo { height: 320px; }

    /* Parallax — disable fixed attachment on mobile (iOS fix) */
    .parallax-section {
        background-attachment: scroll;
        min-height: 320px;
    }
    .parallax-text { font-size: 26px; }

    /* Footer */
    .fat-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-phone { font-size: 30px; }

    /* Copyright */
    .copyright-inner { flex-direction: column; align-items: center; text-align: center; }

    /* Mobile sticky bar */
    .mobile-sticky-bar { display: block; }

    /* Extend copyright bar down so sticky phone bar doesn't expose white body */
    .copyright-bar { padding-bottom: 68px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 24px; }
    .parallax-text { font-size: 22px; }
    .top-bar-email { display: none; }
}
