
:root{
  --c-bg:#FFFFFF;
  --c-bg-alt:#F6FAFB;
  --c-text:#0E1418;
  --c-muted:#5F6B75;
  --c-primary:#1B6E7A;
  --c-primary-2:#7EC9D5;
  --c-accent:#FFB347;
  --c-accent-2:#3B6FB6;
  --radius:16px;
  --shadow:0 10px 25px rgba(0,0,0,.08);
}

[data-theme="dark"]{
  --c-bg:#0A1014;
  --c-bg-alt:#121A20;
  --c-text:#E6EEF4;
  --c-muted:#98A8B3;
  --c-primary:#7EC9D5;
  --c-primary-2:#2B9FB0;
  --c-accent:#FFB347;
  --c-accent-2:#6CA2EA;
  --shadow:0 10px 25px rgba(0,0,0,.5);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font:17px/1.7 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--c-text); background:var(--c-bg);
}
p{margin:0 0 14px}
a{color:var(--c-primary); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1200px; margin:0 auto; padding:0 20px}
.grid{display:grid; gap:24px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.grid-3{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}}

.card{
  background:var(--c-bg-alt); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow);
  border:1px solid rgba(221,230,237,.6);
}

.hero{position:relative; overflow:hidden; border-radius:24px; box-shadow:var(--shadow); margin:20px 0 32px}
.hero img{width:100%; height:auto; display:block}
.hero .overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(14,20,24,.12), rgba(14,20,24,.55))}
.hero .content{position:absolute; bottom:24px; left:24px; right:24px; color:white; text-shadow:0 2px 8px rgba(0,0,0,.6)}
.hero h1{margin:0 0 8px; font-size:42px}
.hero p{margin:0; font-size:19px}

.site-header{position:sticky; top:0; z-index:100; backdrop-filter:saturate(180%) blur(8px); background:rgba(255,255,255,.72); border-bottom:1px solid #E5EEF3}
[data-theme="dark"] .site-header{background:rgba(18,26,32,.62); border-color:#1d2a33}
.site-header .inner{display:flex; align-items:center; justify-content:space-between; padding:10px 20px}
.site-header .brand{display:flex; align-items:center; gap:12px}
.site-header .brand img{height:72px}
.site-header .brand span{font-weight:800; color:var(--c-primary); font-size:18px}
.site-header.compact .inner{padding:6px 16px}
.site-header.compact .brand img{height:56px}
.header-actions{display:flex; align-items:center; gap:10px}

main{padding:28px 0 72px}

/* Off-canvas menu (RIGHT side) */
.menu-toggle, .theme-toggle{
  border:0; background:var(--c-primary); color:white; padding:10px 12px; border-radius:10px;
  box-shadow:var(--shadow); display:inline-flex; align-items:center; gap:8px; cursor:pointer;
}
.menu-toggle[aria-expanded="true"]{background:var(--c-accent); color:#0F1419}
.theme-toggle{background:var(--c-bg-alt); color:var(--c-text); border:1px solid rgba(221,230,237,.6)}

#offcanvas{position:fixed; inset:0; pointer-events:none; z-index:90}
#offcanvas .backdrop{position:absolute; inset:0; background:rgba(0,0,0,.35); opacity:0; transition:opacity .25s ease; pointer-events:none; z-index:1}
#offcanvas .panel{
  position:absolute; top:0; right:0; width:360px; max-width:90vw; background:var(--c-bg); color:var(--c-text); height:100%;
  transform:translateX(100%); transition:transform .28s ease;
  box-shadow:var(--shadow); border-left:1px solid #E5EEF3; padding:16px; overflow:auto; z-index:2;
}
#offcanvas.open{pointer-events:auto}
#offcanvas.open .backdrop{opacity:1; pointer-events:auto}
#offcanvas.open .panel{transform:translateX(0)}

.nav-section{margin:10px 0 16px}
.nav-section h4{margin:10px 0 8px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--c-muted)}
.nav-section a{display:block; padding:8px 10px; border-radius:8px; color:var(--c-text)}
.nav-section a:hover{background:rgba(62,117,186,.08)}
[data-theme="dark"] .nav-section a:hover{background:#18222b}

footer{ margin-top:40px; background:var(--c-bg) } /* no border-top */
footer .footer-inner{padding:32px 20px}
footer .footer-inner>.container{max-width:1200px; margin:0 auto;}
footer .credits{padding:12px 20px; border-top:1px solid #E5EEF3; color:var(--c-muted); font-size:14px}
footer h4{margin:0 0 8px}
footer p{margin:0}

/* Footer two-col: left ~12% narrower */
.footer-two-col .grid-2-custom{ display:grid; gap:24px; grid-template-columns: 0.88fr 1.12fr }
@media(max-width:900px){ .footer-two-col .grid-2-custom{grid-template-columns:1fr} }
.footer-nav-grid{ display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)) }
@media(max-width:600px){ .footer-nav-grid{grid-template-columns:1fr} }

figure{margin:0}
figure img{width:100%; height:auto; display:block; border-radius:16px}
figcaption{font-size:14px; color:var(--c-muted); margin-top:6px}

/* Species gallery sizing */
.species-gallery img{width:100%; height:360px; object-fit:cover; border-radius:16px}
@media(max-width:900px){.species-gallery img{height:240px}}

/* Spec sheet (bold block) */
.spec-sheet{ background:linear-gradient(180deg, rgba(126,201,213,.12), transparent); border:1px solid rgba(126,201,213,.35); padding:14px 16px; border-radius:14px; margin:12px 0 18px }
.spec-sheet div{font-weight:800; margin:0 0 6px}

/* Labeled entries */
p.spec-entry{ margin: 16px 0 0 }
p.spec-entry strong{ font-weight: 800 }

/* Vasca wrap + justify */
.text-flow{ text-align: justify }
.float-right{ float:right; width:min(420px, 44%); margin:0 0 12px 20px }
@media(max-width:900px){
  .float-right{ float:none; width:100%; margin:0 0 12px 0 }
  .text-flow{ text-align:left }
}
