:root {
  --teal: #2f7381;
  --teal-d: #245b67;
  --orange: #e9953a;
  --ink: #111;
  --muted: #444;
  --bg: #fff;
  --alt: #f9f9f9;
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h2 em, h1 em { color: var(--orange); font-style: normal; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.teal { color: var(--teal); }
.light { color: #fff; }
.skip { position: absolute; left: -999px; background: var(--teal); color: #fff; padding: .5em 1em; z-index: 200; }
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(0,0,0,.1); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1; transition: color .3s; }
.logo img { height: 46px; width: auto; display: block; }
.logo .logo-color { display: none; }
.header.scrolled .logo-white, .header.menu-open .logo-white { display: none; }
.header.scrolled .logo-color, .header.menu-open .logo-color { display: block; }
.logo small { display: block; font-weight: 600; font-size: .85rem; margin-top: 2px; }
.header.scrolled .logo { color: var(--teal); }
.menu { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; font-size: .92rem; color: #fff; transition: color .2s; }
.header.scrolled .menu a { color: var(--ink); }
.menu a:hover, .menu a.active { color: var(--orange) !important; }
.menu .btn { color: #fff !important; }
.tools { display: flex; gap: .5rem; align-items: center; }
.chip { border: 1.5px solid currentColor; background: transparent; color: #fff; padding: .3em .85em; border-radius: 999px; font: 600 .8rem var(--font); cursor: pointer; transition: all .2s; }
.header.scrolled .chip { color: var(--teal); }
.chip:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
.header.scrolled .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; padding: .85em 2em; border-radius: 10px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--teal-d); }
.btn-sm { padding: .5em 1.2em; font-size: .88rem; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #d4832c; }
.btn-teal { min-width: min(100%, 360px); text-align: center; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.btn-outline:hover { background: #fff; color: var(--teal); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,40,35,.55), rgba(10,40,35,.75)), url('../assets/img/hero-forest2.png') center/cover; transform: scale(1.05); animation: slow 18s ease-out forwards; }
@keyframes slow { to { transform: scale(1); } }
.hero-inner { position: relative; padding: 110px 0 80px; max-width: 900px; margin-left: max(4%, calc((100% - 1180px) / 2)); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); font-weight: 700; margin-bottom: .4em; }
.hero h1 span { display: block; }
.eyebrow { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; color: var(--orange); margin-bottom: 1rem; }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 62ch; letter-spacing: .02em; }
.lead.dark { color: var(--ink); max-width: none; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; color: #fff; text-decoration: none; font-size: 1.6rem; animation: bob 1.8s infinite; }
@keyframes bob { 50% { translate: -50% 8px; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--alt); }
.bg-photo { position: relative; background: linear-gradient(rgba(8,30,28,.35), rgba(8,30,28,.55)), var(--bg) center/cover; background-attachment: scroll; }
@media (min-width: 900px) { .bg-photo { background-attachment: fixed; } }
.sub { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin-top: 2.5rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-text p { text-align: justify; }
.about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facts li { border-left: 4px solid var(--orange); padding-left: .9rem; }
.facts strong { display: block; color: var(--teal); font-size: 1.3rem; line-height: 1.2; }
.facts span { font-size: .82rem; color: var(--muted); }

/* Panels */
.panel { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 2rem clamp(1.2rem, 4vw, 3rem); margin-top: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.panel h3 { text-align: center; font-size: 1.5rem; }
.panel p { text-align: justify; margin: 0; }
.panel ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .7rem; }
#direction h2 { text-shadow: 0 2px 10px rgba(0,0,0,.4); margin-bottom: 0; }

/* Product */
.table-wrap { display: block; margin-top: 1.5rem; border: 1px solid #ddd; border-radius: 10px; overflow: auto; background: #fff; }
.table-wrap img { min-width: 720px; width: 100%; }
.wood-banner { margin-top: 3rem; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); color: #fff; background: linear-gradient(rgba(10,50,40,.62), rgba(10,50,40,.7)), var(--bg) center/cover; }
.wood-banner h3 { text-align: center; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: .06em; margin-bottom: 1.8rem; }
.wood-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.wood-grid li { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .25s; }
.wood-grid li:hover { transform: translateY(-4px); }
.wood-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.wood-grid span { display: block; padding: .8rem 1rem; font-weight: 600; font-size: .95rem; line-height: 1.35; border-top: 3px solid var(--orange); }
.credits { margin: 1.5rem 0 0; font-size: .72rem; opacity: .8; text-align: center; line-height: 1.5; }
@media (max-width: 900px) { .wood-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .wood-grid { grid-template-columns: 1fr; } }
.slider { position: relative; margin: 1.5rem auto 0; max-width: 760px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.2); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track { cursor: grab; touch-action: pan-x pan-y; }
.track.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; background: #f2f2f2; aspect-ratio: 3/2; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.s-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s; }
.s-nav:hover { background: var(--orange); }
.s-nav.prev { left: 12px; } .s-nav.next { right: 12px; }
.dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; cursor: pointer; transition: background .2s, transform .2s; }
.dots button.on { background: var(--teal); transform: scale(1.2); }

/* Certifications */
.certs { padding-block: clamp(4rem, 9vw, 7rem); }
.cert-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cert-list li { background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); padding: .9rem 2.2rem; border-radius: 12px; font-size: 1.4rem; font-weight: 700; }
.certs .lead { margin-inline: auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.g { border: 0; padding: 0; background: #ddd; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 6/5; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g:hover img { transform: scale(1.07); }

/* Team */
.team .lead { margin-inline: auto; }
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3rem 1.5rem; margin: 3rem auto 0; max-width: 960px; }
.people figure { grid-column: span 3; margin: 0; text-align: center; color: #fff; }
.people figure:nth-child(1), .people figure:nth-child(2) { grid-column: span 3; }
@media (max-width: 700px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .people figure, .people figure:nth-child(1), .people figure:nth-child(2) { grid-column: span 1; }
  .people figure:nth-child(5) { grid-column: 1 / -1; }
}
.people img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 1rem; border: 3px solid rgba(255,255,255,.35); transition: transform .3s, border-color .3s; }
.people figure:hover img { transform: scale(1.05); border-color: var(--orange); }
.people b { display: block; font-size: .95rem; line-height: 1.35; }
.people span { font-size: .88rem; opacity: .9; }

/* Profile */
.profile { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
/* .profile img { max-width: 360px; margin-inline: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); } */
.profile img { max-width: 360px; margin-inline: auto; }
.logo-big { width: min(100%, 300px); height: auto; margin-bottom: 1.5rem; }
.logo-big text { font: 600 22px var(--font); fill: var(--teal); }
.logo-big use { color: var(--teal); }
.profile .lead { font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin-bottom: 1.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.card h3 { color: var(--teal); font-size: 1.05rem; margin-bottom: .3rem; }
.card p { margin-bottom: 1.4rem; }
.card p:last-child { margin: 0; }
.card a { text-decoration: underline; text-underline-offset: 3px; }
.card a:hover { color: var(--teal); }
.footer { text-align: center; font-size: .82rem; font-weight: 500; padding: 1.5rem 1rem; color: var(--muted); border-top: 1px solid #eee; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }

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

/* Responsive */
@media (max-width: 900px) {
  .about, .profile, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { order: -1; max-width: 420px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .burger { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: .5rem 4%; box-shadow: 0 10px 20px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a { color: var(--ink); padding: .85rem 0; border-bottom: 1px solid #eee; }
  .menu .btn { margin: .8rem 0; text-align: center; border: 0; }
  .header.menu-open { background: rgba(255,255,255,.96); }
  .header.menu-open .logo { color: var(--teal); }
  .header.menu-open .burger span { background: var(--ink); }
  .header.menu-open .chip { color: var(--teal); }
  .hero-inner { margin-inline: auto; width: 92%; }
  .facts { grid-template-columns: 1fr; }
  .lightbox { padding: 3.5rem 1rem; }
}
@media (max-width: 480px) {
  .people img { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
