/* ============================================================
   Euforria, Construction Management
   Modern, responsive stylesheet
   ============================================================ */

:root {
  --ink:        #11212f;   /* deep slate */
  --ink-2:      #1b3346;
  --bronze:     #c6792e;   /* warm accent */
  --bronze-2:   #b5681f;
  --sand:       #f5f1ea;   /* light neutral */
  --sand-2:     #ece5da;
  --paper:      #ffffff;
  --muted:      #5f6b76;
  --line:       rgba(17, 33, 47, .12);
  --ink-rgb:    17, 33, 47;

  --maxw: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(17,33,47,.06);
  --shadow-md: 0 14px 40px rgba(17,33,47,.12);
  --shadow-lg: 0 30px 70px rgba(17,33,47,.22);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--bronze-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 130px) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
.section-kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze-2); margin: 0 0 .8rem;
}
.section-kicker.light { color: var(--bronze); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

.lead { font-size: 1.12rem; color: #34424e; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: .9rem 1.7rem; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--bronze); color: #fff; box-shadow: 0 10px 24px rgba(198,121,46,.32); }
.btn-primary:hover { background: var(--bronze-2); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 40px; width: auto; }

.nav-menu {
  display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: var(--bronze-2); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .6rem 1.2rem; border-radius: 50px;
}
.nav-cta:hover { background: var(--bronze); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, rgba(17,33,47,.92) 0%, rgba(17,33,47,.72) 45%, rgba(27,51,70,.55) 100%),
    url("images/project2.webp") center/cover no-repeat;
  transform: scale(1.06);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 80% 10%, rgba(198,121,46,.22), transparent 55%);
}
.hero-inner { padding: clamp(96px, 16vh, 200px) 0 clamp(70px, 10vh, 120px); max-width: 820px; }
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #e7c69d; margin: 0 0 1.2rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 1.3rem;
}
.hero-title .accent { color: var(--bronze); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 36ch; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(40px, 7vw, 72px); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px);
  list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; color: #fff; line-height: 1; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ---------- Intro ---------- */
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.intro-figure { margin: 0; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Expertise ---------- */
.expertise { background: var(--sand); }
.expertise-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px);
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--bronze); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--bronze); font-weight: 600; }
.card h3 { font-size: 1.18rem; margin: .7rem 0 .6rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Showcase ---------- */
.showcase { background: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px);
}
.gallery-item {
  position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1 / 1; background: var(--sand-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: "View"; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: #fff;
  background: linear-gradient(0deg, rgba(17,33,47,.55), rgba(17,33,47,.1));
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.showcase-follow { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; font-size: 1.05rem; color: var(--muted); }
.showcase-follow a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { background: var(--sand); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.6rem; font-weight: 400; color: var(--bronze); line-height: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .section-title { color: #fff; }
.contact .lead { color: rgba(255,255,255,.82); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-area { font-size: .95rem; color: rgba(255,255,255,.62); margin: 1.1rem 0 0; }
.contact-copy .btn { margin-top: 1.4rem; }
.contact-details { font-style: normal; display: grid; gap: 1.3rem; }
.contact-row { display: grid; gap: .25rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }
.contact-details a { color: rgba(255,255,255,.9); font-size: 1.05rem; }
.contact-details a:hover { color: var(--bronze); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1722; color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) 0; }
.footer-inner { display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.footer-logo { height: 42px; width: auto; opacity: .96; }
.footer-tag { font-family: var(--font-display); font-size: 1.05rem; color: #fff; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { color: rgba(255,255,255,.78); font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: var(--bronze); }
.footer-legal { font-size: .85rem; color: rgba(255,255,255,.5); margin: .4rem 0 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(8, 16, 24, .92); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--bronze); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid, .contact-inner { grid-template-columns: 1fr; }
  .intro-figure { order: -1; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 6%; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 1rem .2rem; }
  .nav-cta { display: inline-block; margin: .8rem 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; }
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

@media (max-width: 420px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .05ms !important; }
}
