/* ─── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --gold:   #c9a960;
  --dark:   #0b0b0c;
  /* How far each brand-row image bleeds to the viewport edge.
     Equals the space between the 1200px container edge and the viewport edge,
     plus the inner container's 48px padding. Zero-clamped for small screens. */
  --gutter: max(0px, calc((100vw - 1200px) / 2 + 48px));
}

/* ─── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
/* In-page anchors stop 70px short so the fixed nav doesn't cover the section top */
#houses, #contact, #turkey, #africa, #collaborate, #enquire { scroll-margin-top: 70px; }
html, body { margin: 0; padding: 0; }
body  { background: var(--dark); font-family: 'Inter', sans-serif; color: #111; overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--dark); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.hamburger-line {
  width: 28px;
  height: 1px;
  background: #fff;
  display: block;
}

/* Desktop inline nav links (gateway landing page) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

/* ─── Slide-out Menu ─────────────────────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;     /* prevents menu content leaking into the viewport when closed */
  background: var(--dark);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-overlay.open { transform: translateY(0); }

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}
.menu-logo { color: #fff !important; }

.menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

.menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px 60px;
  max-width: 900px;
}

.menu-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 28px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.menu-row:hover .menu-name { color: var(--gold); }

.menu-num  { font-family: 'Cormorant', serif; font-size: 16px; color: var(--gold); }
.menu-name { font-family: 'Cormorant', serif; font-size: clamp(22px, 4.7vw, 46px); font-weight: 500; flex: 1; transition: color 0.2s; }
.menu-tag  { font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); }

.menu-contact {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}
.menu-contact a { color: rgba(255, 255, 255, 0.55); }
.menu-contact a:hover { color: var(--gold); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('../images/hero_img.png') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* Landing page hero overlay is one shade darker than the brands page */
.hero-gateway .hero-glow {
  background: rgba(0, 0, 0, 0.9);
}

.hero-box {
  position: relative;
  border: 1px solid rgba(201, 169, 96, 0.45);
  padding: 56px 64px;
  max-width: 820px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-heading {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 47px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 24px;
}
.hero-heading em { font-style: italic; color: var(--gold); }

.hero-subtext {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
  max-width: 650px;
  margin: 0 auto 26px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: background 0.3s;
}
.hero-cta:hover { background: rgba(201, 169, 96, 0.1); color: var(--gold); }

/* Hero CTA row (gateway landing page) — wraps to fit any number of buttons */
.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Houses ─────────────────────────────────────────────────────────────────── */
.houses {
  background: #fff;
  padding: 120px 48px;
}

.houses-header {
  max-width: 1200px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #8a7a52;
  margin-bottom: 20px;
}

.houses-heading {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  margin: 0 0 32px;
  color: #111;
}
.houses-heading em { font-style: italic; }

.houses-intro {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
  max-width: 720px;
  margin: 0 auto;
}

/* Brand rows container — sits inside the section's 1200px center */
.brand-rows { max-width: 1200px; margin: 0 auto; }

/* Each row breaks out to full viewport width for background color */
.brand-row-outer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #fff;
}
.brand-row-outer.row-bg-alt { background: #f8f7f7; }

/* Re-center content inside the full-bleed row */
.brand-row-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Two-column grid: text | image or image | text */
.brand-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0 0 64px;
}

/* Africa's copy runs longer than its image, so align-items:center would push
   the photo down and leave a gap above it. Pin it flush to the row's top instead. */
#africa .brand-row-img-col { align-self: start; }

/* ── Text column ── */
.brand-num-tag {
  font-family: 'Cormorant', serif;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.brand-name {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 20px;
  color: #111;
}
.brand-desc {
  font-size: 16px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 28px;
  max-width: 440px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #111;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.25s, gap 0.25s;
}
.brand-link:hover { color: var(--gold); gap: 14px; }

/* Card CTA button (gateway landing page) — same treatment as .form-submit */
.brand-cta {
  display: inline-block;
  margin: 0 28px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--gold);
  color: #111;
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: background 0.3s;
}
.brand-cta:hover { background: rgba(201, 169, 96, 0.1); }

/* ── Image column ── */

/* Image bleeds toward the nearest viewport edge */
.brand-row-img-col.bleed-right {
  width: calc(100% + var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}
.brand-row-img-col.bleed-left {
  width: calc(100% + var(--gutter));
  margin-left: calc(-1 * var(--gutter));
}

.brand-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.brand-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-thumbs { display: flex; gap: 8px; margin-top: 8px; }

/* Bleed-right rows (white bg): thumbs sit left-aligned with right breathing room */
.brand-row-img-col.bleed-right .brand-thumbs { padding-right: 5%; }

/* Bleed-left rows (#f8f7f7 bg): thumbs right-aligned with left breathing room */
.brand-row-img-col.bleed-left .brand-thumbs  { padding-left: 5%; justify-content: flex-end; }

.brand-thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  transition: border-color 0.25s;
}
.brand-thumb.active { border-color: var(--gold); }
.brand-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Contact ─────────────────────────────────────────────────────────────────── */
.contact {
  background: #fff;
  padding: 22px 48px 120px;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #8a7a52;
  margin-bottom: 20px;
}
.contact-heading {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  margin: 0 0 24px;
  color: #111;
}
.contact-heading em { font-style: italic; }
.contact-intro-text {
  font-size: 16px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 36px;
  max-width: 420px;
}
.contact-details { font-size: 15px; line-height: 1.9; color: #4a4a4a; }
.contact-details a { color: #111; border-bottom: 1px solid var(--gold); }
.contact-details a:hover { color: var(--gold); }

/* Success message */
.contact-success { display: flex; align-items: center; padding: 40px 0; }
.contact-success p {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  line-height: 1.5;
  color: #111;
  margin: 0;
}

/* Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 26px; }

/* The hidden attribute must beat the display:flex rules above (form/success swap) */
.contact-success[hidden],
.contact-form-wrap[hidden] { display: none; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #8a7a52;
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d8d2c4;
  padding: 10px 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #111;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-bottom-color: var(--gold); }
.form-textarea { resize: vertical; }

/* Conditional field-sets (gateway enquiry form) */
.form-condset {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.form-condset[hidden] { display: none; }

.form-submit {
  align-self: flex-start;
  margin-top: 12px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--gold);
  color: #111;
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s;
}
.form-submit:hover    { background: rgba(201, 169, 96, 0.1); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-status-ok  { font-size: 14px; color: var(--gold); }
.form-status-err { font-size: 14px; color: #c0392b; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 88px 48px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-name { font-family: 'Cormorant', serif; font-size: 24px; letter-spacing: 0.1em; color: #fff; margin-bottom: 6px; }
.footer-brand-sub  { font-size: 11px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 20px; }
.footer-brand-desc { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); max-width: 320px; margin: 0; }

.footer-col-title  { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 20px; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--gold); }

.footer-visit-text { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); margin: 0 0 16px; }

.footer-contact a { font-size: 14px; color: rgba(255, 255, 255, 0.7); display: block; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}
.btn-water {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #3fc9e0;
  border: 1px solid #3fc9e0;
  padding: 14px 26px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn-water-label { position: relative; z-index: 2; transition: color 0.4s ease; }
.btn-water-wave1, .btn-water-wave2 {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 220%; height: 60px; z-index: 0;
  transform: translateX(-25%) translateY(100%);
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.btn-water-wave1 { background: #0e93ad; border-radius: 44%; }
.btn-water-wave2 { background: #3fc9e0; border-radius: 42%; z-index: 1; transition-delay: 0.05s; }

.btn-water:hover { color: #0a1f24; border-color: #3fc9e0; }
.btn-water:hover .btn-water-label { color: #0a1f24; }
.btn-water:hover .btn-water-wave1 { transform: translateX(-25%) translateY(15%) rotate(3deg); }
.btn-water:hover .btn-water-wave2 { transform: translateX(-25%) translateY(20%) rotate(-2deg); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Collapse brand rows to single column */
  .brand-row-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  /* Remove bleed on tablet / mobile */
  .brand-row-img-col.bleed-right,
  .brand-row-img-col.bleed-left {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  /* Show image before text on mobile for text-left rows */
  .layout-img-right .brand-row-img-col { order: -1; }
}

@media (max-width: 900px) {
  .site-nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .menu-header, .menu-body { padding-left: 24px; padding-right: 24px; }

  .hero-box { padding: 40px 32px; }

  .houses { padding: 80px 24px; }
  .brand-row-inner-container { padding: 0 24px; }
  .brand-cta { padding: 20px 30px; margin-bottom: 30px; }

  .contact { padding: 22px 24px 80px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row-2    { grid-template-columns: 1fr; }

  footer { padding: 64px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .site-nav { padding: 18px 20px; }
  .menu-header, .menu-body { padding-left: 20px; padding-right: 20px; }

  .hero { padding: 100px 20px 60px; }
  .hero-box { padding: 32px 24px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }

  .houses { padding: 60px 20px; }
  .brand-row-inner-container { padding: 0 20px; }

  .contact { padding: 16px 20px 60px; }

  footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
