/* =========================
   Celestial Compass Style CSS
   Geometric_Structured Theme
========================= */

/* --- CSS Reset & Base --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #223151;
  background: #f9fafc;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
a {
  color: #8764c4;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #223151;
}
ul, ol {
  margin-left: 1.3em;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: #223151;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.375rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.375rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

p, li, blockquote, span {
  font-size: 1rem; line-height: 1.7; color: #223151;
}
p { margin-bottom: 16px; }
blockquote {
  font-style: italic;
  color: #223151;
  border-left: 4px solid #8764c4;
  padding-left: 15px;
  margin-bottom: 10px;
}

strong { font-weight: bold; }

/* ----------------------
   Layout Containers
---------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Sections */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section,
.sample-reading-preview,
.sample-compatibility-results {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(34,49,81,0.07);
  margin-bottom: 18px;
}

/* FLEX LAYOUTS */
.card-container, .feature-grid, .service-grid, .team-section,
.card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(34,49,81,0.13);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}
/* Card & Feature/Service alignment */
.feature-grid, .service-grid {
  justify-content: flex-start;
  gap: 24px;
}
.feature-item, .service-item, .team-member {
  background: #f8f6fe;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 8px rgba(135,100,196,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 240px;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f7e5bb;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(34,49,81,0.09);
  transition: box-shadow 0.22s, outline 0.22s;
  border: 1.5px solid #ead89e;
  position: relative;
}
.testimonial-card blockquote {
  color: #223151;
}
.testimonial-card span {
  font-style: normal; color: #223151; font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(135,100,196,0.12);
  outline: 2px solid #8764c4;
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 6px rgba(135,100,196,0.10);
}

@media (max-width: 900px) {
  .feature-grid, .service-grid, .team-section, .card-container, .content-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-grid, .team-section, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card, .feature-item, .service-item {
    min-width: unset; max-width: unset;
  }
}

/* ---- CTA Buttons ---- */
.cta-btn {
  color: #223151;
  background: #f7e5bb;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 34px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(135,100,196,0.14);
  cursor: pointer;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 0.15s, color 0.15s, box-shadow 0.17s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8764c4;
  color: #fff;
  box-shadow: 0 5px 24px rgba(34,49,81,0.16);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* ---- Header & Nav ---- */
header {
  background: #223151;
  box-shadow: 0 2px 12px rgba(34,49,81,0.08);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
header img {
  height: 44px; width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.main-nav a {
  color: #f7e5bb;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.96rem;
  position: relative;
  padding: 8px 10px;
  border-radius: 22px;
  transition: background 0.13s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #8764c4;
  color: #fff;
}
.header-inner .cta-btn {
  margin: 0;
  margin-left: 16px;
  background: #8764c4;
  color: #fff;
}
.header-inner .cta-btn:hover { background: #f7e5bb; color: #223151; }

.mobile-menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 2rem; color: #f7e5bb;
  margin-left: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 14px;
  transition: background 0.14s, color 0.13s;
  z-index: 33;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #8764c4;
  color: #fff;
  outline: none;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 10px;
  }
  .header-inner {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 4px;
  }
  .header-inner img {
    height: 32px;
  }
}
@media (max-width: 768px) {
  .main-nav, .header-inner .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-inner {
    padding: 10px 0;
  }
}

/* ---- Hero ---- */
.hero {
  background: #fff; /* Clean neutral for content contrast */
  background-image: linear-gradient(120deg,#f8f6fe 0 40%,#fff 90%);
  border-bottom: 3px solid #f7e5bb;
  min-height: 340px;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 60px;
  padding: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 250px;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .hero {
    min-height: 180px; padding-top: 20px;
    margin-bottom: 34px;
  }
  .hero .container {
    min-height: 120px;
  }
}

/* ---- Footer ---- */
footer {
  padding: 36px 0 16px 0;
  background: #223151;
  color: #f7e5bb;
  width: 100%;
  margin-top: 42px;
}
.footer-links {
  margin-bottom: 14px;
  text-align: center;
}
.footer-links a {
  color: #f7e5bb;
  font-weight: 400;
  transition: color 0.13s;
  margin: 0 2px;
}
.footer-links a:hover, .footer-links a:focus {
  color: #8764c4;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 18px;
  font-size: 0.96rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand {
  margin-top: 12px; text-align: center;
}
.footer-brand img { height: 44px; margin: 0 auto 6px; }
.footer-brand p { font-size: 1rem; color: #ead89e; }
@media (max-width: 600px) {
  .footer-contact {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
}

/* ---- TEAM Section ---- */
.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(135,100,196,0.09);
  padding: 22px 20px;
  flex: 1 1 210px;
  min-width: 170px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* ---- Gratitude Message + Preview Boxes ---- */
.gratitude-message, .sample-reading-preview, .sample-compatibility-results {
  background: #fff8e1;
  border-left: 6px solid #8764c4;
  border-radius: 10px;
  padding: 18px 16px;
  margin: 24px 0 0 0;
  font-size: 1.05rem;
  color: #223151;
}

/* ---- Page Specific/Shared ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #223151;
  color: #f7e5bb;
  box-shadow: 0 -4px 18px rgba(34,49,81,0.13);
  z-index: 1200;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  gap: 16px;
  font-size: 1rem;
  animation: bannerSlideIn 0.6s cubic-bezier(.68,-0.55,.27,1.55);
}

.cookie-banner span {
  color: white;
}
footer span {
  color: white;
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  70% { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn, 
.cookie-banner .cookie-settings-btn {
  margin-left: 10px;
  background: #f7e5bb;
  color: #223151;
  border: none;
  border-radius: 22px;
  padding: 8px 20px;
  font-weight: bold;
  letter-spacing: 0.04em;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, transform 0.1s;
}
.cookie-banner .cookie-btn:hover, 
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #8764c4;
  color: #fff;
  outline: none;
}
@media (max-width:600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---- Cookie Modal ---- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1400;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,49,81,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background: #fff;
  color: #223151;
  padding: 38px 30px 25px 30px;
  border-radius: 16px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 6px 48px rgba(34,49,81,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none; border: none;
  color: #8764c4;
  font-size: 2rem;
  cursor: pointer; border-radius: 8px;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #f7e5bb;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-weight: 600;
  margin-left: 6px;
}
.cookie-category input[type='checkbox'] {
  accent-color: #8764c4;
  width: 20px; height: 20px;
}
.cookie-category .description {
  font-size: 0.97rem; color: #4B506A; margin-left: 8px;
}
.cookie-modal .cookie-btn {
  background: #8764c4;
  color: #fff;
  border: none; border-radius: 16px;
  padding: 9px 28px;
  font-weight: bold;
  margin-top: 8px;
  font-size: 1rem;
  transition: background 0.17s, color 0.13s, transform 0.1s;
}
.cookie-modal .cookie-btn:hover,
.cookie-modal .cookie-btn:focus {
  background: #223151; color: #f7e5bb; outline: none;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 100vw;
  background: #223151;
  color: #f7e5bb;
  z-index: 1250;
  transform: translateX(-110vw);
  transition: transform 0.44s cubic-bezier(.64,.01,.19,1.44);
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 32px;
  box-shadow: 8px 0 38px rgba(34,49,81,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none; border: none;
  color: #f7e5bb;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 9px;
  z-index: 2;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8764c4;
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 38px;
  padding: 0 28px;
}
.mobile-nav a {
  color: #f7e5bb;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.14rem;
  padding: 12px 10px;
  border-radius: 20px;
  background: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #8764c4;
  color: #fff;
  outline: none;
}
@media (max-width: 768px) {
  .mobile-menu {display: flex;}
}

/* ---- Animations ---- */
.cta-btn, .main-nav a, .mobile-nav a, .cookie-banner .cookie-btn, .feature-item, .service-item, .testimonial-card {
  transition-property: background, color, box-shadow, transform, filter;
  transition-duration: 0.15s, 0.13s, 0.17s, 0.17s, 0.13s;
  transition-timing-function: cubic-bezier(.63,-0.08,.36,1.17);
}

/* ---- Misc Utilities ---- */
@media (max-width:480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  .section { padding: 22px 7px; margin-bottom: 38px; }
}

/* Geometric & Structured Visual Motifs */
.feature-item, .service-item, .team-member, .card {
  border: 2.5px solid #8764c4;
  border-bottom: 3.5px solid #223151;
  border-radius: 14px 30px 14px 30px;
  box-shadow: 0 2px 22px 0 rgba(34, 49, 81, 0.06);
  background-clip: padding-box;
  /* subtle diamond background overlay using polygons/geometric shape */
  position: relative;
  overflow: hidden;
}
.feature-item::before, .service-item::before, .team-member::before, .card::before {
  content: "";
  position: absolute;
  right: -41px;
  top: -25px;
  width: 110px; height: 110px;
  background: rgba(135,100,196,0.09);
  clip-path: polygon(50% 0, 100% 40%, 80% 100%, 20% 100%, 0 40%);
  z-index: 0;
}
.feature-item > *, .service-item > *, .team-member > *, .card > * {
  position: relative;
  z-index: 1;
}

/* Geometric angular font for headings */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-variation-settings: "wght" 700;
  font-feature-settings: "ss04", "ss05"; /* stylistic sets add crispness */
  letter-spacing: 0.035em;
}

/* --- End --- */
