/* Gatorem — Mediterranean Minimal Luxury */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --warm-white: #FBF8F3;
  --ivory: #F4EFE6;
  --sand: #C9B896;
  --terracotta: #B86B52;
  --olive: #6A7B58;
  --stone: #7A756E;
  --aegean: #3A6280;
  --gold: #A8926A;
  --ink: #2A2824;
  --ink-soft: #4A4640;
  --line: rgba(42, 40, 36, 0.12);
  --white: #FFFFFF;
  --shadow: 0 24px 60px rgba(42, 40, 36, 0.08);
  --radius: 2px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', 'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.menu-scroll-lock {
  scroll-behavior: auto !important;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aegean);
  margin-bottom: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
}

.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1002;
  position: relative;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--terracotta);
}

.nav-cta {
  padding: 0.7rem 1.35rem !important;
  border: 1px solid var(--ink);
  letter-spacing: 0.14em !important;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--warm-white) !important;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.3s;
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

.burger.active span { background: transparent; }
.burger.active span::before { top: 0; transform: rotate(45deg); }
.burger.active span::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 1003;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--warm-white);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }

.menu-close:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--terracotta);
}

.nav-mobile .mobile-cta {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--aegean);
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--warm-white);
}

.btn-light {
  border: 1px solid var(--warm-white);
  color: var(--warm-white);
}

.btn-light:hover {
  background: var(--warm-white);
  color: var(--ink);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 40, 36, 0.18) 0%, rgba(42, 40, 36, 0.45) 55%, rgba(42, 40, 36, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--warm-white);
  max-width: 760px;
}

.hero-content .eyebrow {
  color: var(--sand);
}

.hero-content h1 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  color: rgba(251, 248, 243, 0.88);
}

.hero .btn-primary {
  background: var(--warm-white);
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--ivory);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-alt {
  background: var(--ivory);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }

.split-media {
  position: relative;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split:hover .split-media img {
  transform: scale(1.03);
}

.split-text .eyebrow { margin-bottom: 0.85rem; }
.split-text h2 { margin-bottom: 1.25rem; }
.split-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.split-text p:last-of-type {
  margin-bottom: 1.75rem;
}

/* Cards / Projects */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.project-card-body span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.project-card-body h3 {
  margin-bottom: 0.65rem;
}

.project-card-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Services */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-style: italic;
}

.service-item h3 {
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--ink-soft);
  max-width: 38rem;
}

.service-tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 0.35rem;
}

.services-visual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

.services-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-visual img:first-child {
  aspect-ratio: 16 / 11;
}

.services-visual .stack {
  display: grid;
  gap: 1.25rem;
}

.services-visual .stack img {
  aspect-ratio: 1 / 1;
}

/* Philosophy strip */
.quote-band {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  color: var(--warm-white);
  overflow: hidden;
}

.quote-band-bg {
  position: absolute;
  inset: 0;
}

.quote-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 36, 0.58);
}

.quote-band .container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
}

.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.quote-band cite {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
}

/* Materials */
.materials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.material-item {
  background: var(--warm-white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.material-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.material-item span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 107, 82, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(58, 98, 128, 0.07), transparent 45%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

/* About extras */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.value-card {
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--sand);
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--terracotta);
}

.timeline-item h3 {
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-details {
  display: grid;
  gap: 1.75rem;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
}

.contact-block p,
.contact-block address {
  font-style: normal;
  color: var(--ink-soft);
}

.contact-block a {
  color: var(--aegean);
}

.contact-block a:hover {
  color: var(--terracotta);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.social-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
}

.social-links a:hover {
  color: var(--aegean);
  border-color: var(--aegean);
}

.contact-form {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.55rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--aegean);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(106, 123, 88, 0.12);
  color: var(--olive);
  font-size: 0.92rem;
}

.form-message.show {
  display: block;
}

.map-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  width: 100%;
  height: min(420px, 55vw);
  border: 0;
  filter: grayscale(25%) contrast(0.95);
}

.contact-visual {
  margin-top: 2.5rem;
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Legal */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 1rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.legal-content a {
  color: var(--aegean);
  border-bottom: 1px solid transparent;
}

.legal-content a:hover {
  border-color: var(--aegean);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 243, 0.82);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo-text {
  color: var(--warm-white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 16rem;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-contact address,
.footer-contact p {
  font-style: normal;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--sand);
}

.footer-contact a:hover {
  color: var(--warm-white);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--warm-white);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(251, 248, 243, 0.3);
  padding-bottom: 2px;
}

.footer-social a:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(251, 248, 243, 0.12);
  font-size: 0.82rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom a:hover {
  color: var(--warm-white);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Utility */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .burger { display: grid; }

  .split,
  .split.reverse .split-text,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-text,
  .split.reverse .split-media {
    order: unset;
  }

  .split-media img {
    aspect-ratio: 16 / 11;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .materials {
    grid-template-columns: 1fr 1fr;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-visual {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 3rem 1fr;
  }

  .service-tag {
    grid-column: 2;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: min(100% - 1.75rem, 1180px);
  }

  .grid-3,
  .grid-2,
  .materials,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 3rem);
  }
}

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

  .hero-media img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
