/* ============================================================
   ELEMENTAL COLLECTIVE — Main Stylesheet
   Fonts: DM Serif Display (headings) · Manrope (body)
   ============================================================ */

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

:root {
  --black:       #0a0a0a;
  --white:       #f5f4f0;
  --sand:        #c9a97a;
  --sand-light:  #d4b896;
  --radius-pill: 999px;
  --h-section:   clamp(2.4rem, 4vw, 3.4rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}
@font-face {
  font-family: "Amsterdam";
  src: url("../fonts/Amsterdam.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.contact-icon {
  display: none;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; font-style: italic;
  letter-spacing: -0.04em; color: var(--black); text-decoration: none;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--black); text-decoration: none; transition: opacity .2s;
}
.nav-links a:hover { opacity: .45; }
.nav-cta {
  padding: .5rem 1.4rem;
  border: 1px solid var(--black); border-radius: var(--radius-pill);
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--black) !important; color: #fff !important; opacity: 1 !important; }


/* ── HERO ── */
#hero { position: relative; }
.hero-driver { height: 400vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; width: 100%; height: 100vh;
  overflow: hidden; background: #111;
}
.hero-image {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/backgrounds/ArchitectsOffice_Scene\ 1.avif');
  background-size: cover; background-position: center top;
  transform-origin: center; will-change: transform;
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
}
#heroSvg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1;
}
.hero-eyebrow {
  position: absolute; z-index: 10;
  top: calc(4rem + 23vh); left: 51%; transform: translateX(-50%);
  font-size: 1rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); white-space: nowrap; font-family: "Amsterdam", sans-serif; text-transform: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}
.hero-hint {
  position: absolute; z-index: 10;
  bottom: 2.2rem; right: 3rem;
  font-size: 0.6rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.4); writing-mode: vertical-rl;
  display: flex; align-items: center; gap: .5rem;
}
.hero-hint::after {
  content: ''; display: block; width: 1px; height: 34px;
  background: rgba(255,255,255,.35); margin-top: .4rem;
  animation: ln 1.7s ease-in-out infinite;
}
@keyframes ln {
  0%,100% { opacity: .2; transform: scaleY(.3); }
  50%      { opacity: 1;  transform: scaleY(1); }
}
.hero-social {
  position: absolute; z-index: 10;
  bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .8rem; align-items: center;
  font-size: 0.72rem; color: rgba(255,255,255,.5);
}
.hero-social a {
  color: #fff; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--sand);
}
.hero-caption {
  position: absolute; z-index: 10; bottom: 4rem; left: 3rem;
  opacity: 0; transform: translateY(16px); pointer-events: none;
}
.hero-caption h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 400; font-style: italic;
  color: #fff; letter-spacing: -.02em; line-height: 1.2;
}
.hero-caption p {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-top: .5rem;
}

/* ── GALLERY ── */
#gallery { background: #0a0a0a; padding: 5rem 0 0; }
.gallery-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 3rem 3rem; border-bottom: 1px solid #1a1a1a; margin-bottom: 3px;
}
.gallery-hdr h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 400; font-style: italic;
  color: #fff; letter-spacing: -.02em; line-height: 1.2;
}
.gallery-hdr p {
  font-family: 'Manrope', sans-serif;
  font-size: .75rem; color: #555; letter-spacing: .08em; text-transform: uppercase;
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 3px; padding: 0 3px 3px;
}
.gallery-cell { position: relative; overflow: hidden; cursor: pointer; background: #111; }
.gallery-cell.g-sq  { aspect-ratio: 1/1; }
.gallery-cell.g-wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-cell .gph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;              /* remove inner border space */
  background: transparent; /* remove dark frame */
  transition: transform .45s ease;
}

.gallery-cell .gph img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-cell:hover .gph { transform: scale(1.04); }
.gover {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(0,0,0,.6) 0%,transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: .8rem 1rem;
}
.gallery-cell:hover .gover { opacity: 1; }
.gover span {
  font-family: 'Manrope', sans-serif;
  font-size: .62rem; letter-spacing: .1em;
  color: rgba(255,255,255,.9); text-transform: uppercase;
}


/* ── SERVICES ── */

/* ── CONTACT ── */
#contact { background: #0c0c0c; color: var(--white); padding: 6rem 3rem 5rem; }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start;
}
.contact-left h2 {
  font-family: 'DM Serif Display',serif; font-size: var(--h-section);
  font-weight: 400; font-style: italic; color: var(--sand);
  line-height: 1.2; margin-bottom: 2rem; letter-spacing: -.02em;
}
.contact-left p { font-family: 'Manrope',sans-serif; font-size: .85rem; line-height: 2; color: #777; max-width: 30ch; }
.contact-form  { display: flex; flex-direction: column; gap: 2rem; }
.form-section-label { font-family: 'Manrope',sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #555; margin-bottom: .7rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-family: 'Manrope',sans-serif; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #444; }
.form-group label span { color: var(--sand); font-size: .62rem; margin-left: .25rem; }
.form-group input,
.form-group select {
  background: transparent; border: none; border-bottom: 1px solid #222;
  color: var(--sand-light); font-family: 'Manrope',sans-serif; font-size: .85rem;
  padding: .65rem 0; outline: none; transition: border-color .2s; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-bottom-color: var(--sand); }
.form-group select option { background: #111; }
.phone-row { display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: end; }
.pill-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-toggle {
  padding: .5rem 1.25rem; border: 1px solid #252525; border-radius: var(--radius-pill);
  font-size: .76rem; color: #666; background: transparent; cursor: pointer;
  transition: all .2s; font-family: 'Manrope',sans-serif;
}
.pill-toggle:hover, .pill-toggle.active { border-color: var(--sand); color: var(--sand); }
.submit-btn {
  align-self: flex-end; padding: .75rem 2.4rem;
  border: 1px solid var(--sand); border-radius: var(--radius-pill);
  background: transparent; color: var(--sand);
  font-family: 'Manrope',sans-serif; font-size: .83rem; font-weight: 500;
  letter-spacing: .05em; cursor: pointer; transition: all .25s;
}
.submit-btn:hover { background: var(--sand); color: var(--black); }

/* ── FOOTER ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3.5rem 3rem;
  background: var(--white);
  border-top: 1px solid #e0ddd8;
}

.footer-right {
  display: flex;
  gap: 5rem;
  margin-left: auto;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  font-style: italic;
  color: var(--black);
  letter-spacing: -.03em;
  display: block;
  margin-bottom: 1.5rem;
}

.footer-addr {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  line-height: 2.1;
  color: #666;
}

.footer-col h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin: 0 0 1rem;
}

.footer-col a {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  color: var(--black);
  display: block;
  line-height: 2.1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a:hover {
  opacity: .5;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (max 860px)
══════════════════════════════════════════ */
@media (max-width: 860px) {

  /* NAV */
  nav { padding: 1rem 1.5rem; }
  .logo { font-size: 1.4rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.7rem; }

  /* HERO */
  .hero-eyebrow { font-size: 0.55rem; letter-spacing: .16em; }
  .hero-caption { left: 1.5rem; bottom: 3rem; }
  .hero-caption h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .hero-hint { right: 1.5rem; }

  /* GALLERY */
  .gallery-hdr { padding: 0 1.5rem 2rem; }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-cell.g-wide { grid-column: auto; aspect-ratio: 1/1; }

  /* CONTACT */
  #contact { padding: 4rem 1.5rem 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 120px 1fr; }

  /* FOOTER */
  .site-footer {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }
  .footer-right { gap: 2.5rem; margin-left: 0; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (max 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  

  /* NAV — hide links, show only logo + contact */

  
@media (max-width: 480px) {
  .contact-text {
    display: none;
  }

  .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .phone-icon {
    width: 22px;
    height: 22px;
    
  }
}

  nav { padding: .9rem 1.2rem; }
  .logo { font-size: 1.2rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links a { font-size: 0.68rem; }

  /* HERO — reduce scroll driver on small screens */
  .hero-driver { height: 300vh; }
  .hero-eyebrow {
    font-size: 0.5rem;
    letter-spacing: .12em;
    top: calc(3.5rem + 33vh);
    white-space: normal;
    text-align: center;
    width: 90%;
  }
  .hero-caption { left: 1.2rem; bottom: 2.5rem; }
  .hero-caption h2 { font-size: 1.2rem; }
  .hero-caption p  { font-size: .6rem; }
  .hero-hint  { right: 1rem; bottom: 1.8rem; }
  .hero-social { bottom: 1.8rem; gap: .5rem; font-size: .65rem; }

  /* GALLERY — 2 columns on mobile */
  #gallery { padding: 3rem 0 0; }
  .gallery-hdr {
    flex-direction: column;
    gap: .5rem;
    padding: 0 1.2rem 1.8rem;
  }
  .gallery-hdr h2 { font-size: 1.6rem; }
  .gallery-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 2px;
    padding: 0 2px 2px;
  }
  .gallery-cell.g-wide { grid-column: auto; aspect-ratio: 1/1; }

  /* CONTACT */
  #contact { padding: 3.5rem 1.2rem 3rem; }
  .contact-inner { gap: 2rem; }
  .contact-left h2 { font-size: 1.8rem; }
  .contact-left p  { font-size: .8rem; max-width: 100%; }
  .form-section-label { font-size: .65rem; }
  .form-group label { font-size: .65rem; }
  .form-group input,
  .form-group select { font-size: .82rem; }
  .phone-row { grid-template-columns: 100px 1fr; gap: .8rem; }
  .pill-toggle { font-size: .7rem; padding: .45rem 1rem; }
  .submit-btn {
    align-self: stretch;
    text-align: center;
    padding: .85rem 1rem;
  }
  .success-wrap{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:#e9f9ef;
  color:#1f7a3a;
  font-size:.9rem;
  animation: pop .35s ease;
}

.check-mark{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#bff0cc;
  font-weight:700;
}

.form-status{
  margin:0;
  color:var(--sand);
  font-family:'Manrope',sans-serif;
  font-size:.78rem;
  min-height:20px;
}

.pill-toggle.active{
  background: #111;
  color: #fff;
}

@keyframes pop{
  from{transform:scale(.92);opacity:0}
  to{transform:scale(1);opacity:1}
}

  /* FOOTER */
  .site-footer { padding: 2rem 1.2rem; gap: 1.8rem; }
  .footer-logo { font-size: 1.5rem; margin-bottom: 1rem; }
  .footer-addr { font-size: .74rem; }
  .footer-right {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  .footer-col h4 { font-size: 1rem; margin-bottom: .6rem; }
  .footer-col a  { font-size: .74rem; }
}
