/*
 * Styles for the public site (homepage, /projects/, /portfolio/, 404).
 *
 * Hand-written port of the Tailwind classes the former Next.js components
 * used. Colour tokens match the old app/globals.css; breakpoints match
 * Tailwind's (sm 640px, md 768px, lg 1024px, xl 1280px).
 */

:root {
  --nav-bg: #f5ede0;
  --nav-border: #e8d9c5;
  --border: #e4d5bf;
  --card-bg: #ffffff;
  --muted-2: #7a6a56;
  --placeholder: #c5b9a8;
  --quote-text: #1a0f00;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f3ee;
  --text-primary: #1a0f00;
  --text-muted: #7a6a56;
  --gold: #c9a84c;
  --gold-hover: #a07830;
  --hero-bg: #1a0f00;
  --tile-bg: #1a1714;
  --btn-bg: #8b5e3c;
  --btn-bg-hover: #6e4a2e;
  --btn-text: #ffffff;
  --tag-bg: #ffffff;
  --tag-border: #e4d5bf;
}
.dark {
  --nav-bg: #1a1714;
  --nav-border: #2a2420;
  --border: #2e2820;
  --card-bg: #1a1714;
  --muted-2: #6a5a48;
  --placeholder: #4a4038;
  --quote-text: #d8cfc4;
  --bg-primary: #0d0b09;
  --bg-secondary: #141210;
  --text-primary: #f0ebe4;
  --text-muted: #9a8a78;
  --gold-hover: #e2c47a;
  --hero-bg: #0d0b09;
  --btn-bg: #c9a84c;
  --btn-bg-hover: #e2c47a;
  --btn-text: #1a0f00;
  --tag-bg: #1a1714;
  --tag-border: #2e2820;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }
.container.narrow { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container.narrow { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container.narrow { padding-left: 2rem; padding-right: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.125rem; font-weight: 500; line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn-gold { padding: 0.875rem 2rem; background: var(--gold); color: #111009; font-size: 15px; flex-shrink: 0; }
.btn-gold:hover { background: #e2c47a; }
.btn-ghost { padding: 0.75rem 1.5rem; background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-solid { padding: 0.875rem 2rem; background: var(--btn-bg); color: var(--btn-text); font-size: 15px; }
.btn-solid:hover { background: var(--btn-bg-hover); }
.btn-light {
  padding: 0.75rem 1.5rem; font-size: 14px; backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.9); color: #1a0f00;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.btn-light:hover { background: #fff; }
.dark .btn-light { background: rgba(26,23,20,0.9); color: #f0ebe4; }
.dark .btn-light:hover { background: #2a2420; }

/* ── Page hero / header ──────────────────────────────────────────────── */
.page-hero {
  position: relative; width: 100%; height: 40vh; min-height: 300px;
  background: var(--hero-bg);
}
.page-hero.tall { height: 50vh; min-height: 400px; }
.page-hero.tall::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}
.page-hero-inner {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 1.5rem; text-align: center;
}
.page-hero .eyebrow {
  color: var(--gold); font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 400; margin-bottom: 0.75rem;
}
.page-hero h1 {
  color: #fff; font-size: 2.25rem; line-height: 1.15; font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 3.75rem; } }
.page-hero .lede {
  color: rgba(255,255,255,0.8); font-size: 1.125rem; line-height: 1.625;
  font-weight: 300; max-width: 42rem; margin: 0 auto;
}
.page-hero .lede + .hero-actions { margin-top: 1.5rem; }
@media (min-width: 768px) { .page-hero .lede { font-size: 1.25rem; } }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hero-back { position: absolute; top: 5rem; left: 1.5rem; z-index: 20; }
@media (min-width: 768px) { .hero-back { left: 3rem; } }

/* ── Projects index grid ─────────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); padding: 0 2rem; } }
@media (min-width: 1280px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }

.project-card { position: relative; display: block; width: 100%; height: 350px; }
@media (min-width: 640px) { .project-card { height: 400px; } }
.project-card-media {
  position: absolute; inset: 0; overflow: hidden; border-radius: 0.5rem; background: var(--tile-bg);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover img { transform: scale(1.1); }
.project-card-shade {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3); transition: background-color 0.3s ease;
}
.project-card:hover .project-card-shade { background: rgba(0,0,0,0.2); }
.project-card-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.project-card-caption h3 { color: #fff; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.project-card-caption p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }

.empty-state { padding: 5rem 1rem; text-align: center; }
.empty-state h2 { font-size: 1.875rem; font-weight: 600; margin-bottom: 1rem; }
.empty-state p { color: var(--text-muted); font-size: 1.125rem; }

/* ── Project detail ──────────────────────────────────────────────────── */
.project-intro { padding: 2.5rem 0 0; }
.project-intro .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1rem; }
.project-intro h2 {
  color: var(--text-muted); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400;
}
.scope-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scope-list li {
  padding: 0.35rem 0.85rem; border: 1px solid var(--tag-border); background: var(--tag-bg);
  border-radius: 999px; font-size: 15px; font-weight: 400; color: var(--text-primary);
}

.gallery-section { padding: 2rem 0; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 0.5rem; aspect-ratio: 4 / 3; background: var(--tile-bg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-footer { display: flex; justify-content: center; margin-top: 3rem; }

.not-found { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.not-found h1 { font-size: 1.875rem; font-weight: 600; margin-bottom: 1rem; }
.not-found a { color: var(--gold); }
.not-found a:hover { text-decoration: underline; }

/* ── Footer (app/components/Footer.tsx) ──────────────────────────────── */
.site-footer { margin-top: auto; background: #111009; color: #fff; }
.footer-cta { border-bottom: 1px solid #2a2418; }
.footer-cta-inner {
  padding-top: 3.5rem; padding-bottom: 3.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .footer-cta-inner { flex-direction: row; text-align: left; } }
.footer-cta h2 { font-size: 1.875rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .footer-cta h2 { font-size: 2.25rem; } }
.footer-cta p { color: #9a8a78; font-size: 17px; font-weight: 300; }

.footer-main { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { height: 2.75rem; width: auto; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer-blurb, .footer-contact a, .footer-contact p, .footer-hours dt, .footer-hours dd {
  color: #9a8a78; font-size: 15px; font-weight: 300;
}
.footer-blurb { line-height: 1.625; margin-bottom: 1.25rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }
.footer-contact a { transition: color 0.2s ease; }
.footer-contact a:hover { color: #c9a84c; }
.footer-hours { margin-bottom: 1.75rem; }
.footer-hours h3 { color: #f0ebe4; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 400; margin-bottom: 0.75rem; }
.footer-hours dl { display: flex; flex-direction: column; gap: 0.375rem; }
.footer-hours dl > div { display: flex; justify-content: space-between; gap: 1rem; max-width: 240px; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 2.25rem; height: 2.25rem; border: 1px solid #2a2418; border-radius: 0.125rem;
  display: flex; align-items: center; justify-content: center; color: #9a8a78;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-socials a:hover { color: #c9a84c; border-color: #c9a84c; }
.footer-heading { color: #fff; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.5rem; }
.footer-list { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-list a { color: #9a8a78; font-size: 15px; font-weight: 300; transition: color 0.2s ease; }
.footer-list a:hover { color: #c9a84c; }
.footer-bottom { border-top: 1px solid #2a2418; }
.footer-bottom-inner {
  padding-top: 1.25rem; padding-bottom: 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom p, .footer-bottom a { color: #4a4038; font-size: 14px; font-weight: 300; }
.footer-bottom div { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: #c9a84c; }

/* ── Floating WhatsApp button (app/components/WhatsAppButton.tsx) ────── */
.wa-button {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 14px; color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.38), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
@media (min-width: 768px) { .wa-button { bottom: 1.5rem; right: 1.5rem; } }
.wa-button:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 32px rgba(37,211,102,0.5), 0 4px 10px rgba(0,0,0,0.22); }
.wa-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(37,211,102,0.4); }
.wa-ripple { position: absolute; inset: 0; border-radius: 14px; background: #25d366; animation: wa-ripple 2.6s cubic-bezier(0.2,0.6,0.3,1) infinite; will-change: transform, opacity; }
.wa-ripple-delayed { animation-delay: 1.3s; }
.wa-face { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(to bottom right, #2ee07a, #1ebe5b); }
.wa-glyph { position: relative; width: 1.5rem; height: 1.5rem; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)); transition: transform 0.3s ease; }
.wa-button:hover .wa-glyph { transform: rotate(-8deg) scale(1.1); }
.wa-dot { position: absolute; top: -0.25rem; right: -0.25rem; width: 0.75rem; height: 0.75rem; }
.wa-ping { position: absolute; inset: 0; border-radius: 999px; background: #7dfcb0; animation: wa-ping 1.8s cubic-bezier(0,0,0.2,1) infinite; }
.wa-dot-core { position: absolute; inset: 0; border-radius: 999px; background: #b9ffd6; box-shadow: 0 0 0 2px #fff; }
.dark .wa-dot-core { box-shadow: 0 0 0 2px #141210; }
.wa-label {
  pointer-events: none; position: absolute; right: 100%; margin-right: 0.75rem;
  display: none; align-items: center; white-space: nowrap; border-radius: 0.75rem;
  background: #1a0f00; color: #fff; padding: 0.5rem 1rem; font-size: 13px; font-weight: 500; letter-spacing: 0.025em;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  opacity: 0; transform: translateX(0.5rem); transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.dark .wa-label { background: #f0ebe4; color: #1a0f00; }
@media (min-width: 768px) { .wa-label { display: flex; } }
.wa-button:hover .wa-label, .wa-button:focus-visible .wa-label { opacity: 1; transform: translateX(0); }
.wa-label-arrow {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #1a0f00;
}
.dark .wa-label-arrow { border-left-color: #f0ebe4; }
@keyframes wa-ripple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-ripple, .wa-ping { animation: none; opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════════════
   Homepage (index.php) — ported from Hero/Portfolio/Services/About/
   Testimonials/Contact/Navbar .tsx
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Shared text bits ────────────────────────────────────────────────── */
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase; font-weight: 400; margin-bottom: 0.75rem; }
.eyebrow.small { font-size: 12px; margin-bottom: 0.5rem; }
.eyebrow.tiny { font-size: 13px; letter-spacing: 0.3em; margin-bottom: 0; }
.rule { width: 3.5rem; height: 2px; background: var(--gold); margin: 0 auto 1.25rem; }
.rule.left { margin-left: 0; margin-bottom: 1.75rem; }
.rule.short { width: 2rem; margin: 0 0 1rem; }
.rule.tight { margin-bottom: 0.75rem; }
.lede { color: var(--text-muted); font-size: 17px; font-weight: 300; line-height: 1.625; max-width: 36rem; margin: 0 auto; }
.lede.small { font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-size: 14px; font-weight: 500; transition: gap 0.3s ease; }
.text-link:hover { gap: 0.75rem; }
.text-link.large { font-size: 16px; }
.field-label { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; margin-bottom: 0.5rem; }

/* ── Buttons (homepage variants) ─────────────────────────────────────── */
.btn-lg { padding: 0.875rem 2rem; font-size: 15px; justify-content: center; gap: 0.75rem; }
.btn-glass {
  padding: 0.875rem 2rem; font-size: 15px; font-weight: 400; color: #fff;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }
.dark .btn-glass { background: rgba(42,36,32,0.8); border-color: rgba(255,255,255,0.2); }
.dark .btn-glass:hover { background: #3a3028; }
.btn-outline { border: 1px solid var(--border); color: var(--text-primary); transition: border-color 0.3s ease; }
.btn-outline:hover { border-color: var(--gold); }
.btn-whatsapp { width: 100%; justify-content: center; padding: 1rem; background: #25d366; color: #fff; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.btn-whatsapp:hover { background: #1ebe5d; }
.round-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.round-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Navbar ──────────────────────────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--nav-border); transition: background-color 0.3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .nav-inner { padding-left: 4rem; padding-right: 4rem; } }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 2.75rem; width: auto; object-fit: contain; }
.dark .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 15px; font-weight: 400; color: var(--text-primary); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.is-current { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle, .menu-toggle {
  width: 2.25rem; height: 2.25rem; border: 0; background: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); transition: color 0.2s ease;
}
.theme-toggle:hover { color: var(--gold); }
.theme-toggle span, .menu-toggle span { display: inline-flex; }
.theme-toggle .icon-sun, .dark .theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: inline-flex; }
.menu-toggle { color: var(--text-primary); }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.btn-nav { display: none; padding: 0.625rem 1.25rem; font-size: 14px; }
@media (min-width: 768px) { .btn-nav { display: inline-flex; } }
.mobile-menu { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; background: var(--nav-bg); border-top: 1px solid var(--nav-border); }
.mobile-menu[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu a { font-size: 15px; color: var(--text-primary); transition: color 0.2s ease; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { justify-content: center; padding: 0.75rem 1.25rem; font-size: 14px; color: var(--btn-text); }

/* ── Hero slideshow ──────────────────────────────────────────────────── */
.hero { position: relative; height: calc(100vh - 72px); min-height: 560px; overflow: hidden; background: #111; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 0s linear 0.8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; z-index: 1; }
.hero-slide.is-leaving { opacity: 0.8; visibility: visible; transform: translateX(-100%); }
.hero[data-direction="prev"] .hero-slide { transform: translateX(-100%); }
.hero[data-direction="prev"] .hero-slide.is-active { transform: translateX(0); }
.hero[data-direction="prev"] .hero-slide.is-leaving { transform: translateX(100%); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.dark .hero-shade { background: rgba(0,0,0,0.55); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.8); color: #1a0f00; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); transition: background-color 0.2s ease;
}
.hero-arrow:hover { background: #fff; }
.dark .hero-arrow { background: rgba(0,0,0,0.6); color: #fff; }
.dark .hero-arrow:hover { background: rgba(0,0,0,0.8); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
@media (min-width: 768px) { .hero-prev { left: 1.5rem; } .hero-next { right: 1.5rem; } }
.hero-content {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
}
.hero-badge-wrap { margin-bottom: 1.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 999px;
  background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.4); backdrop-filter: blur(4px);
  color: #fff; font-size: 13px; letter-spacing: 0.025em; font-weight: 400;
}
.dark .hero-badge { background: rgba(201,168,76,0.25); }
.hero-text { display: flex; flex-direction: column; align-items: center; animation: fade-up 0.5s ease-out both; }
.hero-text.is-swapping { animation: fade-swap 0.5s ease-out both; }
.hero-text h1 {
  color: #fff; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 1.25rem; max-width: 56rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}
.hero-text p { color: rgba(255,255,255,0.8); font-size: 17px; font-weight: 300; max-width: 36rem; line-height: 1.625; margin-bottom: 2.25rem; }
@media (min-width: 768px) { .hero-text p { font-size: 19px; } }
.hero .hero-actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero .hero-actions { flex-direction: row; } }
.scroll-hint { position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%); z-index: 20; }
.scroll-mouse { width: 22px; height: 34px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.5); display: flex; justify-content: center; padding-top: 0.375rem; }
.scroll-mouse i { display: block; width: 0.25rem; height: 0.375rem; background: #fff; border-radius: 999px; animation: scroll-dot 1.6s ease-in-out infinite; }
.fade-up { animation: fade-up 0.5s ease-out both; animation-delay: var(--delay, 0s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-swap { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s ease; transform: none !important; }
  .fade-up, .hero-text, .scroll-mouse i { animation: none; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-white { background: var(--bg-primary); }
.section-cream { background: var(--bg-secondary); }
.section .container { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .section .container { padding-left: 4rem; padding-right: 4rem; } }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { font-size: 2.25rem; font-weight: 600; line-height: 1.25; margin-bottom: 1.25rem; color: var(--text-primary); }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }
.section-cta { text-align: center; margin-top: 3rem; }
.section-cta .btn { padding-left: 2.25rem; padding-right: 2.25rem; }
.section-empty { text-align: center; color: var(--text-muted); font-size: 17px; }

/* ── Featured portfolio ──────────────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.25rem; border-radius: 0.125rem; background: var(--tile-bg); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.05); }
.portfolio-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.portfolio-body h3 { font-size: 22px; font-weight: 600; line-height: 1.375; margin-bottom: 0.75rem; color: var(--text-primary); }
.portfolio-body p:not(.eyebrow) { color: var(--text-muted); font-size: 16px; font-weight: 300; line-height: 1.625; margin-bottom: 1.25rem; flex: 1; }
.portfolio-card:hover .text-link { gap: 0.75rem; }

/* Gallery view of the featured grid, shown after "Explore Our Work": the
   /projects/ overlay card plus a category eyebrow, image count and a
   "View Project" cue that slides in on hover. */
.featured-card { height: 380px; }
@media (min-width: 640px) { .featured-card { height: 420px; } }
.featured-card .project-card-caption { padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 55%, transparent 100%); }
.featured-card-category { color: var(--gold); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.5rem; }
.featured-card .project-card-caption h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.featured-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.featured-card-count { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.75); font-size: 0.875rem; margin: 0; }
.featured-card-count svg { opacity: 0.8; }
.featured-card-more {
  display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold); font-size: 0.8125rem; font-weight: 500;
  opacity: 0; transform: translateX(-0.5rem); transition: opacity 0.3s ease, transform 0.3s ease;
}
.featured-card:hover .featured-card-more, .featured-card:focus-visible .featured-card-more { opacity: 1; transform: none; }
@media (hover: none) { .featured-card-more { opacity: 1; transform: none; } }

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: flex; flex-direction: column; padding: 2rem; border-radius: 0.125rem;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { border-color: var(--gold); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.dark .service-card:hover { box-shadow: 0 10px 15px -3px rgba(201,168,76,0.05), 0 4px 6px -4px rgba(201,168,76,0.05); }
.service-icon { margin-bottom: 1.25rem; color: var(--gold); display: inline-flex; transition: transform 0.3s ease; transform-origin: left center; }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.service-card p { color: var(--text-muted); font-size: 15px; font-weight: 300; line-height: 1.625; margin-bottom: 1.5rem; flex: 1; }
.service-features { display: flex; flex-direction: column; gap: 0.625rem; }
.service-features li { display: flex; align-items: center; gap: 0.625rem; font-size: 14px; font-weight: 300; color: var(--muted-2); }
.service-features li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--gold); flex-shrink: 0; }

/* ── About ───────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-heading { font-size: 2.25rem; font-weight: 600; line-height: 1.25; margin-bottom: 1.25rem; color: var(--text-primary); }
@media (min-width: 768px) { .about-heading { font-size: 3rem; } }
.about-heading .accent { font-style: italic; font-weight: 400; color: var(--gold); }
.about-text { color: var(--text-muted); font-size: 17px; font-weight: 300; line-height: 1.625; margin-bottom: 1.25rem; }
.about-text:last-of-type { margin-bottom: 2.5rem; }
.about-side { display: flex; flex-direction: column; gap: 1.75rem; }
.about-media { position: relative; overflow: hidden; border-radius: 0.125rem; }
.about-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.about-quote { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 1.25rem 1.5rem; }
.about-quote p { color: rgba(255,255,255,0.9); font-size: 16px; font-weight: 300; font-style: italic; line-height: 1.625; margin-bottom: 0.25rem; }
.about-quote span { color: var(--gold); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem 1rem; border-radius: 0.125rem;
  background: var(--card-bg); border: 1px solid var(--border);
}
.stat-value { font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 300; line-height: 1.375; margin-top: 0.25rem; }

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials { max-width: 48rem; margin: 0 auto; text-align: center; }
.testimonial { margin: 0; animation: fade-swap 0.4s ease-out both; }
.testimonial[hidden] { display: none; }
.stars { display: flex; justify-content: center; gap: 0.375rem; margin-bottom: 1.75rem; }
.testimonial blockquote { margin: 0 0 2.25rem; color: var(--quote-text); font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.625; }
@media (min-width: 768px) { .testimonial blockquote { font-size: 22px; } }
.testimonial-name { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; }
.testimonial-dots { display: flex; gap: 0.5rem; }
.dot { width: 1rem; height: 2px; border-radius: 999px; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.dot.is-active { width: 2rem; background: var(--gold); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; margin-bottom: 2.5rem; }
.contact-item { display: flex; gap: 1.25rem; }
.contact-icon { width: 2.75rem; height: 2.75rem; border: 1px solid var(--gold); border-radius: 0.125rem; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-item a, .contact-item p:not(.field-label) { color: var(--text-primary); font-size: 16px; font-weight: 300; }
.contact-item a:hover { color: var(--gold); }
.contact-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.125rem; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.dark .contact-media img { opacity: 0.5; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.125rem; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-primary); font: inherit; font-size: 15px; font-weight: 300;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form ::placeholder { color: var(--placeholder); }
.contact-form textarea { resize: none; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); padding: 6rem 1.5rem; text-align: center; }
.error-page > div { max-width: 36rem; }
.error-page .eyebrow { margin-bottom: 1rem; }
.error-page h1 { font-size: 2.25rem; font-weight: 600; line-height: 1.25; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .error-page h1 { font-size: 3rem; } }
.error-page .rule { margin-bottom: 1.5rem; }
.error-page .lede { margin-bottom: 2.25rem; }
.error-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .error-actions { flex-direction: row; } }
