:root {
  --twilight-purple: #51427A;
  --royal-blue: #3F63A8;
  --sky-blue: #72B7D8;
  --coral: #E87561;
  --golden-yellow: #E8B84A;
  --soft-lavender: #E6DFF2;
  --warm-cream: #FFF8ED;
  --deep-plum: #302641;
  --soft-gray: #E8E8EC;
  --dark-text: #29283A;
  --white: #FFFFFF;

  --font-heading: 'Lora', serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--warm-cream);
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--twilight-purple);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--soft-lavender), var(--sky-blue));
  border-radius: 8px;
}

/* Image fallback styling for aesthetic placeholders */
.img-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--twilight-purple), var(--royal-blue));
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  top: 10%; left: 10%; width: 4px; height: 4px; background: var(--white); border-radius: 50%; box-shadow: 20px 40px var(--white), 80px 10px var(--white), 150px 80px var(--white), 200px 30px var(--white);
  opacity: 0.6;
}
.img-placeholder.moon { background: linear-gradient(135deg, var(--deep-plum), #4a4a5a); }
.img-placeholder.moon::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:100px; height:100px; background:var(--soft-gray); border-radius:50%; box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3); }
.img-placeholder.sun { background: linear-gradient(135deg, var(--coral), var(--golden-yellow)); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Layout Utilities */
.section-pad {
  padding: 5rem 0;
}
.section-bg-alt {
  background-color: var(--white);
}
.section-bg-dark {
  background-color: var(--deep-plum);
  color: var(--warm-cream);
}
.section-bg-dark h2, .section-bg-dark h3 {
  color: var(--soft-lavender);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--twilight-purple);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background-color: var(--royal-blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: var(--coral);
}
.btn-secondary:hover {
  background-color: var(--golden-yellow);
  color: var(--dark-text);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--twilight-purple);
  color: var(--twilight-purple);
}
.btn-outline:hover {
  background-color: var(--twilight-purple);
  color: var(--white);
}

/* Header & Nav */
.site-header {
  background-color: var(--warm-cream);
  padding: 2rem 0;
  border-bottom: 1px solid var(--soft-gray);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.masthead {
  text-align: center;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--twilight-purple);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}
.site-title {
  font-size: 1.1rem;
  color: var(--royal-blue);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.main-nav {
  width: 100%;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav a {
  color: var(--dark-text);
  font-weight: 600;
  padding: 0.5rem;
  display: block;
  font-size: 1.05rem;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--twilight-purple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--deep-plum), var(--twilight-purple));
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(114, 183, 216, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--warm-cream);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--soft-lavender);
  margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(41, 40, 58, 0.05);
  border-top: 4px solid var(--royal-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(41, 40, 58, 0.1);
}
.card.accent-purple { border-color: var(--twilight-purple); }
.card.accent-coral { border-color: var(--coral); }
.card.accent-yellow { border-color: var(--golden-yellow); }

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card-body {
  flex-grow: 1;
}
.card-action {
  margin-top: 1.5rem;
}

.guide-card {
  background: var(--soft-lavender);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--twilight-purple);
}
.guide-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Feature Section Layout */
.feature-block {
  margin-bottom: 4rem;
}
.feature-header {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
}
.feature-header h2 {
  font-size: 2.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--deep-plum);
  color: var(--soft-lavender);
  padding: 4rem 0 2rem 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--warm-cream);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.footer-title {
  color: var(--sky-blue);
  margin-bottom: 1.5rem;
}
.footer-col h4 {
  color: var(--warm-cream);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 0.5rem;
}
.footer-nav a {
  color: var(--soft-lavender);
}
.footer-nav a:hover {
  color: var(--golden-yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(230, 223, 242, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-legal-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-disclaimer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(230, 223, 242, 0.6);
  text-align: center;
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--twilight-purple);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--soft-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--warm-cream);
}
.form-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(63, 99, 168, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}
.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
}
.form-message.success {
  background-color: var(--soft-lavender);
  color: var(--twilight-purple);
  border: 1px solid var(--twilight-purple);
  display: block;
}

/* Cookie Popup */
.cookie-overlay {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--white);
  box-shadow: 0 -5px 30px rgba(41, 40, 58, 0.1);
  padding: 2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-top: 4px solid var(--royal-blue);
}
.cookie-overlay.show {
  transform: translateY(0);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-text h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.cookie-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--dark-text);
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}
.cookie-btn-accept {
  background: var(--twilight-purple); color: var(--white);
}
.cookie-btn-reject {
  background: var(--soft-gray); color: var(--dark-text);
}
.cookie-btn-manage {
  background: transparent; color: var(--royal-blue); text-decoration: underline;
}

/* Inner Page Header */
.page-header {
  background: var(--soft-lavender);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--soft-gray);
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.page-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  margin-top: 3rem;
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .site-header { padding: 1.5rem 0; }
  .main-nav ul { gap: 0.75rem 1rem; }
  .section-pad { padding: 3rem 0; }
  .feature-header h2 { font-size: 2rem; }
  .contact-form { padding: 2rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
  .btn { width: 100%; text-align: center; margin-bottom: 0.5rem; }
  .main-nav ul { flex-direction: row; justify-content: flex-start; }
  .main-nav a { padding: 0.5rem 0; font-size: 1rem; width: 50%; }
  /* Ensure navigation wraps nicely as two columns on very small screens, no hidden content */
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-nav { justify-content: center; }
}