/* styles.css — shared styles for the Zomage site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
  /* Light mode palette: Deep Forest Green on Cream */
  --primary-color: #21352A;    /* Dark green for all text, titles, and icons */
  --secondary-color: #4a5d52;  /* Muted sage-green for subtitles and secondary text */
  --bg-color: #fdfaf1;         /* Warm cream/alabaster background */
  --border-color: #dbe4de;     /* Light green-grey borders */
  --font-main: 'Inter', sans-serif;
}

/* Dark mode palette: Cream on Deep Forest Green */
body.dark-mode {
  --bg-color: #21352A;         /* Dark green background */
  --primary-color: #fdfaf1;    /* Cream text and headers */
  --secondary-color: #a3b1a9;  /* Muted sage */
  --border-color: #3a4d41;     /* Subtle dark green borders */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--primary-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Reveal-on-scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.6s ease;
  height: 80px;
  padding: 0 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: Impact, sans-serif;
  font-size: 40px;
  letter-spacing: 0.03em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.6s ease;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.6s ease;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.hamburger {
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }
.hamburger.open { background-color: transparent; }
.hamburger.open::before { transform: rotate(45deg) translateY(0); }
.hamburger.open::after { transform: rotate(-45deg) translateY(0); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.nav-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary-color);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s ease, color 0.6s ease;
}

.nav-btn:hover,
.nav-link:hover { opacity: 0.6; }

.theme-toggle-icon {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
}

.theme-toggle-icon svg {
  width: 30px;
  height: 30px;
}

.theme-toggle-label { display: none; }

.bulb-lit svg { color: #ffd700; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); }
.bulb-unlit svg { color: var(--primary-color); transform: rotate(180deg); }
.bulb-unlit .rays { opacity: 0; transform: scale(0); }

.theme-toggle-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 60px 4rem;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--secondary-color);
  margin-bottom: 2.2rem;
}

/* --- Paragraph & Text Uniformity Across All Sections --- */
.hero p,
.content-section p,
.legal-page p {
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--primary-color);
  opacity: 0.95;
  margin: 0 0 1.8rem;
  transition: color 0.6s ease;
}

/* --- Content Sections (About / Our Story) --- */
.content-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 3px solid var(--border-color);
  transition: border-color 0.6s ease;
  padding: 5rem 60px;
  box-sizing: border-box;
}

.content-inner {
  max-width: 800px;
  width: 100%;
  line-height: 1.85;
}

.content-section h2 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  margin: 0 0 1.5rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* --- Contact & Footer Section --- */
.contact-section {
  background-color: var(--bg-color);
  padding: 6rem 60px;
  border-top: 3px solid var(--border-color);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  margin: 0;
}

.email-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  transition: color 0.6s ease;
}

.email-link {
  font-size: 1.3rem;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 300;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.email-link:hover {
  border-bottom: 1px solid var(--primary-color);
  opacity: 0.7;
}

.footer-brand {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
}

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

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.6s ease, opacity 0.3s ease;
}

.footer-links a:hover { opacity: 0.7; }

.copyright {
  font-size: 10px;
  color: var(--secondary-color);
  letter-spacing: 0.1em;
  transition: color 0.6s ease;
}

/* --- Legal Pages (privacy.html, terms.html) --- */
.legal-page {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 24px 8rem;
  box-sizing: border-box;
  line-height: 1.85;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page p,
.legal-page li {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.legal-page a {
  color: var(--primary-color);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-header { height: 60px; padding: 0 20px; }
  .menu-toggle { display: block; }
  .logo { font-size: 22px; gap: 10px; }
  .logo-img { height: 30px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
  }

  .main-nav.nav-open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    gap: 30px;
    height: 100%;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .theme-toggle-item { margin-top: auto; }

  .nav-link,
  .nav-btn { font-size: 18px; width: 100%; }

  .theme-toggle-icon {
    justify-content: flex-start;
    padding-left: 0;
    width: auto;
    height: auto;
    align-items: center;
    gap: 12px;
  }

  .theme-toggle-icon svg { width: 26px; height: 26px; flex-shrink: 0; }

  .theme-toggle-label {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    transition: color 0.6s ease;
  }

  .theme-toggle-icon:hover::after { display: none; }

  .hero { padding: 4rem 24px 3rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .content-section { padding: 3.5rem 24px; }
  .content-section h2, .contact-title { font-size: 1.6rem; }
  .contact-section { padding: 4rem 24px; }
}