/* ============================================
   Kaaterskil Management - Modern Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;

  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-accent-dark: #1d4ed8;

  --color-warm: #92400e;
  --color-warm-light: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-slate-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-slate-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

ul {
  list-style: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-slate-900);
  border-color: var(--color-white);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-slate-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav — hidden by default, shown differently on desktop vs mobile */
.main-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-slate-300);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--color-white);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-slate-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--color-slate-300);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown li a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Close button — hidden on desktop */
.nav-close {
  display: none;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-slate-900);
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(15, 23, 42, 0.1) 30%,
    rgba(15, 23, 42, 0.4) 60%,
    rgba(15, 23, 42, 0.75) 100%
  );
}

/* Voice overlay — lower left on desktop */
.hero-voice {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 2;
  max-width: 540px;
}

.voice-lead p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.voice-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.voice-body .voice-closing {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* ============================================
   Sections (General)
   ============================================ */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-slate-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Rotating pillars overlay — horizontal, bottom right 50% */
.hero-pillars {
  position: absolute;
  bottom: 2.5rem;
  right: 0;
  left: 50%;
  z-index: 2;
  padding: 0 3rem;
}

.hero-pillar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 3rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-pillar.active {
  opacity: 1;
}

.hero-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-pillar p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Voice contact close — below closing statement */
.voice-contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.voice-contact span {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.voice-contact a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.voice-contact a:hover {
  color: var(--color-white);
}

/* (Foundation section removed — contact close is now inside hero voice) */

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  background: var(--color-slate-900);
  padding: calc(var(--header-height) + 3rem) 1.5rem 3rem;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.5rem;
}

/* ============================================
   Page Body (inner pages)
   ============================================ */
.page-body {
  padding: 3.5rem 1.5rem 5rem;
}

.page-body-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-body-inner p {
  color: var(--color-slate-600);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.page-body-inner img {
  float: right;
  margin: 0 0 1.5rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 220px;
}

.page-body-inner h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.page-body-inner h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-body-inner ul {
  margin-bottom: 1.5rem;
}

.page-body-inner ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-600);
  font-size: 1.05rem;
}

.page-body-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.page-body-inner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body-inner a:hover {
  color: var(--color-accent-dark);
}

.page-body-inner strong {
  color: var(--color-slate-800);
  font-weight: 600;
}

/* Clearfix for floated images */
.page-body-inner::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-slate-900);
  color: var(--color-slate-400);
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-slate-500);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-300);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a,
.footer-col p a {
  color: var(--color-slate-400);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover,
.footer-col p a:hover {
  color: var(--color-white);
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: var(--color-slate-500);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--color-slate-500);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--color-slate-300);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet+ */
@media (min-width: 768px) {
  .hero-voice {
    bottom: 4rem;
    left: 4rem;
    max-width: 560px;
  }

  .voice-lead p {
    font-size: 1.5rem;
  }

  .voice-body p {
    font-size: 1rem;
  }

  .voice-body .voice-closing {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Desktop nav */
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    align-items: center;
    padding-right: calc((100% - var(--max-width)) / 2 + 1.5rem);
  }
}

/* Mobile nav */
@media (max-width: 899px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 360px;
    padding: 3rem 2rem 2rem;
    overflow-y: auto;
    background: var(--color-slate-800);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  /* Close button inside nav panel */
  .nav-close {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--color-slate-400);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
  }

  .nav-close:hover {
    color: var(--color-white);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    text-align: left;
  }

  .nav-links > li > a {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem 1.25rem;
  }

  .dropdown li a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Mobile: split voice into top lead and bottom body */
  .hero-voice {
    position: static;
  }

  .voice-lead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: calc(var(--header-height) + 1rem) 1.5rem 1.25rem;
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.6) 70%,
      transparent 100%
    );
  }

  .voice-lead p {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .voice-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.7) 70%,
      transparent 100%
    );
  }

  .voice-body p {
    font-size: 0.8rem;
    line-height: 1.65;
    margin-bottom: 0.6rem;
  }

  .voice-body .voice-closing {
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .page-body-inner img {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  html {
    font-size: 17px;
  }

  :root {
    --max-width: 1300px;
  }
}
