:root {
  --ink: #121212;
  --charcoal: #202322;
  --cream: #fffaf2;
  --stone: #f4f0e9;
  --sand: #e2d4c1;
  --taupe: #817367;
  --walnut: #8a5d3b;
  --accent: #c99d5d;
  --line: rgba(18, 18, 18, 0.14);
  --line-light: rgba(255, 250, 242, 0.18);
  --shadow: 0 24px 70px rgba(18, 18, 18, 0.16);
  --container: 1160px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--stone);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-140%);
  background: var(--cream);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus { transform: translateY(0); }

.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;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
body:not([data-page="home"]) .site-header {
  background: rgba(18, 18, 18, 0.9);
  border-color: var(--line-light);
  backdrop-filter: blur(18px);
}

.nav {
  width: calc(100% - 32px);
  max-width: var(--container);
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--cream);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 156px;
  object-fit: contain;
}

.footer-brand .brand-logo {
  height: auto;
  max-height: 84px;
  max-width: 190px;
}

.nav-menu { display: none; }

.nav-menu a,
.nav-cta {
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-menu a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  display: none;
  padding: 10px 16px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 999px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: rgba(255, 250, 242, 0.12);
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--cream);
}

.nav-open .nav-menu {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--cream);
  background: rgba(18, 18, 18, 0.97);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-open .nav-menu a {
  padding: 13px 12px;
  border-radius: 6px;
}

.nav-open .nav-menu a:hover,
.nav-open .nav-menu a:focus-visible { background: rgba(255, 250, 242, 0.08); }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 10vw, 7rem);
}

h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { margin-bottom: 10px; font-size: 1.08rem; line-height: 1.25; }
p { color: var(--taupe); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button-primary { color: var(--ink); background: var(--accent); }
.button-ghost { color: var(--cream); border-color: rgba(255, 250, 242, 0.36); background: rgba(255, 250, 242, 0.08); }
.button-secondary { color: var(--ink); border-color: var(--line); background: transparent; }

.text-link {
  width: max-content;
  color: var(--walnut);
  font-weight: 900;
  border-bottom: 1px solid currentColor;
}

.text-link.light { color: var(--accent); }

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}

.hero { min-height: min(760px, 88svh); }
.page-hero { min-height: 470px; }

.hero-image,
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.54) 50%, rgba(18, 18, 18, 0.2)),
    linear-gradient(0deg, rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.04) 56%);
}

.hero-content,
.page-hero-content {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 132px 0 46px;
}

.page-hero-content { padding-top: 150px; }

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1rem, 2.4vw, 1.24rem);
}

.hero-actions,
.cta-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .button,
.cta-actions .button,
.contact-actions .button { flex: 1 1 100%; }

.intro-band {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.intro-layout {
  display: grid;
  gap: 26px;
  padding: 72px 0;
}

.intro-layout p { font-size: 1.04rem; }

.section { padding: 84px 0; }
.section.compact { padding: 58px 0; }

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.split-head {
  display: grid;
  gap: 20px;
  align-items: end;
}

.service-preview-grid,
.service-detail-grid,
.portfolio-preview,
.portfolio-grid,
.values-grid,
.faq-list,
.contact-grid,
.stats-grid,
.visual-grid {
  display: grid;
  gap: 16px;
}

.mini-card,
.service-detail,
.value-card,
.faq-card,
.contact-card,
.stat-card,
.project-tile,
.visual-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.66);
}

.mini-card,
.service-detail,
.value-card,
.faq-card,
.contact-card,
.stat-card {
  padding: 24px;
}

.mini-card,
.service-detail,
.project-tile,
.visual-card {
  overflow: hidden;
}

.mini-card img,
.service-detail img {
  width: calc(100% + 48px);
  height: 220px;
  margin: -24px -24px 22px;
  object-fit: cover;
}

.mini-card span,
.service-detail span,
.stat-card span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dark-section {
  color: var(--cream);
  background: var(--ink);
}

.dark-section p { color: rgba(255, 250, 242, 0.72); }

.portfolio-preview,
.portfolio-grid { align-items: stretch; }

.project-tile,
.visual-card {
  overflow: hidden;
  background: var(--cream);
}

.dark-section .project-tile,
.dark-section .visual-card {
  background: rgba(255, 250, 242, 0.06);
  border-color: var(--line-light);
}

.project-tile > div:last-child,
.visual-card > div:last-child { padding: 20px; }

.project-tile h2,
.service-detail h2,
.faq-card h2,
.contact-form h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  line-height: 1.18;
  margin-bottom: 10px;
}

.project-tile > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.visual-card img {
  width: 100%;
  min-height: 260px;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.project-type {
  margin-bottom: 7px;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.why-grid,
.about-layout,
.approach-layout,
.contact-layout {
  display: grid;
  gap: 34px;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list article {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.cta-strip {
  color: var(--cream);
  background: var(--charcoal);
}

.cta-layout {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 58px 0;
}

.cta-layout h2 { margin-bottom: 0; }

.page-grid {
  display: grid;
  gap: 24px;
}

.content-card {
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-card p:last-child,
.mini-card p:last-child,
.service-detail p:last-child,
.value-card p:last-child,
.faq-card p:last-child,
.contact-card p:last-child { margin-bottom: 0; }

.service-detail ul,
.approach-list,
.contact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail li,
.approach-list li,
.contact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.about-media {
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-card h3 { font-family: "Inter", sans-serif; }

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 14px; }

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(18, 18, 18, 0.18);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 157, 93, 0.18);
}

.form-note { margin: 0; font-size: 0.9rem; }

.site-footer {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 0 94px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand { color: var(--ink); }

.site-footer h2 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer nav,
.site-footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.site-footer a,
.site-footer span { color: var(--taupe); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--taupe);
  font-size: 0.86rem;
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: #1f9d5c;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(18, 18, 18, 0.22);
}

@media (max-width: 639px) {
  .container,
  .hero-content,
  .page-hero-content {
    width: calc(100% - 32px);
    max-width: 360px;
    margin-left: 16px;
    margin-right: auto;
  }

  .brand-logo {
    height: 52px;
    max-width: 124px;
  }

  .footer-brand .brand-logo {
    max-height: 72px;
    max-width: 150px;
  }

  h1 { font-size: 2.65rem; }
  h2 { font-size: 2rem; }

  .hero-copy,
  .page-hero p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .floating-whatsapp { display: none; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(18, 18, 18, 0.88);
}

.lightbox.is-open { display: grid; }

.lightbox figure {
  width: min(980px, 100%);
  margin: 0;
  color: var(--cream);
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 12px;
  color: rgba(255, 250, 242, 0.82);
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 10px 12px;
  color: var(--cream);
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  font-weight: 900;
}

@media (min-width: 640px) {
  .hero-actions .button,
  .cta-actions .button,
  .contact-actions .button { flex: 0 0 auto; }

  .service-preview-grid,
  .portfolio-preview,
  .portfolio-grid,
  .values-grid,
  .faq-list,
  .stats-grid,
  .visual-grid,
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; align-items: center; gap: 22px; color: rgba(255, 250, 242, 0.84); }
  .nav-cta { display: inline-flex; }
  .nav-menu a:hover,
  .nav-menu a:focus-visible { color: var(--cream); }

  .intro-layout,
  .why-grid,
  .about-layout,
  .approach-layout,
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

  .split-head,
  .cta-layout { grid-template-columns: 1fr auto; }

  .service-detail-grid,
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-preview { grid-template-columns: 1fr 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
