/* Base theme: white minimalist with blue-gray accents and orange CTA */
:root{
  --bg: #ffffff;
  --text: #111827; /* gray-900 */
  --muted: #6B7280; /* gray-500 */
  --line: #E5E7EB; /* gray-200 */
  --panel: #F8FAFC; /* slate-50 */
  --accent: #0EA5E9; /* sky-500 */
  --accent-dark: #0369A1; /* sky-800 */
  --cta: #F97316; /* orange-500 */
  --cta-dark: #EA580C; /* orange-600 */
  --shadow: 0 10px 30px rgba(0,0,0,.08), 0 6px 12px rgba(0,0,0,.05);
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0; font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg);
}
img{ max-width:100%; display:block; }
.skip-link{ position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ position:fixed; left:16px; top:16px; width:auto; height:auto; padding:10px 14px; background:#111; color:#fff; border-radius:8px; z-index:10000; }

.container{ width: min(1120px, 92%); margin: 0 auto; }
.center{ text-align:center; }

/* Header */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:1000; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header.scrolled{ background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.06); border-bottom: 1px solid var(--line); }

.nav-container{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.logo{ display:flex; align-items:center; gap:10px; color: var(--text); text-decoration:none; font-weight:700; letter-spacing:.3px; }
.logo.small span{ font-size:.95rem; }

.main-nav ul{ display:flex; list-style:none; gap: 22px; padding:0; margin:0; align-items:center; }
.main-nav a{ color: var(--text); text-decoration:none; font-weight:500; padding: 8px 10px; border-radius:10px; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.main-nav a:hover{ background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-toggle{ display:none; background:transparent; border:1px solid var(--line); padding:8px 10px; border-radius:8px; font-size:1rem; }

/* Hero */
.hero{ position: relative; min-height: 88vh; display:flex; align-items:center; background: #0b1220; color:#fff; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0; background-image: var(--hero-bg, url('https://source.unsplash.com/1600x900/?museum,exhibition'));
  background-size: cover; background-position: center; transform: translateY(var(--hero-translate, 0)) scale(var(--hero-scale, 1.02));
  will-change: transform; transition: transform .8s ease;
}
.hero .hero-overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.35)); }
.hero-inner{ position:relative; padding: 120px 0 80px; text-align:center; }
.hero h1{ font-size: clamp(2.0rem, 3.2vw + 1rem, 3.2rem); line-height:1.1; margin:0 0 12px; }
.hero .subtitle{ font-size: clamp(1.05rem, .6vw + .8rem, 1.25rem); color: #E5E7EB; margin:0 auto 22px; max-width: 760px; }
.hero .actions{ display:flex; gap:14px; }

/* Sections */
.section{ padding: 90px 0; }
.section.alt{ background: var(--panel); }
.section-head{ text-align:center; max-width: 780px; margin: 0 auto 36px; }
.section h2{ font-size: clamp(1.6rem, 1.2vw + 1rem, 2.2rem); margin:0 0 12px; letter-spacing:.2px; }
.section-head::after{ content:""; display:block; width:64px; height:3px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 999px; margin: 14px auto 0; opacity:.8; }
.section p{ color: var(--muted); margin:0; }

/* Features */
.features{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; justify-items:center; align-items:stretch; }
.feature{ background:#fff; padding:24px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; text-align:center; max-width: 360px; width:100%; }
.feature:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.feature .icon{ width:48px; height:48px; display:grid; place-items:center; margin-bottom:10px; }
.feature h3{ margin:6px 0 6px; font-size:1.05rem; }
.feature p{ margin:0; }

/* Tech */
.tech-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; margin-top: 14px; justify-items:center; align-items:stretch; }
.tech-card{ background:#fff; padding:24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align:center; max-width: 360px; width:100%; }

.micro-anim{ display:flex; justify-content:center; margin-top: 26px; }
.humidity-widget{ position:relative; background:#fff; border:1px solid var(--line); border-radius:16px; padding: 24px 28px; box-shadow: var(--shadow); text-align:center; min-width: 260px; }
.humidity-value{ font-size: 2.2rem; font-weight:700; color: var(--accent-dark); }
.humidity-label{ color: var(--muted); font-size:.95rem; }
.drops{ position:absolute; inset:auto 12px 10px auto; display:flex; gap:6px; }
.drops span{ width:9px; height:14px; background: var(--accent); border-radius: 6px 6px 10px 10px; opacity:.85; animation: drop 2.4s infinite ease-in; }
.drops span:nth-child(2){ animation-delay:.5s; opacity:.7; }
.drops span:nth-child(3){ animation-delay:1.1s; opacity:.55; }
@keyframes drop{ 0%{ transform: translateY(-6px) scale(1); } 60%{ transform: translateY(4px) scale(.96); } 100%{ transform: translateY(-6px) scale(1); } }

/* Article */
.article{ background:#fff; padding:28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align:center; }
.article h3{ margin: 18px 0 8px; }
.article p + h3{ margin-top: 22px; }

/* References */
.ref-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; justify-items:center; }
.ref-card{ background:#fff; padding:24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align:center; max-width: 360px; width:100%; display:flex; flex-direction:column; gap:6px; }
.ref-card h3{ margin: 6px 0 4px; font-size:1.05rem; }
.ref-card p{ margin: 0 0 8px; color: var(--muted); }
.ref-card .ref-meta{ list-style:none; padding:0; margin:0; display:flex; gap:10px; justify-content:center; color:#374151; font-weight:600; font-size:.92rem; }

/* Gallery */
.gallery{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; justify-items:center; }
.gallery-item{ border-radius:14px; overflow:hidden; box-shadow: var(--shadow); }
.gallery img{ width:100%; aspect-ratio: 3 / 2; height:auto; object-fit:cover; filter: saturate(1.02) contrast(1.02); transition: transform .35s ease; }
.gallery img:hover{ transform: scale(1.04); }
.gallery .hidden{ display:none; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; align-items:start; justify-items:center; }
.contact-cta .big{ font-size: clamp(1.05rem, .6vw + .8rem, 1.25rem); color: var(--muted); }
.contact-buttons{ display:flex; gap:12px; flex-wrap:wrap; }
.contact-form{ background:#fff; padding:24px; border-radius: var(--radius); box-shadow: var(--shadow); max-width:560px; width:100%; }
.form-field{ display:flex; flex-direction:column; margin-bottom:12px; }
label{ font-weight:600; margin-bottom:6px; }
input, textarea{ border:1px solid var(--line); border-radius:12px; padding: 12px 14px; font-family: inherit; font-size:1rem; outline:none; transition: border .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.18); }
.error{ color:#DC2626; font-size:.85rem; min-height: 1.2em; }
.form-note{ color: var(--muted); font-size:.85rem; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding: 10px 16px; font-weight:700; cursor:pointer; border:1px solid transparent; text-decoration:none; transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.18), 0 0 0 1px var(--accent); }
.btn-lg{ padding: 12px 20px; font-size:1.05rem; }
.btn-cta{ background: var(--cta); color:#fff; box-shadow: 0 10px 20px rgba(234,88,12,.28); }
.btn-cta:hover{ background: var(--cta-dark); box-shadow: 0 12px 28px rgba(234,88,12,.35); }
.btn-outline{ background:#fff; color: var(--text); border-color: var(--line); }
.btn-outline:hover{ border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-dark); }

/* Footer */
.site-footer{ border-top:1px solid var(--line); padding: 40px 0 10px; background: linear-gradient(180deg, #fff, var(--panel)); }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:24px; align-items:start; }
.footer-brand p{ color: var(--muted); margin:10px 0 0; line-height:1.6; }
.footer-nav h4, .footer-contact h4, .footer-news h4{ margin:0; font-size: .95rem; text-transform: uppercase; letter-spacing:.6px; color:#0f172a; }
.footer-nav ul, .footer-contact ul{ list-style:none; padding:0; margin:8px 0 0; display:grid; gap:6px; }
.footer-nav a{ color: var(--text); text-decoration:none; }
.footer-nav a:hover{ color: var(--accent-dark); }
.footer-news .newsletter{ display:flex; gap:8px; }
.footer-news input{ flex:1; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-family:inherit; }
.footer-news input:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.18); outline: none; }
.socials{ display:flex; gap:12px; margin-top:10px; }
.social{ display:inline-grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:10px; transition: background .2s ease, transform .1s ease; }
.social:hover{ background: var(--panel); transform: translateY(-1px); }
.legal-row{ padding-top: 14px; border-top:1px solid var(--line); margin-top: 24px; }
.legal-row .legal{ text-align:center; color: var(--muted); }
.visually-hidden{ position:absolute !important; clip: rect(1px, 1px, 1px, 1px); padding:0 !important; border:0 !important; height:1px !important; width:1px !important; overflow:hidden; }

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity:1; transform: translateY(0); }

/* Utilities */
.hero .btn + .btn{ margin-left:8px; }

/* Responsive */
@media (max-width: 1024px){
  .features{ grid-template-columns: repeat(2, 1fr); }
  .ref-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .main-nav ul{ position: absolute; right: 4%; top: 64px; background:#fff; padding:12px; border:1px solid var(--line); border-radius:12px; box-shadow: var(--shadow); flex-direction:column; align-items:flex-start; gap:6px; display:none; }
  .main-nav ul.open{ display:flex; }
  .nav-toggle{ display:inline-block; }
  .features{ grid-template-columns: 1fr; }
  .tech-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; }
  .reveal{ transition: none !important; }
  .reveal.visible{ transform: none !important; }
  .drops span{ animation: none !important; }
  .hero::before{ transition: none !important; }
}
