@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@400;600;700&family=Zilla+Slab:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import "tailwindcss";

@theme {
  --color-primary: #086972;
  --color-secondary: #DCEEF2;
  --color-accent: #F26457;
  --color-background: #F5FCFC;
  --color-text: #132B32;

  --font-heading: "Zilla Slab", serif;
  --font-body: "Open Sans", sans-serif;
  --font-accent: "Space Grotesk", sans-serif;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@layer base {
  :root {
    --section-gap: clamp(60px, 8vw, 80px);
    --container-max: 900px;
  }

  body {
    font-size: 19px;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
}

.nav-logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.nav-logo-mark { display: inline-flex; align-items: center; justify-content: center; }
.nav-logo-img { width: auto; height: auto; max-height: 48px; min-width: 180px; display: block; }

/* Mobile nav drawer */
.mobile-nav-open { overflow: hidden; }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #086972;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}
.mobile-menu a:hover { color: #F26457; }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Card link styles */
.card {
  display: block;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #086972;
  text-decoration: none;
}
.card:hover {
  background: #DCEEF2;
  color: #086972;
}

/* Footer */
.site-footer {
  background: #086972;
  color: #DCEEF2;
  padding: 3rem 1rem 1.5rem;
  position: relative;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-name {
  font-family: 'Zilla Slab', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}
.footer-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #DCEEF2;
  margin: 0;
  line-height: 1.6;
}
.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 1rem;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #DCEEF2;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #F26457; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
}
.footer-copyright {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(220,238,242,0.7);
  margin: 0;
}

/* Responsive hero heading */
@media (max-width: 900px) {
  .hero h1 { font-size: 4.5rem !important; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 3.2rem !important; }
}

/* Reveal animation */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Dark mode toggle button */
.js-dark-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(128,128,128,0.3);
  background: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
body.dark-mode { filter: invert(0.88) hue-rotate(180deg); }
body.dark-mode img, body.dark-mode video { filter: invert(1) hue-rotate(180deg); }