/* ============================================================
   EFG Construction — built from TEO's HOME_PAGE_1 design
   Rounded geometric display (Now) + Jost body, grid-line overlays
   ============================================================ */

@font-face { font-family: "Now"; src: url("../assets/fonts/Now-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Now"; src: url("../assets/fonts/Now-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Now"; src: url("../assets/fonts/Now-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Now"; src: url("../assets/fonts/Now-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../assets/fonts/Jost-400.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --white: #ffffff;
  --ink: #1c1c1c;
  --dark: #1b1b1b;
  --gray: #7a7a7a;
  --line: #e7e5e2;
  --line-dark: rgba(255, 255, 255, 0.09);
  --off: #f2f0ee;

  --display: "Now", "Jost", "Century Gothic", sans-serif;
  --body: "Jost", "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 3.5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; }

/* dotted eyebrow labels */
.eyebrow-dot {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-left: 1rem;
}
.eyebrow-dot::before {
  content: "·";
  position: absolute;
  left: 0;
  font-size: 1.4rem;
  line-height: 0.8;
}
.eyebrow-center { padding-left: 0; text-align: center; }
.eyebrow-center::before { position: static; margin-right: 0.6rem; }

/* vertical grid lines overlay */
.gridlines { position: absolute; inset: 0; pointer-events: none; display: flex; }
.gridlines i { flex: 1; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.gridlines i:last-child { border-right: 0; }
.gridlines--dark i { border-color: var(--line-dark); }

/* circular outlined button */
.circle-btn {
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.circle-btn:hover { background: #fff; color: var(--ink); transform: scale(1.04); }

.sq-btn {
  display: inline-block;
  background: var(--off);
  padding: 1rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.3s;
}
.sq-btn:hover { background: var(--line); }

.side-label {
  position: absolute;
  left: var(--pad);
  top: clamp(4rem, 10vh, 7rem);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 8rem);
  padding: 1.6rem var(--pad);
  background: var(--white);
}
.header__logo img { height: 3.6rem; width: auto; }
.header__nav { display: flex; gap: clamp(2rem, 5vw, 5.5rem); margin-left: clamp(1rem, 8vw, 10rem); }
.header__nav ul { display: flex; flex-direction: column; gap: 0.35rem; }
.header__nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.25s;
}
.header__nav a:hover { opacity: 0.55; }
.header__nav a.is-active { color: var(--gray); }
.header__contact { margin-left: auto; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.header__contact a:hover { opacity: 0.6; }
.header__burger { display: none; background: none; border: 0; cursor: pointer; width: 2rem; height: 1.3rem; position: relative; }
.header__burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.header__burger span:first-child { top: 0.2rem; }
.header__burger span:last-child { top: 0.9rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: min(86vh, 60rem);
  margin: 0 var(--pad);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 26, 0.25); }
.hero__label {
  position: absolute;
  top: clamp(1.5rem, 4vh, 3rem);
  left: clamp(1.5rem, 3vw, 3.5rem);
  color: #fff;
  z-index: 2;
  line-height: 1.7;
}
.hero .circle-btn {
  position: absolute;
  left: clamp(2rem, 22vw, 24rem);
  bottom: clamp(3rem, 12vh, 8rem);
  z-index: 2;
}

/* ============================================================
   Vision
   ============================================================ */
.vision {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) var(--pad) clamp(6rem, 14vh, 11rem);
  text-align: center;
  overflow: hidden;
}
.vision__plan {
  position: absolute;
  inset: 0;
  background: url("../assets/plan-bg.jpg") right top / 60% auto no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.vision__title {
  font-size: clamp(1.9rem, 4.6vw, 4.1rem);
  font-weight: 500;
  text-transform: uppercase;
  max-width: 26ch;
  margin: 1.8rem auto 2rem;
  position: relative;
}
.vision__sub {
  max-width: 62ch;
  margin: 0 auto;
  color: #4c4c4c;
  position: relative;
}

/* ============================================================
   Who we are
   ============================================================ */
.who {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(4rem, 10vh, 8rem) var(--pad);
  padding-left: clamp(4rem, 9vw, 10rem);
  max-width: 96rem;
  margin: 0 auto;
}
.who__text h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 400; margin-bottom: 2rem; }
.who__text p { color: #555; max-width: 52ch; font-size: 0.98rem; line-height: 1.75; }
.who__media { position: relative; padding-top: clamp(2rem, 6vh, 4rem); }
.who__img-main { width: 78%; height: auto; }
.who__img-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Recent works (dark)
   ============================================================ */
.works {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) clamp(5rem, 12vh, 9rem);
  overflow: hidden;
}
.works__title {
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.works__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vh, 3rem) 1.5rem;
}
.work img { width: 100%; height: auto; }
.work figcaption { margin-top: 1rem; }
.work figcaption span { font-family: var(--display); font-size: 1.15rem; display: block; }
.work figcaption em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.work--right-lg  { grid-column: 6 / 13; margin-top: clamp(4rem, 14vh, 10rem); }
.work--left-sm   { grid-column: 1 / 4;  margin-top: clamp(-6rem, -4vh, -2rem); }
.work--left-lg   { grid-column: 1 / 7; }
.work--right-sm  { grid-column: 9 / 13; margin-top: clamp(-4rem, -2vh, -1rem); }
.work--left-sm2  { grid-column: 1 / 4;  margin-top: clamp(2rem, 6vh, 4rem); }
.work--right-lg2 { grid-column: 6 / 12; margin-top: clamp(-3rem, -1vh, 0rem); }
.works__cta { display: flex; justify-content: flex-end; padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 6vw, 6rem) 0; position: relative; }

/* ============================================================
   Team
   ============================================================ */
.team {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  padding-left: clamp(4rem, 9vw, 10rem);
  max-width: 96rem;
  margin: 0 auto;
}
.team__intro h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 400; margin-bottom: 2.2rem; }
.team__cards { display: flex; flex-direction: column; gap: 3rem; }
.member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.member__photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #ece9e5, #d9d5cf);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member__photo span { font-family: var(--display); font-size: 2.4rem; color: #b4aea6; letter-spacing: 0.05em; }
.member__info { position: relative; padding: 1.8rem; }
.member__info h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.member__info p { color: var(--gray); font-size: 0.9rem; margin-top: 0.5rem; }
.member__social { display: flex; gap: 0.9rem; margin-top: 1.1rem; }
.member__social a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.75; }
.member__social a:hover { opacity: 1; }
.member__arrow {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.member__arrow:hover { background: var(--ink); color: #fff; }

/* ============================================================
   Featured project
   ============================================================ */
.featured {
  position: relative;
  height: min(88vh, 56rem);
  overflow: hidden;
}
.featured__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.featured__bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28); }
.featured .gridlines i { border-color: rgba(255, 255, 255, 0.45); }
.featured__label { position: absolute; top: clamp(2rem, 6vh, 4rem); left: clamp(4rem, 20vw, 22rem); color: #fff; z-index: 2; }
.featured__link {
  position: absolute;
  right: clamp(2rem, 18vw, 20rem);
  bottom: clamp(3rem, 14vh, 9rem);
  z-index: 2;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.featured__circle {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.featured__link:hover .featured__circle { background: #fff; color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 8rem);
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad) 2rem;
  max-width: 96rem;
  margin: 0 auto;
}
.footer__logo { height: 5.2rem; width: auto; margin-bottom: 1.8rem; }
.footer__left h2, .footer__right h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.footer__line { display: block; margin-bottom: 1.1rem; font-size: 1.05rem; }
a.footer__line:hover { opacity: 0.6; }
.footer__form { display: flex; border-bottom: 0; gap: 1rem; max-width: 32rem; }
.footer__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #cfcbc5;
  background: var(--off);
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: 0;
}
.footer__form input:focus { border-color: var(--ink); }
.footer__form button {
  background: var(--off);
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0 1.8rem;
  cursor: pointer;
  transition: background 0.3s;
}
.footer__form button:hover { background: var(--line); }
.footer__links { display: flex; gap: clamp(2.5rem, 6vw, 5rem); margin-top: 2.4rem; }
.footer__links li { margin-bottom: 0.7rem; font-size: 1.02rem; }
.footer__links a:hover { opacity: 0.6; }
.footer__legal {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================================
   Reveal + responsive
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .header__nav, .header__contact { display: none; }
  .header.nav-open .header__nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  .header.nav-open .header__nav ul { align-items: center; text-align: center; gap: 1rem; }
  .header.nav-open .header__nav a { font-size: 1.2rem; }
  .header__burger { display: block; margin-left: auto; position: relative; z-index: 50; }
  .who, .team { grid-template-columns: 1fr; padding-left: var(--pad); }
  .side-label { display: none; }
  .work--right-lg, .work--left-sm, .work--left-lg, .work--right-sm, .work--left-sm2, .work--right-lg2 {
    grid-column: 1 / 13;
    margin-top: 0;
  }
  .member { grid-template-columns: 1fr; }
  .member__photo { aspect-ratio: 16 / 10; }
  .footer { grid-template-columns: 1fr; }
  .circle-btn { width: 8.5rem; height: 8.5rem; font-size: 0.85rem; }
  .hero .circle-btn { left: var(--pad); }
}
