/* ==========================================================================
   EFS Design — efsdesign.net
   Design tokens lifted from the EFS Networks design system so this site reads
   as part of the same family. Standalone: no Bootstrap, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* EFS brand colors */
  --efs-navy: #1B2A4A;
  --efs-charcoal: #2D3436;
  --efs-amber: #D4872C;
  --efs-teal: #1A7F7A;
  --efs-white: #F8F6F3;
  --efs-stone: #E8E4DF;
  --efs-slate: #374151;

  /* Site tokens. EFS Design leans warmer than Networks — the accent does more
     work here because the subject matter is interiors, not infrastructure. */
  --site-primary: var(--efs-navy);
  --site-accent: var(--efs-amber);
  --site-accent-alt: var(--efs-teal);
  --site-ink: #16213A;
  --site-muted: #5C6A7E;
  --site-line: rgba(27, 42, 74, 0.12);

  /* Typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: clamp(1.375rem, 2.5vw, 1.75rem);
  --text-h4: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-xs: 0.8125rem;

  --leading-tight: 1.2;
  --leading-normal: 1.7;
  --leading-relaxed: 1.8;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3rem, 6vw, 5rem);

  /* Layout */
  --max-width: 1200px;
  --content-width: 68ch;
  --grid-gap: clamp(1rem, 2vw, 1.5rem);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows — tinted navy, never neutral grey */
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 8px 24px rgba(27, 42, 74, 0.12);
  --shadow-xl: 0 16px 48px rgba(27, 42, 74, 0.15);
  --shadow-card-hover: 0 12px 32px rgba(27, 42, 74, 0.14);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--site-ink);
  background: var(--efs-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--site-primary);
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--site-primary); text-decoration-color: var(--site-accent); text-underline-offset: 3px; }
a:hover { color: var(--site-accent); }

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

ul { margin: 0 0 var(--space-md); padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

:focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--site-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--stone { background: var(--efs-stone); }
.section--dark {
  background: linear-gradient(135deg, var(--efs-navy) 0%, #101B31 100%);
  color: rgba(255, 255, 255, 0.86);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin: 0 0 var(--space-sm);
}

.section-head { max-width: 60ch; margin-bottom: var(--space-2xl); }
.section-head p { color: var(--site-muted); font-size: 1.125rem; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.lead { font-size: 1.1875rem; line-height: var(--leading-relaxed); }

.rule {
  width: 56px;
  height: 3px;
  background: var(--site-accent);
  border: 0;
  margin: 0 0 var(--space-lg);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-spring), background var(--transition-base),
              color var(--transition-base), box-shadow var(--transition-base);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--site-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #BE7622; color: #fff; box-shadow: var(--shadow-lg); }

.btn--outline { border-color: var(--site-primary); color: var(--site-primary); background: transparent; }
.btn--outline:hover { background: var(--site-primary); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--site-primary); border-color: #fff; }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-small); }

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--site-line); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }

.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 40px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--site-primary);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav__links a:hover { color: var(--site-accent); border-bottom-color: var(--site-accent); }
.nav__links .btn:hover { border-bottom-color: transparent; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  color: var(--site-primary);
}
.nav__toggle svg { display: block; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--efs-white);
    border-bottom: 1px solid var(--site-line);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) clamp(1.25rem, 4vw, 2.5rem) var(--space-lg);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { margin: 0; }
  .nav__links a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--site-line); }
  .nav__links .btn { margin-top: var(--space-md); justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1B2A4A 0%, #0E1729 100%);
  color: #fff;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

/* The conceptual space plan from the portfolio, dropped in at low opacity —
   a designer's drawing rather than a decorative texture. */
.hero__plan {
  position: absolute;
  inset: 0;
  background: url('../img/amenity-space-plan.jpg') center right / cover no-repeat;
  opacity: 0.14;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.15);
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 23, 41, 0.94) 0%, rgba(14, 23, 41, 0.72) 55%, rgba(14, 23, 41, 0.45) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 62ch; }

.hero h1 {
  font-size: var(--text-hero);
  color: #fff;
  margin-bottom: var(--space-lg);
}
.hero h1 em { font-style: normal; color: var(--site-accent); }

.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-xl);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* Full width of the wrap, not the 62ch hero column — the four items should sit on
   one line at desktop rather than wrapping the last one onto its own row. */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.hero__meta li { margin: 0; }

/* --------------------------------------------------------------------------
   7. DISCIPLINE CARDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.card__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--site-accent);
  display: block;
  margin-bottom: var(--space-sm);
}
.card h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.card p { color: var(--site-muted); }
.card ul { color: var(--site-muted); font-size: var(--text-small); margin-top: var(--space-md); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. SPLIT (two-column prose + list)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
  line-height: var(--leading-normal);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.92);
}
.section--dark .checks li::before { box-shadow: inset 0 0 0 3px rgba(14, 23, 41, 1); }
.checks strong { display: block; font-family: var(--font-display); color: var(--site-primary); }
.section--dark .checks strong { color: #fff; }

/* --------------------------------------------------------------------------
   9. PORTFOLIO
   -------------------------------------------------------------------------- */
.project {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--site-line);
}
.project:first-of-type { border-top: 0; padding-top: 0; }

/* Grid and flex children default to min-width:auto, so a horizontally-scrolling
   wide image inside one would stretch its track and push the copy off-screen
   instead of scrolling. */
.project > *, .pano > * { min-width: 0; }

@media (min-width: 900px) {
  /* The media always gets the wider track, so a flipped row also flips the track
     widths — otherwise a wide image (a street elevation) lands in the narrow
     column and shrinks to nothing. */
  .project { grid-template-columns: 1.15fr 0.85fr; }
  .project--flip { grid-template-columns: 0.85fr 1.15fr; }
  .project--flip .project__media { order: 2; }
  /* Copy over full-width media: for images too wide to sit in a column. */
  .project--stacked { grid-template-columns: 1fr; }
  .project--stacked .project__body { max-width: 78ch; }
}

.band { margin: 0; }
.band img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Wide images (a 3.5:1 street elevation, a 2.8:1 lounge panorama) collapse to an
   unreadable sliver on a phone. Below 700px they keep a usable height and pan
   horizontally instead of scaling down. */
@media (max-width: 700px) {
  .band__scroll, .pano__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .band__scroll img, .pano__scroll img {
    width: auto;
    max-width: none;
    height: 260px;
    border-radius: var(--radius-lg);
  }
  .pano__scroll { box-shadow: var(--shadow-lg); }
  .band__hint {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-accent);
    margin-top: 0.5rem;
  }
}
.band__hint { display: none; }
.band figcaption,
.project__thumbs figcaption {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-muted);
  margin-top: 0.625rem;
}

.project__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--efs-stone);
}
.project__media img { width: 100%; }

/* Small source renders: cap the frame so they are never upscaled past their
   native resolution and blurred. */
.project__media--compact { max-width: 420px; }

/* The drawing plate supplies its own paper frame and shadow. */
.project__media--plate { box-shadow: none; background: transparent; overflow: visible; }

.project__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-top: var(--space-lg);
}
/* Three across is too small to read on a phone; go two-up and let the third
   render span the full width. */
@media (max-width: 600px) {
  .project__thumbs { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .project__thumbs > figure { min-width: 0; }
  .project__thumbs figure:last-child { grid-column: 1 / -1; }
  .project__thumbs figure:last-child img { aspect-ratio: 16 / 9; }
}
.project__thumbs figure { margin: 0; }
.project__thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.project__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin: 0 0 var(--space-sm);
}
.project h3 { margin-bottom: 0.75rem; }
.project__where {
  font-size: var(--text-small);
  color: var(--site-muted);
  margin-bottom: var(--space-md);
}
.project__body p { color: var(--site-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: var(--space-lg) 0 0; }
.tags li {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 135, 44, 0.12);
  color: #8A5615;
}

/* Full-bleed panorama — its own project row, so it carries the same top rule */
.pano {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--site-line);
}
.pano__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.pano__frame img { width: 100%; }
.pano__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: var(--text-small);
  color: var(--site-muted);
}
.pano__caption strong { font-family: var(--font-display); color: var(--site-primary); }

/* Drawing plate — a plan, not a photo, so it gets a paper treatment */
.plate {
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-md);
}
.plate img { border-radius: var(--radius-sm); }
.plate__stamp {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--site-line);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-muted);
}

/* --------------------------------------------------------------------------
   10. PROCESS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step {
  padding-top: var(--space-lg);
  border-top: 3px solid rgba(255, 255, 255, 0.2);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--site-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.step p { font-size: var(--text-small); color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   11. SECTORS
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-md);
  color: var(--site-primary);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   12. CTA & FOOTER
   -------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta .section-head { margin-inline: auto; text-align: center; margin-bottom: var(--space-xl); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
.cta__note { margin-top: var(--space-lg); font-size: var(--text-small); color: rgba(255, 255, 255, 0.6); }

.footer {
  background: #0E1729;
  color: rgba(255, 255, 255, 0.62);
  padding-block: var(--space-2xl) var(--space-xl);
  font-size: var(--text-small);
}
.footer__top {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 780px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer img { height: 38px; width: auto; margin-bottom: var(--space-md); }
.footer h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer a:hover { color: var(--site-accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   13. SCROLL ANIMATION
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .animate-on-scroll { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero__plan, .cta { display: none; }
  body { background: #fff; }
  .section--dark { background: #fff; color: #000; }
}
