/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --primary:           #1B3A4B;
  --primary-dark:      #0F2535;
  --accent:            #D97706;
  --accent-light:      #FCD34D;
  --surface:           #FFFFFF;
  --surface-2:         #F1F5F9;
  --surface-3:         #E2E8F0;
  --on-surface:        #0F172A;
  --on-surface-muted:  #64748B;
  --border:            #CBD5E1;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:         0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:         0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --radius-sm:         8px;
  --radius-md:         16px;
  --radius-lg:         24px;
  --radius-pill:       100px;
  --font:              'Inter', system-ui, sans-serif;
  --nav-h:             68px;
  --max-w:             1200px;
  --transition:        .2s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--on-surface); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────────── */
.display    { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.headline   { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; }
.title      { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.body-lg    { font-size: 1.0625rem; }
.label      { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.muted      { color: var(--on-surface-muted); }

/* ── Layout helpers ────────────────────────────────────────────────────── */
.container  { width: min(var(--max-w), 100% - 2rem); margin-inline: auto; }
.section    { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }
.grid-2     { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.grid-3     { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4     { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: var(--radius-pill); font-family: var(--font); font-size: .9375rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); white-space: nowrap; }
.btn-primary  { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,.35); }
.btn-primary:hover  { background: #B45309; box-shadow: 0 4px 16px rgba(217,119,6,.45); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover  { background: var(--primary); color: #fff; }
.btn-ghost    { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-ghost:hover    { background: rgba(255,255,255,.25); border-color: #fff; }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ── Chip / Badge ──────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 1rem; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; }
.chip-accent { background: rgba(217,119,6,.12); color: var(--accent); }
.chip-light  { background: rgba(255,255,255,.18); color: #fff; }

/* ── Card ──────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(217,119,6,.1); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background var(--transition), box-shadow var(--transition); }
.nav.scrolled { background: rgba(15,37,53,.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: .75rem; color: #fff; }
.nav-logo span { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.nav-logo em { display: block; font-style: normal; font-size: .75rem; font-weight: 400; opacity: .7; }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .9375rem; font-weight: 500; padding: .5rem .875rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { display: none; }
.nav-hamburger { background: none; border: none; cursor: pointer; padding: .5rem; color: #fff; display: flex; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: all var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; inset: var(--nav-h) 0 0; background: var(--primary-dark); padding: 1.5rem; flex-direction: column; gap: .5rem; overflow-y: auto; z-index: 99; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,.85); font-size: 1.0625rem; font-weight: 500; padding: .875rem 1rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-mobile a:hover, .nav-mobile a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-mobile .btn { margin-top: 1rem; justify-content: center; }
@media (min-width: 768px) { .nav-links, .nav-cta { display: flex; } .nav-hamburger { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--primary-dark); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,37,53,.85) 0%, rgba(15,37,53,.5) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: 7rem 4rem; }
.hero-content .display { color: #fff; margin-block: 1rem 1.25rem; }
.hero-content .body-lg { opacity: .85; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: var(--accent-light); }
.hero-stat-label { font-size: .875rem; opacity: .75; }

/* ── Section headings ──────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .chip { margin-bottom: .75rem; }
.section-header .headline { margin-bottom: .75rem; }
.section-header p { max-width: 560px; margin-inline: auto; }

/* ── Services strip ────────────────────────────────────────────────────── */
.services-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); }
@media (min-width: 640px) { .services-strip { grid-template-columns: repeat(4,1fr); } }
.strip-item { background: var(--surface); padding: 1.75rem 1.25rem; text-align: center; transition: background var(--transition); }
.strip-item:hover { background: var(--surface-2); }
.strip-icon { font-size: 2rem; margin-bottom: .75rem; }
.strip-item .title { font-size: 1rem; margin-bottom: .25rem; }

/* ── Feature row ───────────────────────────────────────────────────────── */
.feature-row { display: grid; gap: 3rem; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (min-width: 768px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.feature-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-text .chip { margin-bottom: 1rem; }
.feature-text .headline { margin-bottom: 1rem; }
.feature-text p { margin-bottom: 1.25rem; }
.feature-list { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .625rem; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: .1em; }

/* ── Why us stats ──────────────────────────────────────────────────────── */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(4,1fr); } }
.why-card { background: var(--surface); border-radius: var(--radius-md); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); text-align: center; border-top: 3px solid var(--accent); }
.why-num { font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: .5rem; }

/* ── Gallery ───────────────────────────────────────────────────────────── */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; justify-content: center; }
.filter-btn { padding: .5rem 1.25rem; border-radius: var(--radius-pill); border: 2px solid var(--border); background: transparent; font-family: var(--font); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all var(--transition); color: var(--on-surface-muted); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-grid { columns: 2; gap: 1rem; }
@media (min-width: 640px)  { .gallery-grid { columns: 3; } }
@media (min-width: 960px)  { .gallery-grid { columns: 4; } }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item[data-cat] { display: block; }
.gallery-item.hidden { display: none; }

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90svh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.15); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; }

/* ── Repair cards ──────────────────────────────────────────────────────── */
.repair-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.repair-card-img { height: 200px; background: var(--surface-2); overflow: hidden; }
.repair-card-img img { width: 100%; height: 100%; object-fit: cover; }
.repair-card-body { padding: 1.5rem; }
.repair-badge { display: inline-block; padding: .25rem .75rem; border-radius: var(--radius-pill); background: rgba(217,119,6,.1); color: var(--accent); font-size: .8125rem; font-weight: 600; margin-bottom: .75rem; }
.repair-card h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: .5rem; }
.repair-card p { font-size: .9375rem; color: var(--on-surface-muted); }

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-banner { background: var(--primary-dark); color: #fff; text-align: center; padding-block: 4.5rem; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url('img/gallery-6.jpg') center/cover no-repeat; opacity: .12; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .headline { color: #fff; margin-bottom: .75rem; }
.cta-banner p { opacity: .8; max-width: 520px; margin-inline: auto 0; margin-bottom: 2rem; }
.cta-phone { font-size: 2rem; font-weight: 700; color: var(--accent-light); margin-bottom: 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(217,119,6,.1); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-form { background: var(--surface-2); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--on-surface); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: .75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .9375rem; background: var(--surface); color: var(--on-surface); transition: border-color var(--transition); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ── Page hero (inner pages) ───────────────────────────────────────────── */
.page-hero { background: var(--primary-dark); color: #fff; padding-block: 8rem 3.5rem; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,37,53,.7), rgba(15,37,53,.9)); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero .display { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-block: .5rem 1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .875rem; opacity: .7; }
.breadcrumb a { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ── River Farms ───────────────────────────────────────────────────────── */
.rf-hero { background: linear-gradient(135deg, #064E3B 0%, #065F46 60%, #0F766E 100%); color: #fff; padding-block: 5rem; text-align: center; }
.rf-hero .display { color: #fff; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.75); }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-block: 3.5rem; }
@media (min-width: 640px)  { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: .9375rem; margin-block: .75rem 1.25rem; line-height: 1.7; }
.footer-brand .nav-logo { margin-bottom: .25rem; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { font-size: .9375rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; font-size: .875rem; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.bg-surface-2 { background: var(--surface-2); }
.bg-primary { background: var(--primary); color: #fff; }
.accent { color: var(--accent); }
.divider { height: 1px; background: var(--border); }
