/* === CSS RESET & NORMALIZE === */
html, body, div, section, article, aside, header, footer, nav, main, ul, ol, li, h1, h2, h3, h4, h5, h6, p, figure, figcaption, blockquote, pre, a, button, input, textarea, select, form, img, small, strong, span, label {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FAF8F4;
}
body {
  color: #312C54;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAF8F4;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.25em;
}
li {
  margin-bottom: 8px;
}
a {
  color: #be8d2e;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #D8C47C;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  border: none;
  outline: none;
  background: none;
}
::-webkit-input-placeholder { color: #938fa4; }
::-moz-placeholder { color: #938fa4; }
:-ms-input-placeholder { color: #938fa4; }
::placeholder { color: #938fa4; }

/* === BRAND COLORS & FONTS (FALLBACKS) === */
:root {
  --brand-primary: #312C54;
  --brand-secondary: #D8C47C;
  --brand-accent: #F5F2F7;
  --brand-accent2: #FFEEDF;
  --brand-accent3: #F6ECCD;
  --text-dark: #312C54;
  --text-light: #fff;
  --gray: #ede7fd;
  --shadow: 0 4px 18px rgba(49,44,84,0.09), 0 1.5px 8px rgba(49,44,84,0.06);
  --shadow-card: 0 1.5px 10px rgba(216,196,124,0.12);
  --border-radius: 18px;
  --border-radius-sm: 12px;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-display: swap;
  src: local('Cormorant Garamond'), url('https://fonts.googleapis.com/css?family=Cormorant+Garamond:700,500,400&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-display: swap;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
}

/* === TYPOGRAPHY SCALE === */
h1, .h1 {font-family: var(--font-display); font-size: 2.75rem; line-height: 1.08; font-weight: 700; letter-spacing: -1px; margin-bottom: 16px;}
h2, .h2 {font-family: var(--font-display); font-size: 2rem; line-height: 1.16; font-weight: 700; margin-bottom: 16px;}
h3, .h3 {font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; font-weight: 600; margin-bottom: 8px;}
h4, .h4 {font-family: var(--font-display); font-size: 1.16rem; font-weight: 600;}
h5, .h5 {font-family: var(--font-body); font-size: 1rem; font-weight: 500;}
h6, .h6 {font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;}
p, .subtitle, ul, ol, li, blockquote { font-family: var(--font-body); font-size: 1.07rem; }
.subtitle { color: #4b406a; font-size: 1.18rem; margin-bottom: 18px;}
small { font-size: 0.93rem; }
strong { font-weight: 600; color: #584b79; }
blockquote {
  font-family: var(--font-display);
  font-size: 1.19rem;
  color: #a28f5b;
  background: var(--brand-accent3);
  border-left: 5px solid var(--brand-secondary);
  padding: 16px 20px 16px 28px;
  border-radius: var(--border-radius-sm);
  margin: 20px 0 16px 0;
}

/* === GENERAL LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 30px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: 8px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === FLEX UTILITY LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 24px 22px;
  min-width: 225px;
  width: 100%;
  transition: box-shadow .17s, transform .17s;
}
.card:hover {
  box-shadow: 0 8px 26px 2px rgba(216,196,124,0.13);
  transform: translateY(-3px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--brand-accent2);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 10px rgba(49,44,84,0.10);
  max-width: 610px;
}
.testimonial-card p { color: #312C54; font-size: 1.13rem; margin-bottom: 8px; }
.testimonial-card span { color: #7b6a41; font-weight: 600; font-size: 1rem; margin-top: -10px;}

.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff9ef;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 22px 16px 18px 16px;
  min-width: 180px;
  max-width: 290px;
  flex-basis: 240px;
  transition: box-shadow 0.17s, transform .16s;
}
.feature:hover {
  box-shadow: 0 5px 23px 2px rgba(216,196,124,0.15);
  transform: translateY(-2px) scale(1.02);
}
.feature img { width: 36px; height: 36px; margin-bottom: 5px; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HEADER === */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(49,44,84,0.09);
  padding: 0;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 14px 18px 14px 18px;
  min-height: 64px;
}
header img[alt="Celestial Rails"] {
  height: 42px;
  border-radius: 0;
  margin-right: 10px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: #4a354d;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.17s, color 0.14s;
  font-size: 1.04rem;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-accent3);
  color: var(--brand-primary);
}
/* CTA Button in header */
.cta.primary {
  color: #fff;
  background: var(--brand-primary);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 600;
  padding: 10px 24px 11px 24px;
  box-shadow: 0 3px 12px 0 rgba(49,44,84,0.07);
  margin-left: 8px;
  text-shadow: 0 2px 7px #907b3a24;
  transition: background 0.18s, box-shadow .15s, transform .13s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #523e98;
  color: #F5F2F7;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(49,44,84,0.14);
}
.cta.secondary {
  color: var(--brand-primary);
  background: var(--brand-secondary);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 9px 18px;
  box-shadow: 0 2px 9px 0 rgba(216,196,124,.11);
  margin: 7px 0;
  transition: background 0.18s, color .13s, box-shadow .13s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #e3d38d;
  color: #3b254e;
  box-shadow: 0 7px 20px 0 rgba(216,196,124,.30);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 7px 17px 7px 10px;
  display: none;
  border-radius: 10px;
  transition: background 0.16s;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ece7fd;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(49,44,84,0.94);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.42,.95,.52,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 26px;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
  padding: 6px 12px;
  border-radius: 9px;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.13);
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #F5F2F7;
  font-size: 1.25rem;
  font-family: var(--font-display);
  padding: 12px 0;
  border-bottom: 1px solid rgba(248,231,174,0.08);
  width: max-content;
  transition: color 0.16s, text-shadow .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD264;
  text-shadow: 0 2px 9px #be8d2e42;
}
@media (max-width: 991px){
  header .container nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px){
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === HERO, CARDS, SECTIONS === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section .container {
  flex-direction: column;
}
.card, .feature, .testimonial-card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* === FORMS & INPUTS === */
form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
input[type="email"], input[type="text"], textarea {
  padding: 11px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #decda8;
  background: #fffdfa;
  color: #312C54;
  width: 200px;
  font-size: 1rem;
  margin-right: 6px;
  transition: border 0.18s;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  border: 1.8px solid #b1a058;
  outline: none;
  background: #fffbe5;
}
button[type="submit"], .newsletter-signup button {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 1.5px 8px 0 rgba(216,196,124,0.11);
  transition: background 0.14s, color 0.17s, box-shadow .16s;
}
button[type="submit"]:hover, .newsletter-signup button:hover, button[type="submit"]:focus {
  background: #ebdb97;
  color: #2f2b4c;
  box-shadow: 0 8px 16px 0 rgba(216,196,124,0.32);
}

/* === FOOTER === */
footer {
  background: #312C54;
  color: #FFEEDF;
  padding: 32px 0 14px 0;
  margin-top: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1rem;
}
footer nav a {
  color: #FFEEDF;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #D8C47C;
}
footer .social-media-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
footer .social-media-links img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 1.5px 7px 0 rgba(255,255,255,0.21);
  transition: transform 0.13s;
}
footer .social-media-links a:hover img,
footer .social-media-links a:focus img {
  transform: scale(1.15) translateY(-2px);
}
footer .newsletter-signup {
  text-align: center;
  margin-bottom: 20px;
}
footer .newsletter-signup input[type="email"] {
  width: 170px;
  font-size: 0.96rem;
}
footer .copyright {
  text-align: center;
  margin-top: 15px;
  color: #bfa47d;
  font-size: 0.98rem;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffdfa;
  color: #312C54;
  box-shadow: 0 -2.5px 20px 3px #7a6a5533;
  padding: 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2000;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookie-banner-drop .48s cubic-bezier(.23,1.2,.62,1);
}
@keyframes cookie-banner-drop {
  0% { transform: translateY(80%); opacity: 0; }
  97% { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 260px;
  font-size: 1.05rem;
  color: #312C54;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-actions button {
  padding: 7px 18px;
  margin: 0 0 0 5px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.14s, transform .11s;
}
.cookie-actions .accept {
  background: #312C54;
  color: #fff;
  box-shadow: 0 2px 5px 0 rgba(49,44,84,.10);
}
.cookie-actions .accept:hover, .cookie-actions .accept:focus {
  background: #523e98;
}
.cookie-actions .reject {
  background: #fff6e0;
  color: #9f863a;
  border: 1px solid #dac38d;
}
.cookie-actions .reject:hover, .cookie-actions .reject:focus {
  background: #ffe6a4;
  color: #624d13;
}
.cookie-actions .settings {
  background: #D8C47C;
  color: #312C54;
}
.cookie-actions .settings:hover, .cookie-actions .settings:focus {
  background: #e4cc8d;
  color: #2c2541;
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(49,44,84,0.4);
  z-index: 2101;
  display: none;
  opacity: 0;
  transition: opacity .16s;
}
.cookie-modal-backdrop.open {
  display: block;
  opacity: 1;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%) scale(0.94);
  background: #fffdfa;
  color: #312C54;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 38px rgba(48,31,95,0.19);
  padding: 34px 32px 24px 32px;
  z-index: 2102;
  max-width: 390px;
  width: 95vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity .19s, transform .18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.33rem;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 0;
  color: #584b79;
}
.cookie-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #D8C47C;
}
.cookie-option .always-on {
  background: #eadaae;
  color: #9f863a;
  font-size: 0.99rem;
  border-radius: 8px;
  padding: 2px 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  margin-top: 6px;
}
.cookie-modal button {
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 21px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background .16s;
  cursor: pointer;
}
.cookie-modal .secondary {
  background: var(--brand-secondary);
  color: #312C54;
}
.cookie-modal .secondary:hover, .cookie-modal .secondary:focus {
  background: #e6cd71;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #523e98;
}

/* === MISC LAYOUTS & SPACING === */
.excerpt { color: #755b18; font-style: italic; }

/* Hero for Thank You and Main pages */
.content-wrapper {
  align-items: flex-start;
  gap: 13px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width:768px) {
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  header .container {
    padding: 8px 8px 8px 8px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 18px 2px;
  }
  .feature-grid, .features {
    flex-direction: column;
    gap: 14px;
    margin-top:10px;
  }
  .feature, .card {
    min-width: 0;
    max-width: 100vw;
    padding: 15px 11px 12px 11px;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 15px 11px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .newsletter-signup form {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .newsletter-signup input[type="email"] {
    width: 100%;
    font-size: 1.05rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 19px 10px;
    font-size: 1rem;
  }
  .cookie-modal {
    padding: 19px 6px 19px 12px;
    width: 98vw;
    max-width: 380px;
  }
}

/* ====== TRANSITIONS & HOVER EFFECTS ====== */
a, button, input[type="submit"] {
  transition: all 0.15s cubic-bezier(.69,.03,.36,1);
}
a:focus, button:focus, input:focus {
  outline: 2.5px solid #D8C47C;
  outline-offset: 2px;
}
[tabindex]:focus { outline: 2px solid #DECC80; outline-offset: 1px; }

/* ========== SCROLLBAR & SELECTION ========== */
::selection { background: #f6e7bb; color: #312c54; }
::-webkit-scrollbar {
  width: 12px; background: #f6e7bb;
}
::-webkit-scrollbar-thumb {
  background: #d8c47c; border-radius: 12px;
}

/* GLASSY OVERLAY for MODALS (cookie overlay + menu) */
body.modal-open {
  overflow: hidden;
}

/* ======= END OF STYLE ======= */
