/* Theme Variables */
:root {
  --lavender: #d9a1ff;
  --deep-purple: #7a3f99;
  --rich-plum: #5a2a83;
  --blush-bg: #fff8f5;
  --text-dark: #403535;
  --text-light: var(--deep-purple);
  --shadow-soft: rgba(122, 63, 153, 0.1);
}

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

body {
  font-family: "Georgia", serif;
  background-color: var(--blush-bg);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

main {
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

hr {
  border: none;
  border-top: 1px solid #f0e4f7;
  margin: 3rem 0;
}

/* Headings */
h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--rich-plum);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  border-bottom: 2px solid var(--lavender);
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

/* Paragraphs & Text */
p {
  font-size: 1.125rem;
  line-height: 1.8;
  letter-spacing: 0.15px;
  margin-bottom: 1.2rem;
}

strong,
b,
em,
i {
  color: var(--deep-purple);
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--lavender);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--rich-plum);
}

/* Links & Navigation */
a {
  color: var(--deep-purple);
}

nav a {
  color: var(--deep-purple);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

nav {
  background-color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-family: sans-serif;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Nav header layout */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HAMBURGER button positioning */
.hamburger {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 2rem;
  color: var(--lavender);
  margin: 0;
  background: rgba(230, 230, 250, 0.9);
  border-radius: 16px;
}

/* Nav links layout */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a:hover,
.dropdown:hover .dropbtn {
  font-weight: bold;
  color: var(--rich-plum);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  all: unset;
  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--deep-purple);
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 6px;
  border: 1px solid var(--lavender);
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.dropdown-content a {
  color: var(--rich-plum);
  padding: 10px 16px;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f3e3fb;
  color: var(--deep-purple);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.button {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.button.primary {
  background-color: var(--deep-purple);
  color: var(--blush-bg);
  border: none;
}

.button.primary:hover {
  background-color: var(--rich-plum);
}

.button.secondary {
  background-color: transparent;
  border: 2px solid var(--deep-purple);
  color: var(--deep-purple);
}

.button.secondary:hover {
  background-color: #f3e3fb;
}

/* Newsletter Box */
.newsletter-box {
  background: #f9efff;
  border: 1px solid #e6c8fa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

.newsletter-box p {
  margin-bottom: 0.75rem;
  color: var(--rich-plum);
}

.newsletter-box .button {
  margin-top: 0.5rem;
}

/* Section Dividers */
section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0e4f7;
  animation: fadeUp 0.7s ease both;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 600px) {
  .hamburger {
    display: block;
  }

  nav.main-nav {
    display: none;
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    background-color: lavender;
    top: 3.5rem;
    position: absolute;
    border-radius: 16px;
  }

  nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 0.5rem;
    background-color: inherit;
  }

  /* Make the header transparent and overlay main content */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    pointer-events: none; /* Let elements inside handle events */
  }

  /* Let nav and hamburger still be clickable */
  header * {
    pointer-events: auto;
  }
}

main hr:last-of-type {
  display: none;
}

/* Text Selection */
::selection {
  background-color: var(--lavender);
  color: var(--blush-bg);
}
