/* ============================================================
   GREATA ENTERPRISES & DEVELOPERS
   Global Stylesheet
   Design inspiration: Doc 1 brochure — diamond grid, taupe/
   warm-neutral palette, fluid Greata brand identity.
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand colors from Greata logo */
  --clr-blue:       #1A78C2;
  --clr-blue-dark:  #135DA3;
  --clr-green:      #1D7D3C;
  --clr-green-dark: #155E2D;

  /* Neutral palette */
  --clr-taupe:      #C4A882;
  --clr-taupe-dark: #A8905F;
  --clr-taupe-light:#D4BFA0;
  --clr-taupe-bg:   #F5F0E8;
  --clr-diamond-fill: #B8976A;

  --clr-white:      #FFFFFF;
  --clr-off-white:  #FAFAF7;
  --clr-cream:      #F3EDE0;
  --clr-dark:       #1A1A1A;
  --clr-mid:        #3D3D3D;
  --clr-muted:      #6B6B6B;

  /* Grid line color */
  --grid-line:      rgba(180,148,90,0.3);
  --grid-dot:       rgba(180,148,90,0.55);
  --grid-size:      80px;

  /* Typography */
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Outfit', system-ui, sans-serif;

  /* Spacing */
  --max-w:          1200px;
  --section-gap:    6rem;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--clr-dark);
  background: var(--clr-off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-cream); }
::-webkit-scrollbar-thumb { background: var(--clr-taupe); border-radius: 3px; }

/* ============================================================
   DIAMOND GRID BACKGROUND UTILITY
   Creates the signature hatched-rhombus texture from Doc 1.
   ============================================================ */
.grid-bg {
  background-color: var(--clr-off-white);
  background-image:
    linear-gradient(45deg,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(-45deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center center;
  position: relative;
}

/* Corner-dot pseudo-elements rendered via JS to keep CSS simple */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 2px, transparent 2px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: calc(var(--grid-size)/2) 0;
  pointer-events: none;
}

/* ============================================================
   DIAMOND / RHOMBUS CARD
   ============================================================ */
.diamond-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond {
  width: 300px;
  height: 300px;
  background: var(--clr-diamond-fill);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.diamond:hover {
  transform: rotate(45deg) scale(1.04);
  box-shadow: 0 20px 60px rgba(180,148,90,0.4);
}

.diamond--sm  { width: 200px; height: 200px; }
.diamond--lg  { width: 380px; height: 380px; }
.diamond--xl  { width: 460px; height: 460px; }

.diamond__inner {
  transform: rotate(-45deg);
  padding: 2rem;
  text-align: center;
  color: var(--clr-white);
  max-width: 88%;
}

.diamond__inner .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.diamond__inner h2,
.diamond__inner h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

.diamond__inner h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
.diamond__inner h3 { font-size: clamp(1rem, 2.5vw, 1.3rem); }

.diamond__inner p {
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-top: 0.5rem;
}

/* Logo icon in diamond */
.diamond--logo-icon {
  background: transparent;
  border: none;
}
.diamond--logo-icon .diamond-logo-badge {
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-blue) 50%, var(--clr-green) 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Diamond image variant */
.diamond--img {
  background: none;
  overflow: hidden;
}
.diamond--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-45deg) scale(1.45);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white);
  transition: color 0.25s;
  position: relative;
}

.site-nav.scrolled .nav-links a { color: var(--clr-dark); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-taupe);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover { color: var(--clr-taupe-light); }
.site-nav.scrolled .nav-links a:hover { color: var(--clr-taupe-dark); }

.nav-cta {
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-green));
  color: var(--clr-white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  letter-spacing: 0.1em !important;
  transition: opacity 0.25s, transform 0.25s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--clr-white);
  transition: all 0.3s;
}
.site-nav.scrolled .nav-hamburger span { background: var(--clr-dark); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 950;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212,191,160,0.75);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--clr-dark), var(--clr-mid));
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--clr-taupe);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  outline: none;
}

.back-to-top__icon {
  position: absolute;
  top: 18px;
  left: 17px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--clr-white);
  border-left: 2px solid var(--clr-white);
  transform: rotate(45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(26,120,194,0.75) 0%, rgba(29,125,60,0.5) 55%, rgba(0,0,0,0.7) 100%),
    url('images/home-hero-bg.webp') center/cover no-repeat;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero__text { color: var(--clr-white); }

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-taupe-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero__eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--clr-taupe-light);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-taupe-light);
}

.hero__subtitle {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-blue-dark));
  color: var(--clr-white);
  box-shadow: 0 8px 25px rgba(26,120,194,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(26,120,194,0.5);
}

.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--clr-white);
}

.btn--taupe {
  background: linear-gradient(135deg, var(--clr-taupe-dark), var(--clr-diamond-fill));
  color: var(--clr-white);
  box-shadow: 0 8px 25px rgba(180,148,90,0.35);
}
.btn--taupe:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(180,148,90,0.5);
}

/* Hero diamond cluster (right side) */
.hero__diamond-cluster {
  position: relative;
  display: grid;
  place-items: center;
  height: 480px;
}

.hero__diamond-cluster .diamond {
  position: absolute;
}

/* Subtle pulse that cycles through each diamond in sequence,
   signalling "hover me" without being distracting */
@keyframes hero-diamond-shimmer {
  0%, 100% { box-shadow: 0 0 0   rgba(255,255,255,0);    }
  55%       { box-shadow: 0 0 45px rgba(255,255,255,0.14); }
}

.hero__diamond-cluster .hero-diamond {
  border: 1.5px solid rgba(212,191,160,0.28);
  cursor: default;
  animation: hero-diamond-shimmer 5s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Frosted-glass ghost: text is present but blurred — "something is in there" */
.hero__diamond-cluster .hero-diamond .diamond__inner {
  opacity: 0.78;
  filter: blur(2px);
  /* Fast exit so text blurs back quickly when cursor leaves */
  transition: opacity 0.18s ease, filter 0.18s ease;
}

/* Staggered shimmer delays so each diamond pulses at a different beat */
.hero__diamond-cluster .hero-diamond--taupe { background: rgba(196,168,130,0.25); }
.hero__diamond-cluster .hero-diamond--blue  { background: rgba(26,120,194,0.35);  animation-delay: 1.7s; }
.hero__diamond-cluster .hero-diamond--green { background: rgba(29,125,60,0.4);    animation-delay: 3.4s; }

/* On hover: shimmer stops, border brightens to signal active state */
.hero__diamond-cluster .hero-diamond:hover,
.hero__diamond-cluster .hero-diamond:focus-within {
  border-color: rgba(255,255,255,0.85);
  animation: none;
}

/* Text unblurs after diamond fills with colour — 0.1s delay creates a
   satisfying sequential reveal: colour first, then content */
.hero__diamond-cluster .hero-diamond:hover .diamond__inner,
.hero__diamond-cluster .hero-diamond:focus-within .diamond__inner {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.4s ease 0.1s, filter 0.4s ease 0.1s;
}

/* Per-colour glow — shadow tint matches each diamond's brand colour */
.hero__diamond-cluster .hero-diamond--taupe:hover,
.hero__diamond-cluster .hero-diamond--taupe:focus-within {
  background: rgba(168,144,95,1);
  box-shadow: 0 20px 60px rgba(168,144,95,0.45);
}

.hero__diamond-cluster .hero-diamond--blue:hover,
.hero__diamond-cluster .hero-diamond--blue:focus-within {
  background: rgba(26,120,194,1);
  box-shadow: 0 20px 60px rgba(26,120,194,0.45);
}

.hero__diamond-cluster .hero-diamond--green:hover,
.hero__diamond-cluster .hero-diamond--green:focus-within {
  background: rgba(29,125,60,1);
  box-shadow: 0 20px 60px rgba(29,125,60,0.45);
}

/* Stats bar */
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.stat {
  text-align: center;
  color: var(--clr-white);
}

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--clr-taupe-light);
  line-height: 1;
}

.stat__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.3rem;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  padding: var(--section-gap) 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 36px; height: 1.5px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-green));
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--clr-dark);
}

.section-title em {
  font-style: italic;
  color: var(--clr-taupe-dark);
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--clr-muted);
  max-width: 680px;
  margin-top: 1rem;
}

/* ============================================================
   ABOUT SECTION — diamond grid layout
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-diamonds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  place-items: center;
  padding: 2rem 0;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom,
    transparent,
    var(--clr-taupe) 15%,
    var(--clr-taupe) 85%,
    transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 3rem);
  margin-bottom: 3.5rem;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 3rem);
  transform: translateX(40px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 14px; height: 14px;
  background: var(--clr-taupe);
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
  transition: background 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--clr-blue);
}

.timeline-card {
  background: var(--clr-white);
  border: 1px solid rgba(196,168,130,0.3);
  padding: 1.4rem 1.6rem;
  max-width: 320px;
  position: relative;
  transition: box-shadow 0.3s;
}

.timeline-card:hover {
  box-shadow: 0 8px 30px rgba(180,148,90,0.2);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--clr-taupe-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ============================================================
   LEADERSHIP CARDS
   ============================================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.leader-card {
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid rgba(196,168,130,0.3);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-blue), var(--clr-green));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.leader-card:hover::before { transform: scaleX(1); }

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.leader-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-green) 100%);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--clr-white);
}

.leader-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 0.3rem;
}

.leader-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
  border: 1px solid rgba(196,168,130,0.25);
  transition: transform 0.35s, box-shadow 0.35s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.project-card__img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-green));
  color: var(--clr-white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.project-card__body { padding: 1.6rem 1.8rem; }

.project-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.project-card__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
  margin-bottom: 0.8rem;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-blue);
  transition: gap 0.25s;
}
.project-card__link:hover { gap: 0.7rem; }
.project-card__link::after { content: '→'; }

/* ============================================================
   INITIATIVES / DIVISIONS GRID
   ============================================================ */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(196,168,130,0.3);
  margin-top: 3rem;
}

.initiative-item {
  background: var(--clr-white);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.initiative-item:hover {
  background: var(--clr-cream);
}

.initiative-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--clr-taupe-light), var(--clr-taupe-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.initiative-icon span { transform: rotate(-45deg); }

.initiative-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 0.6rem;
}

.initiative-item p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ============================================================
   MASKEN HEIGHTS — FEATURE BAND
   ============================================================ */
.masken-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.masken-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 100%),
    url('images/masken-hero-bg.webp') center/cover no-repeat;
}

.masken-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2.5rem;
  color: var(--clr-white);
}

.masken-hero__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-taupe-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.masken-hero__tag::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--clr-taupe-light);
}

.masken-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.masken-hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--clr-taupe-light);
  margin-bottom: 1.5rem;
}

.masken-hero__desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Key numbers strip */
.key-numbers {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.key-num__val {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--clr-taupe-light);
}

.key-num__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--clr-white);
  border: 1px solid rgba(196,168,130,0.3);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}

.amenity:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(180,148,90,0.2);
  border-color: var(--clr-taupe);
}

.amenity__icon {
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-green) 100%);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.amenity__icon span { transform: rotate(-45deg); display: block; }

.amenity h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: 0.3rem;
}

.amenity p {
  font-size: 0.78rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ============================================================
   SPECS TABLE
   ============================================================ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(196,168,130,0.3);
  margin-top: 3rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(196,168,130,0.25);
  border-right: 1px solid rgba(196,168,130,0.25);
}

.spec-row:nth-child(even) .spec-key { background: var(--clr-taupe-bg); }

.spec-key {
  padding: 1rem 1.2rem;
  background: var(--clr-cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
  border-right: 1px solid rgba(196,168,130,0.3);
  display: flex;
  align-items: center;
}

.spec-val {
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--clr-mid);
  line-height: 1.6;
  background: var(--clr-white);
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  padding: 5rem 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.quote-band::before {
  content: '\201C';
  position: absolute;
  top: -2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 18rem;
  line-height: 1;
  color: rgba(196,168,130,0.12);
  user-select: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--clr-white);
  max-width: 820px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.quote-attr {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-taupe-light);
  position: relative;
  z-index: 2;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--clr-dark);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-line__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--clr-taupe-light), var(--clr-taupe-dark));
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.contact-line__icon span { transform: rotate(-45deg); }

.contact-line__text {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.contact-line__text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
  margin-bottom: 0.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-taupe-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--clr-cream);
  border: 1px solid rgba(196,168,130,0.4);
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--clr-dark);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  border-radius: 0;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--clr-taupe);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.2);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--clr-green); }
.form-status.is-error { color: #9A2E1F; }

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 36px;
  width: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-taupe-light);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s;
}
.footer-col ul a:hover { color: var(--clr-taupe-light); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-white  { color: var(--clr-white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.bg-cream     { background: var(--clr-cream); }
.bg-taupe-bg  { background: var(--clr-taupe-bg); }
.bg-dark      { background: var(--clr-dark); }
.bg-gradient-blue {
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-green-dark));
}

.divider-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  margin: 2rem 0;
}
.divider-diamond::before,
.divider-diamond::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-taupe-light));
}
.divider-diamond::after {
  background: linear-gradient(90deg, var(--clr-taupe-light), transparent);
}
.divider-diamond span {
  width: 10px; height: 10px;
  background: var(--clr-taupe);
  transform: rotate(45deg);
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__diamond-cluster { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .initiatives-grid { grid-template-columns: repeat(2, 1fr); }
  /* Show text before decorative diamonds when stacked */
  .about-diamonds { order: 2; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; }

  .site-nav { padding: 1rem 1.5rem; }
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
  .back-to-top__icon {
    top: 17px;
    left: 16px;
    width: 12px;
    height: 12px;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.4rem; color: var(--clr-white) !important; }

  .hero {
    align-items: center;
  }
  .hero__content {
    padding: 5.75rem 1.5rem 11.5rem;
  }
  .hero__stats-inner { flex-wrap: wrap; justify-content: center; gap: 1rem; }

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

  .initiatives-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .timeline::before { left: 1.5rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 4rem;
    padding-right: 0;
    justify-content: flex-start;
    transform: translateY(24px);
  }
  .timeline-item.visible,
  .timeline-item:nth-child(even).visible {
    transform: translateY(0);
  }
  .timeline-dot { left: 1.5rem; }

  /* Reduce container padding for more content space */
  .container { padding: 0 1.25rem; }

  /* Philosophy diamond: give it a little more room than the global
     diamond--lg mobile override so all three content blocks fit neatly */
  .about-diamonds .diamond--lg {
    width: 300px;
    height: 300px;
  }
  /* Tighter padding + constrained max-width so text wraps comfortably
     within the visible inscribed area of the diamond shape */
  .about-diamonds .diamond__inner {
    padding: 0.75rem;
    max-width: 68%;
  }
  /* Eyebrow — slightly larger and tighter tracking for readability */
  .about-diamonds .diamond__inner .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
  }
  /* Heading — readable serif, compact line-height */
  .about-diamonds .diamond__inner h2 {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  /* Paragraph — legible body size with tighter leading to save vertical space */
  .about-diamonds .diamond__inner p {
    font-size: 0.72rem;
    line-height: 1.45;
    margin-top: 0.3rem;
  }

  /* Keep logo and hamburger rendered above the full-screen menu overlay */
  .nav-logo    { position: relative; z-index: 1000; }
  .nav-hamburger { position: relative; z-index: 1000; }

  /* When the mobile menu is open, strip the sticky-nav styling so the dark
     overlay covers the full screen without a frosted-white strip at the top */
  .site-nav.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* Hamburger spans always white when overlay is open */
  .site-nav.menu-open .nav-hamburger span { background: var(--clr-white); }

  /* Hamburger → X animation */
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Scale all diamond sizes down to prevent horizontal overflow */
  .diamond     { width: 200px; height: 200px; }
  .diamond--sm { width: 150px; height: 150px; }
  .diamond--lg { width: 230px; height: 230px; }
  .diamond--xl { width: 260px; height: 260px; }

  /* About section diamonds — collapse to single column */
  .about-diamonds { grid-template-columns: 1fr; }

  /* Timeline cards — expand to fill available width */
  .timeline-card { max-width: 100%; }

  /* Inline two-column grids — collapse to single column on mobile */
  .two-col-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Key numbers strip — tighter spacing */
  .key-numbers { gap: 1.5rem; }

  .masken-hero__content {
    padding: 4.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 5.5rem 1.5rem 11rem;
  }

  /* Stats bar: keep three per row, with the final row centered */
  .hero__stats-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 0.75rem;
    padding: 1rem;
  }
  .hero__stats-inner .stat {
    flex: 0 0 calc((100% - 1.5rem) / 3);
  }

  /* Slightly smaller logo to give the hamburger more breathing room */
  .nav-logo img { width: 155px; }
}
