
:root {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --accent: #ef4444;
  --accent-strong: #b91c1c;
  --accent-soft: rgba(239, 68, 68, 0.08);
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0, #e5e7eb 38%, #d1d5db 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Links */
a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.96)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f9fafb;
}

.logo-main {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-main span {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #e5e7eb;
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #f97373);
  transition: width 0.18s ease-out;
}

.main-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #dc2626 45%,
    var(--accent-strong) 100%
  );
  color: #f9fafb !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.45);
  white-space: nowrap;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(153, 27, 27, 0.55);
  background: linear-gradient(
    135deg,
    #f97373 0%,
    var(--accent) 40%,
    var(--accent-strong) 100%
  );
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}


.btn-outline {
  background: transparent;
  color: var(--accent-strong) !important;
  border-color: var(--accent-strong);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

/* Outline buttons in topbar on dark background */
.topbar .btn-outline {
  color: #f9fafb !important;
  border-color: rgba(249, 250, 251, 0.7);
}

.topbar .btn-outline:hover {
  border-color: rgba(249, 250, 251, 1);
  background: rgba(15, 23, 42, 0.85);
}

/* Burger */
.burger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #020617;
  border-bottom: 1px solid #020617;
}

.mobile-menu a {
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: #e5e7eb;
  border-top: 1px solid #111827;
  font-size: 0.9rem;
}

.mobile-menu a:hover {
  background: #111827;
  color: #f9fafb;
  text-decoration: none;
}

.mobile-menu.open {
  display: flex;
}

/* Accent text */
.accent {
  color: var(--accent);
}

/* Homepage hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.7rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  font-size: 0.75rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  font-size: clamp(2.3rem, 3.3vw + 1rem, 3.2rem);
  line-height: 1.05;
  margin: 1.25rem 0 0.85rem;
  color: #0b1120;
}

.hero h1 .accent {
  background: linear-gradient(to right, var(--accent), #f97373);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero-meta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text);
}

/* Hero card */
.hero-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #ffffff 0, #f9fafb 40%, #f3f4f6 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.9rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top, var(--accent-soft), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.stat {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0;
  color: #0b1120;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent);
}

.section-desc {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(209, 213, 219, 0.95);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.card-title {
  font-size: 1rem;
  margin: 0;
  color: #111827;
}

.card-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-actions {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.card-actions a::after {
  content: "→";
  font-size: 0.8rem;
  margin-top: 1px;
}

/* Generic page layout (subpages) */
.page-hero {
  padding: 3.5rem 0 3.2rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.page-main {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.95);
}

.page-main h1 {
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.9rem;
  color: #0b1120;
}

.page-main h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: #111827;
}

.page-main p {
  margin: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.page-main ul,
.page-main ol {
  margin: 0.4rem 0 0.8rem 1.1rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.page-main li + li {
  margin-top: 0.15rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-bottom: 0.7rem;
}

.breadcrumbs a {
  color: #6b7280;
}

.breadcrumbs a:hover {
  color: var(--accent-strong);
}

/* Page hero image */
.page-hero-image {
  margin: 1.2rem 0 0.5rem;
}

.page-hero-image img {
  display: block;
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

/* Gallery */
.page-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.page-gallery figure {
  margin: 0;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.page-gallery img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.page-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Aside */
.page-aside {
  align-self: stretch;
}

.aside-card {
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, #020617 0%, #111827 60%, #020617 100%);
  color: #e5e7eb;
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.aside-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  color: #f9fafb;
}

.aside-card p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}


.aside-card a {
  color: #e5e7eb;
  text-decoration: none;
}

.aside-card a:hover {
  color: #f97373;
  text-decoration: underline;
}

.aside-meta {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Contact page specifics (lists already covered by page-main styles) */

/* Utility spacing for last elements */
.page-main > :last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-grid,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .page-main {
    padding: 1.4rem 1.3rem 1.5rem;
  }

  .aside-card {
    position: static;
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.1rem;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-main h1 {
    font-size: 1.6rem;
  }

  .page-main h2 {
    font-size: 1.1rem;
  }
}


/* --- Galleries / SEO content blocks --- */
.section-head { max-width: 900px; }
.gallery-grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: 14px;
  margin-top: 14px;
}
.gallery-card{
  background: #0f1115;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.gallery-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display:block;
}
.gallery-card figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.3;
}

/* Cards used on index for category links */
.card-grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: 14px;
  margin-top: 14px;
}
.card{
  display:block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color: rgba(255,255,255,.92);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.card h3{ margin: 0 0 6px; font-size: 16px; }
.card p{ margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }

/* FAQ */
.faq{ max-width: 950px; }
.faq-item{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 10px 14px;
  margin: 10px 0;
}
.faq-item summary{
  cursor:pointer;
  font-weight: 650;
  color: rgba(255,255,255,.92);
}
.faq-answer{ padding: 10px 2px 2px; color: rgba(255,255,255,.78); }

/* --- Micro CTA --- */
.micro-cta{
  margin: 14px 0 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 38, 38, .25);
  background: rgba(239, 68, 68, 0.06);
}
.micro-cta p{ margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.micro-cta a{ font-weight: 650; }

/* --- CTA section --- */
.cta-box{
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(2,6,23,.98));
  border: 1px solid rgba(148,163,184,.18);
  padding: 22px 22px;
  box-shadow: var(--shadow-soft);
}
.cta-box h2{ margin: 0 0 8px; color: #f9fafb; }
.cta-box p{ margin: 0 0 14px; color: rgba(249,250,251,.78); }
.cta-actions{ display:flex; flex-wrap:wrap; gap: 10px; }

/* --- Footer --- */
.site-footer{
  margin-top: 32px;
  padding: 34px 0 18px;
  background: #020617;
  color: rgba(249,250,251,.82);
  border-top: 1px solid rgba(148,163,184,.18);
}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.site-footer h3{ margin: 0 0 10px; color:#f9fafb; font-size: 1rem; }
.site-footer p{ margin: 0 0 10px; font-size: .9rem; color: rgba(249,250,251,.75); }
.site-footer a{ color: #f9fafb; text-decoration: none; }
.site-footer a:hover{ color: #f97373; text-decoration: underline; }
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links li{ margin: 0 0 8px; }
.footer-bottom{ padding-top: 14px; border-top: 1px solid rgba(148,163,184,.14); margin-top: 14px; }
.footer-bottom p{ margin: 0; font-size: .82rem; color: rgba(249,250,251,.6); }

/* --- Glossary --- */
.glossary-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.glossary-item{
  background: #ffffff;
  border: 1px solid rgba(209,213,219,.9);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.14);
}
.glossary-item h3{ margin: 0 0 6px; font-size: 1rem; }
.glossary-item p{ margin: 0; color: var(--text-muted); font-size: .95rem; }

@media (max-width: 960px){
  .footer-grid{ grid-template-columns: 1fr; }
}
