:root {
    --bg-dark: #0d0f12;
    --surface-dark: #14171c;
    --text-dark: #ffffff;
    --text-muted-dark: #9ca3af;
    --accent: #3b82f6;
    --panel: #ffffff;

    --bg-light: #ffffff;
    --surface-light: #f5f7fa;
    --text-light: #111827;
    --text-muted-light: #4b5563;
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --surface: var(--surface-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --background: #2a2a2c;
    --border: #3a3a3c;
    --panel: #0c0808;
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --surface: var(--surface-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --background: #f7f7f8;
    --border: #e2e2e4;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.25s, color 0.25s;
}

body.menu-open {
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
}

a.logo {
    text-decoration: none;
    color: var(--text);
}

a {
    text-decoration: none;
    color: var(--text);
}

.muted a {
    color: var(--text-muted);
}

.nav-desktop a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 18px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-desktop a:hover {
    color: var(--text);
}

.icon {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.nav-desktop a:hover .icon {
    stroke: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta {
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

button.cta {
    margin: 0 10px;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600 !important;
    cursor: pointer;
    font: 16px "Inter", sans-serif;
}

.contact-form .reset-btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: #e74c3c;
    color: #fff;
}

.contact-form .reset-btn:hover {
    background: #c0392b;
}

.contact-form button {
    width: auto;
    align-self: flex-start;
}

#formMessage.success {
    background: #d1fae5;
    color: #065f46;
}
#formMessage.error {
    background: #fee2e2;
    color: #991b1b;
}
.contact-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.theme-toggle {
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 26px;
    height: 26px;
    transition: transform 0.6s ease;
}

/* --- SUN --- */
.sun-core {
    fill: #f6c945;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sun-rays circle {
    r: 1.8;
    fill: #f6c945;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- CRESCENT MOON --- */
.moon-crescent {
    fill: #cdd6f4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.crater {
    fill: #b8c0e0;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

/* LIGHT MODE */
.sun { opacity: 1; }
.moon { opacity: 0; transform: scale(0.6); }

/* DARK MODE */
html[data-theme="dark"] .theme-icon {
    transform: rotate(180deg);
}

html[data-theme="dark"] .sun {
    opacity: 0;
}

html[data-theme="dark"] .sun-rays circle {
    transform: scale(0.3);
    opacity: 0;
}

html[data-theme="dark"] .sun-core {
    transform: scale(0.7);
    opacity: 0;
}

html[data-theme="dark"] .moon {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="dark"] .crater {
    opacity: 1;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px; /* stays clean */
    height: 100vh;
    background: var(--surface);
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s;
    display: flex;
    flex-direction: column;
    z-index: 200;

    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
}

.mobile-close {
    position: absolute;
    top: 22px;
    right: 22px;
    cursor: pointer;
    font-size: 26px;
    color: var(--text);
}

.mobile-cta {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--accent);
    color: white !important;
}

/* Hero */
.hero {
    padding: 50px 40px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    padding: 10px 0;
}

.hero-buttons a {
    margin: 0 10px;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.secondary-btn {
    border: 1px solid var(--text-muted);
    color: var(--text);
}

/* Sections */
section {
    padding: 50px 40px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Mobile: stack items */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.muted {
    color: var(--text-muted);
}

/* -------------------------------------------------------
   COOKIE BANNER & MODAL
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 -4px 18px var(--card-shadow);
  padding: 18px;
  z-index: 4000;
  border-top: 1px solid var(--border);
}

/* Light mode solid cookie banner */
:root.light .cookie-banner {
  background-color: #eaedf1 !important;
}

/* Dark mode solid cookie banner */
:root.dark .cookie-banner {
  background-color: #0f1724 !important;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cb-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.cb-btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.cb-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.cb-btn.link {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-content {
  background: var(--panel);
  color: var(--text);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px var(--card-shadow);
  width: min(480px, 90%);
}

.cookie-group {
  margin-top: 18px;
}

.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#cookie-settings-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
footer {
    padding: 60px 40px;
    text-align: center;
    color: var(--text-muted);
}

.form-card {
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-card h2 {
    margin-bottom: 6px;
}

.form-subtext {
    margin-bottom: 24px;
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--background);
    font-size: 16px;
    color: var(--text, #000);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 500px;
}

.contact-form label {
    font-weight: 600;
    margin: 10px 0;
}

.contact-form .radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 18px;
    padding: 10px 0;
}

.contact-form .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.bullet-list li {
    padding: 5px 0;
}

@media (max-width: 1185px) {
    .nav-desktop a {
        margin: 0 10px;      /* was 18px */
        gap: 6px;            /* slightly tighter icon/text spacing */
    }

    .header {
        padding: 20px 28px;  /* reduce left/right padding */
    }

    .logo {
        font-size: 20px;     /* optional: slightly smaller logo */
    }

    .header-right {
        gap: 14px;           /* tighten right-side spacing */
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 18px 24px;
    }
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 516px) {
    .hero-buttons {
        display: flex;
        flex-direction: column !important;
        gap: 12px;
        max-width: 100%;
    }

    .hero-buttons a {
        text-align: center;
        padding: 12px 18px;
        font-size: 16px;
    }
}