/* Base */
:root{
  --bg: #0e0f13;
  --bg-soft: #141720;
  --text: #e8ebf1;
  --muted: #aeb6c8;
  --primary: #7a9cff;
  --accent: #61e7c8;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.14);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: linear-gradient(180deg,#0d1018, #0a0c12 65%, #0b0e17); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; border-radius: 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section-title { font-size: 1.9rem; margin: 1.5rem 0; }

.glass { background: var(--glass); backdrop-filter: saturate(160%) blur(10px); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); box-shadow: var(--shadow); }
.glass-strong { background: var(--glass-strong); backdrop-filter: saturate(180%) blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; margin: .6rem auto; width: min(1100px, 96%); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 50%; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.16); background: transparent; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; }
.nav-links { display: flex; list-style: none; gap: .8rem; padding: 0; margin: 0; }
.nav-links a { color: var(--text); padding: .5rem .8rem; border-radius: 10px; display: block; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.08); }
.socials { display: flex; gap: .4rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; background: transparent; }
.icon-btn svg { width: 20px; height: 20px; fill: var(--text); opacity: .9; }
.icon-btn:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { position: relative; padding: 8rem 0; background: center/cover no-repeat var(--hero); }
.hero-small { padding: 5.5rem 0; }
.hero::before { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,18,.6), rgba(10,12,18,.75)); }
.hero-inner { position: relative; width: min(900px, 92%); margin: 0 auto; padding: 2rem; text-align: center; }
.hero .btn { margin: .25rem .35rem; }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 600; border: 1px solid transparent; transition: .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #5a7aff); color: #101318; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.22); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-secondary { background: linear-gradient(135deg,var(--accent), #45d9b2); color: #0a0c12; }

/* Cards / Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.card { padding: 1rem; }
.card h3 { margin: .8rem 0 .3rem; color: #fff; }
.card-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.masonry img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.services { padding: 2rem 0; }
.gallery { padding: 2rem 0; }
.cta-wide { margin: 2rem auto; width: min(1100px, 92%); padding: 1.8rem; text-align: center; }

/* Article / Posts */
.article .post { padding-bottom: 2rem; }
.post-header { text-align: center; margin-bottom: 1rem; }
.post-hero { margin-top: .8rem; }
.post-content { width: min(860px, 92%); margin: 1rem auto; font-size: 1.05rem; color: var(--text); }
.post-footer { width: min(860px, 92%); margin: 2rem auto 0; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.post-footer .share { display: flex; align-items: center; gap: .4rem; }
.post-footer .share span { color: var(--muted); margin-right: .4rem; }
.post-pager .btn { margin: 0 .2rem; }

/* About */
.about-card { padding: 1rem; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.team-card { padding: 1rem; text-align: center; }
.team-card img { width: 100%; height: auto; object-fit: cover; }

/* Contact */
.contact-wrap { padding: 1.5rem 0; }
.contact-card { padding: 1rem; }
form .form-row { display: flex; flex-direction: column; margin-bottom: .8rem; }
form input, form textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: var(--text); padding: .7rem .8rem; border-radius: 10px; outline: none; }
form input:focus, form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(97,231,200,0.12); }

/* Footer */
.site-footer { margin-top: 2rem; padding: 2rem 0; background: var(--bg-soft); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .3rem 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.brand-inline { display: flex; align-items: center; gap: .6rem; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; padding: .8rem; background: rgba(20,23,32,0.96); border-top: 1px solid rgba(255,255,255,0.12); z-index: 200; }
.cookie-banner.hidden { display: none; }
.cookie-content { width: min(1100px, 96%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-actions .btn { margin-left: .4rem; }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.5); z-index: 300; }
.modal.hidden { display: none; }
.modal-dialog { width: min(560px, 90%); padding: 1.2rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin: .5rem 0; }

/* Responsive */
@media (max-width: 980px){
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
  .nav-toggle { display: inline-block; }
  .nav-links { position: absolute; top: 60px; right: 2%; background: rgba(10,12,18,0.96); border: 1px solid rgba(255,255,255,0.1); padding: .6rem; border-radius: 12px; display: none; flex-direction: column; }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}
