/* ============================================
   BLUEWAVE BUILDERS — Main Stylesheet
   Premium Coastal Custom Home Builder
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Design Tokens --- */
:root {
  --color-primary: #0D2D4E;
  --color-bg: #FAFAF8;
  --color-accent: #C8A96E;
  --color-teal: #4A9B8E;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-white: #FFFFFF;
  --color-light-bg: #F2F0EC;
  --color-border: #E0DDD8;
  --color-card-shadow: rgba(13,45,78,0.08);
  --color-btn-shadow: rgba(200,169,110,0.3);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --radius: 0.5rem;
  --radius-pill: 4px;
  --container-max: 1200px;
}

/* --- Container & Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-primary); }
h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 3rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }
.section-label { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.75rem; display: block; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem; border: none; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--color-accent); color: var(--color-white); border-radius: var(--radius-pill); padding: 1rem 2.25rem; box-shadow: 0 4px 16px var(--color-btn-shadow); letter-spacing: 0.5px; }
.btn-primary:hover { background: #b8963d; transform: translateY(-2px); box-shadow: 0 6px 24px var(--color-btn-shadow); }
.btn-secondary { background: transparent; color: var(--color-white); border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius-pill); padding: 0.9375rem 2.25rem; }
.btn-secondary:hover { border-color: var(--color-white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); border-radius: var(--radius-pill); padding: 0.9375rem 2.25rem; }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }
.btn-phone { background: var(--color-white); color: var(--color-primary); border-radius: var(--radius-pill); padding: 0.875rem 2rem; font-weight: 700; border: 2px solid var(--color-border); }
.btn-phone:hover { border-color: var(--color-teal); color: var(--color-teal); transform: translateY(-1px); }
.btn-lg { padding: 1.125rem 2.75rem; font-size: 1rem; }
.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.875rem; }
.btn-full { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-border); transition: all 0.3s ease; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(13,45,78,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 90px; transition: height 0.3s ease; gap: 2rem; }
.site-header.scrolled .header-inner { height: 70px; }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 55px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .header-logo img { height: 45px; }
.nav-desktop { display: flex; align-items: center; gap: 1.75rem; flex-shrink: 0; }
.nav-desktop a { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; color: var(--color-text); transition: color 0.2s; position: relative; text-transform: uppercase; letter-spacing: 0.75px; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--color-accent); }
.nav-desktop a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.25s ease; }
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
.header-ctas { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Mobile Nav */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 28px; height: 28px; color: var(--color-primary); }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 1.5rem; z-index: 99; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 0.875rem 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--color-text); border-bottom: 1px solid var(--color-border); text-transform: uppercase; letter-spacing: 1px; }
.nav-mobile a:last-of-type { border-bottom: none; }
.mobile-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }

/* --- Hero Banner --- */
.hero-banner { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); z-index: 0; }
.hero-banner-content { position: relative; z-index: 2; color: var(--color-white); max-width: 700px; }
.hero-banner h1 { color: var(--color-white); margin-bottom: 1.25rem; font-size: 3.5rem; }
.hero-banner p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 2rem; opacity: 0.92; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page Hero (interior pages) */
.page-hero { position: relative; padding: 7rem 0 5rem; overflow: hidden; }
.page-hero .hero-banner-bg { filter: brightness(0.3); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--color-white); font-size: 3rem; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 650px; }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-white { background: var(--color-white); }
.section-light { background: var(--color-light-bg); }
.section-warm { background: var(--color-bg); }
.section-dark { background: var(--color-primary); color: var(--color-white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.85); }
.section-dark .section-label { color: var(--color-accent); }

/* --- Grid System --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

/* --- Trust Bar --- */
.trust-bar { padding: 3rem 0; background: var(--color-primary); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.trust-item { color: var(--color-white); }
.trust-item-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(200,169,110,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.trust-item-icon svg { width: 26px; height: 26px; color: var(--color-accent); }
.trust-item p { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.95; }
.trust-item .trust-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-accent); display: block; margin-bottom: 0.25rem; }

/* --- Cards --- */
.card { background: var(--color-white); border-radius: var(--radius); box-shadow: 0 4px 20px var(--color-card-shadow); padding: 2rem; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { box-shadow: 0 8px 36px rgba(13,45,78,0.12); transform: translateY(-3px); }
.card-image { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; margin: -2rem -2rem 1.5rem; }
.card-image img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-image img { transform: scale(1.03); }
.card-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(74,155,142,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 28px; height: 28px; color: var(--color-teal); }
.card-icon-gold { background: rgba(200,169,110,0.12); }
.card-icon-gold svg { color: var(--color-accent); }

/* Service Cards */
.service-card { text-align: center; padding: 2.5rem 2rem; }
.service-card .card-image { margin: -2.5rem -2rem 2rem; }
.service-card .card-image img { height: 300px; }
.service-card h3 { font-size: 1.75rem; }
.service-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* Testimonial Cards */
.testimonial-card { text-align: center; padding: 2.5rem 2rem; }
.testimonial-stars { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 1.25rem; }
.testimonial-stars svg { width: 20px; height: 20px; color: var(--color-accent); fill: var(--color-accent); }
.testimonial-card blockquote { font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; line-height: 1.7; color: var(--color-text); margin-bottom: 1.25rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--color-primary); display: block; }
.testimonial-card .cite-detail { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 400; }

/* Team Cards */
.team-card { padding: 0; overflow: hidden; }
.team-card img { width: 100%; height: 300px; object-fit: cover; }
.team-card-body { padding: 1.75rem; }
.team-card-body h3 { margin-bottom: 0.25rem; }
.team-title { font-size: 0.9rem; color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }

/* --- Shoreline Standard --- */
.shoreline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.shoreline-item { text-align: center; padding: 2.5rem 2rem; background: var(--color-white); border-radius: var(--radius); box-shadow: 0 4px 20px var(--color-card-shadow); }
.shoreline-item .shoreline-icon { width: 70px; height: 70px; border-radius: 50%; background: rgba(200,169,110,0.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.shoreline-item .shoreline-icon svg { width: 32px; height: 32px; color: var(--color-accent); }
.shoreline-item h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.shoreline-item p { color: var(--color-text-muted); }

/* --- Process Timeline --- */
.process-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.process-timeline::before { content: ''; position: absolute; top: 35px; left: 10%; right: 10%; height: 2px; background: var(--color-accent); opacity: 0.3; }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number { width: 70px; height: 70px; border-radius: 50%; background: var(--color-primary); color: var(--color-accent); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 3px solid var(--color-accent); }
.process-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--color-text-muted); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; cursor: pointer; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-primary); transition: color 0.2s; width: 100%; text-align: left; }
.faq-question:hover { color: var(--color-accent); }
.faq-question svg { width: 24px; height: 24px; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem; color: var(--color-accent); }
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 1.5rem; }
.faq-answer p { color: var(--color-text-muted); line-height: 1.8; }

/* --- Gallery --- */
.gallery-filters { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn { padding: 0.625rem 1.5rem; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; border: 2px solid var(--color-border); color: var(--color-text-muted); background: var(--color-white); cursor: pointer; transition: all 0.25s ease; }
.filter-btn:hover, .filter-btn.active { border-color: var(--color-accent); color: var(--color-accent); background: rgba(200,169,110,0.06); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,45,78,0.8) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 1.25rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--color-white); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }

/* Gallery Project Clusters */
.gallery-cluster { margin-bottom: 3rem; }
.gallery-cluster h3 { font-size: 1.75rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--color-accent); display: inline-block; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: -40px; right: 0; color: var(--color-white); font-size: 2rem; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.8); margin-top: 1rem; font-family: var(--font-heading); font-size: 1.1rem; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.875rem; color: var(--color-primary); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 1rem; color: var(--color-text); background: var(--color-white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group textarea { border-radius: var(--radius); min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(74,155,142,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* --- Inline Testimonial --- */
.inline-testimonial { background: var(--color-light-bg); border-left: 4px solid var(--color-accent); padding: 2rem 2.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 3rem 0; }
.inline-testimonial blockquote { font-family: var(--font-heading); font-size: 1.3rem; font-style: italic; line-height: 1.7; color: var(--color-text); margin-bottom: 1rem; }
.inline-testimonial cite { font-style: normal; font-weight: 700; color: var(--color-primary); }

/* --- Icon Grid (Builder Profile) --- */
.credential-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.credential-item { text-align: center; }
.credential-item .cred-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(74,155,142,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.credential-item .cred-icon svg { width: 28px; height: 28px; color: var(--color-teal); }
.credential-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.credential-item p { font-size: 0.85rem; color: var(--color-text-muted); }

/* --- Areas Served --- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.area-tag { background: var(--color-white); padding: 1rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--color-border); font-weight: 700; color: var(--color-primary); text-align: center; transition: all 0.2s; }
.area-tag:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* --- Final CTA Section --- */
.cta-section { position: relative; padding: 5rem 0; text-align: center; overflow: hidden; }
.cta-section .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.2); z-index: 0; }
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--color-white); font-size: 2.75rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .cta-phone { font-family: var(--font-heading); font-size: 2rem; color: var(--color-accent); font-weight: 700; display: block; margin-bottom: 2rem; }
.cta-section .cta-phone:hover { color: var(--color-white); }

/* --- Footer --- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.8); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 45px; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-col h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.9rem; padding: 0.35rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-contact-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 18px; height: 18px; color: var(--color-white); }
.footer-badges { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.footer-badges img { height: 50px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.825rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--color-accent); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { opacity: 0; }
.animate-in.visible { animation: fadeInUp 0.7s ease-out forwards; }
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }

/* --- Problem / Empathy Block --- */
.empathy-block { text-align: center; max-width: 800px; margin: 0 auto; }
.empathy-block h2 { margin-bottom: 1.5rem; }
.empathy-block p { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.9; }
.empathy-block .empathy-transition { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); font-weight: 600; margin-top: 2rem; font-style: italic; }

/* --- Renovation Scope Grid --- */
.scope-card { text-align: center; padding: 2rem 1.5rem; }
.scope-card .scope-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(200,169,110,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.scope-card .scope-icon svg { width: 30px; height: 30px; color: var(--color-accent); }
.scope-card h4 { margin-bottom: 0.5rem; }
.scope-card p { font-size: 0.9rem; color: var(--color-text-muted); }

/* --- Map --- */
.map-container { border-radius: var(--radius); overflow: hidden; height: 350px; box-shadow: 0 4px 20px var(--color-card-shadow); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Responsive: 1024px --- */
@media (max-width: 1024px) {
  .nav-desktop, .header-ctas { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .process-timeline::before { display: none; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .credential-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
  h1 { font-size: 2.75rem; }
  .hero-banner h1 { font-size: 2.75rem; }
  .shoreline-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsive: 768px --- */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  .hero-banner { min-height: 70vh; }
  .hero { min-height: 75vh; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content--centered h1 { font-size: 3rem; letter-spacing: 3px; }
  .hero-tagline { font-size: 1.25rem; }
  .hero-welcome { font-size: 0.8rem; letter-spacing: 3px; }
  .hero-license { font-size: 0.7rem; letter-spacing: 2px; }
  .hero-sub { font-size: 1rem; }
  .hero-banner h1 { font-size: 2.25rem; }
  .hero-banner p { font-size: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .parallax-bg { background-attachment: scroll; }
  .page-hero { padding: 5rem 0 3.5rem; }
  .page-hero h1 { font-size: 2.25rem; }
  .section { padding: 3.5rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .shoreline-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .cta-section h2 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters { gap: 0.5rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .service-card .card-image img { height: 220px; }
  .card-image img { height: 200px; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-teal { color: var(--color-teal); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* --- Homepage Hero — Ken Burns Slideshow --- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; background: #0D2D4E; }

/* Ken Burns slides */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation-duration: 10s; animation-timing-function: linear; animation-fill-mode: forwards; }
/* 4 distinct camera movements — assigned via data-motion */
@keyframes pan-right { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8%, -2%) scale(1.05); } }
@keyframes pan-left { from { transform: translate(-8%, 0) scale(1.02); } to { transform: translate(0, -3%) scale(1.07); } }
@keyframes zoom-out { from { transform: scale(1.12) translate(-2%, -2%); } to { transform: scale(1) translate(2%, 1%); } }
@keyframes drift-up { from { transform: translate(0, 3%) scale(1.02); } to { transform: translate(-3%, -5%) scale(1.08); } }
.hero-slide[data-motion="0"] img { animation-name: pan-right; }
.hero-slide[data-motion="1"] img { animation-name: pan-left; }
.hero-slide[data-motion="2"] img { animation-name: zoom-out; }
.hero-slide[data-motion="3"] img { animation-name: drift-up; }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,45,78,0.6) 0%, rgba(0,0,0,0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--color-white); max-width: 700px; }
.hero-content h1 { color: var(--color-white); margin-bottom: 1.25rem; font-size: 3.5rem; }
.hero-sub { font-size: 1.2rem; line-height: 1.8; margin-bottom: 2rem; opacity: 0.92; }
.hero-subhead { font-size: 1.15rem; line-height: 1.8; opacity: 0.92; }

/* Parallax background sections */
.parallax-bg { background-attachment: fixed; background-size: cover; background-position: center; }
@supports (-webkit-overflow-scrolling: touch) {
  .parallax-bg { background-attachment: scroll; } /* iOS fallback */
}

/* Page hero with inline background-image */
.page-hero[style*="background-image"], .page-hero { background-size: cover; background-position: center; }
.page-hero .hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 1; }

/* --- Card Variants --- */
.card-body { padding: 1.75rem; }
.card-link { color: var(--color-accent); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.card-link:hover { color: var(--color-primary); }
.card-img { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.service-card-body { padding: 1.75rem; }
.img-rounded { border-radius: var(--radius); overflow: hidden; }

/* --- Credential Grid Aliases --- */
.credential-card { text-align: center; }
.credential-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(74,155,142,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.credential-icon svg { color: var(--color-teal); }

/* --- Shoreline Card Alias --- */
.shoreline-card { text-align: center; padding: 2.5rem 2rem; background: var(--color-white); border-radius: var(--radius); box-shadow: 0 4px 20px var(--color-card-shadow); }

/* --- CTA Section Variants --- */
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-content { position: relative; z-index: 2; }
.cta-section[style*="background-image"] { background-size: cover; background-position: center; }
.cta-section[style*="background-image"]::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.75); z-index: 1; }
.btn-white { background: var(--color-white); color: var(--color-primary); border-radius: var(--radius-pill); padding: 1rem 2.25rem; font-weight: 700; }
.btn-white:hover { background: var(--color-accent); color: var(--color-white); }

/* --- Footer Aliases --- */
.footer-nav h4, .footer-contact h4, .footer-credentials h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.25rem; }
.footer-nav a, .footer-contact a, .footer-credentials a { display: block; font-size: 0.9rem; padding: 0.35rem 0; transition: color 0.2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-accent); }
.footer-nav ul, .footer-contact ul, .footer-credentials ul { list-style: none; }
.footer-nav li, .footer-contact li, .footer-credentials li { margin-bottom: 0.35rem; }
.footer-license { font-size: 0.85rem; opacity: 0.7; margin-top: 1rem; }
.footer-trust { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }

/* --- Responsive additions for alternate patterns --- */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }
}
