:root {
  --brand: #8e1b2b;
  --brand-dark: #6b1220;
  --brand-soft: #f6e8ea;
  --ink: #1b1d21;
  --ink-2: #4a4f57;
  --muted: #7a8089;
  --line: #e4e1dc;
  --sand: #f5f2ed;
  --white: #ffffff;
  --dark: #15171a;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(20, 20, 30, .35);
  --header-h: 78px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .8em;
}
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: #e7a2ac; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.link-arrow { font-weight: 700; color: var(--brand); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,0); transition: background .3s, box-shadow .3s;
  color: var(--white);
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 6px 24px -14px rgba(0,0,0,.3); color: var(--ink); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: .04em; }
.logo-text small { font-size: .62rem; letter-spacing: .32em; opacity: .75; margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 16px; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav > ul > li > a:hover { color: var(--brand); }
.site-header:not(.scrolled) .main-nav > ul > li > a:hover { color: #f3c1c8; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; opacity: .7; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px;
  background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.sub a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 700px; max-height: 960px; overflow: hidden;
  background: #111214;
  color: var(--white);
}
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,15,18,.88) 0%, rgba(14,15,18,.6) 45%, rgba(14,15,18,.15) 100%),
              linear-gradient(to top, rgba(14,15,18,.7), transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 110px; }
.hero-content .eyebrow { color: #f0a7b1; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; max-width: 12ch; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 48ch; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: .1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: .3s; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.scroll-hint { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.75); }
.mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.6); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--white); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }
.slider-nav { display: flex; align-items: center; gap: 10px; }
.slide-label { font-weight: 700; font-size: .9rem; padding: 10px 18px; background: var(--brand); border-radius: 999px; margin-right: 6px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: .2s; }
.arrow:hover { background: var(--white); color: var(--ink); }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); z-index: 3; }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--brand); }

/* Services */
.services { background: var(--sand); }
.services .section-head { text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-media { aspect-ratio: 4/3; overflow: hidden; background: #2a2c31; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-body .num { font-family: var(--font-head); font-weight: 800; color: var(--line); font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.service-body h3 { font-size: 1.35rem; font-weight: 500; }
.service-body h3 b { font-weight: 800; display: block; }
.service-body p { color: var(--ink-2); font-size: .95rem; flex: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 0 40px 40px; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; }
.about-badge {
  position: absolute; left: 0; bottom: 0; padding: 26px 30px; border-radius: 20px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%); color: var(--white); box-shadow: var(--shadow);
}
.about-badge .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: .9; }
.about-badge .small { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat span { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--brand); line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 600; font-size: .9rem; }

.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.vision-card { padding: 36px; border-radius: var(--radius); background: var(--sand); border-left: 4px solid var(--brand); }
.vision-card h3 { font-size: 1.4rem; }
.vision-card p { color: var(--ink-2); margin: 0; }

/* Facilities */
.facilities { background: var(--dark); color: var(--white); }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.facility { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, background .3s; }
.facility:hover { border-color: var(--brand); background: rgba(142,27,43,.12); }
.facility-media { aspect-ratio: 16/10; overflow: hidden; }
.facility-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .6s ease, filter .4s; }
.facility:hover .facility-media img { transform: scale(1.06); filter: none; }
.facility-body { padding: 26px 28px 30px; }
.facility h3 { font-size: 1.35rem; }
.facility p { color: rgba(255,255,255,.65); margin: 0; font-size: .95rem; }

/* Projects */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { font: inherit; font-weight: 700; font-size: .9rem; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: .2s; color: var(--ink-2); }
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; animation: fadeIn .45s ease both; }
.project.is-hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.project { background: #2a2c31; }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.06); }
.project-info { position: absolute; inset: auto 0 0; padding: 70px 24px 22px; background: linear-gradient(to top, rgba(0,0,0,.82), transparent); color: var(--white); }
.project-info::before { content: ""; display: block; width: 32px; height: 3px; background: var(--brand); margin-bottom: 12px; transition: width .35s; }
.project:hover .project-info::before { width: 64px; }
.project-info h3 { font-size: 1.2rem; margin: 0; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* Contact */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact-info > p { color: var(--ink-2); }
.contact-list { margin-top: 32px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--white); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }
.contact-list small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: var(--brand); }

.contact-form { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 500; color: var(--ink); padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf9; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,27,43,.15); }
.contact-form .invalid { border-color: #c0392b !important; }
.contact-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.contact-form label.check input { margin-top: 4px; accent-color: var(--brand); }
.contact-form label.check.invalid-check { color: #c0392b; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1e7d4f; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.logo.light { color: var(--white); }
.footer-about { margin-top: 18px; max-width: 34ch; font-size: .95rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 24px 0; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--white); color: var(--ink);
    padding: 20px 16px; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 16px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header:not(.scrolled) .main-nav > ul > li > a:hover { color: var(--brand); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 8px 12px; min-width: 0; }
  body.nav-open .site-header { background: var(--white); color: var(--ink); }
  .about-grid, .contact-grid, .vision { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; padding: 0 0 30px 20px; }
  .about-media img { aspect-ratio: 4/3; }
  .facility-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-slide::after { background: linear-gradient(to top, rgba(14,15,18,.9) 10%, rgba(14,15,18,.55) 100%); }
}
@media (max-width: 600px) {
  .service-grid, .project-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .slide-label, .scroll-hint { display: none; }
  .hero-controls { justify-content: flex-end; }
  .stat { padding: 24px 12px; }
}
