/* RESET, NORMALIZE & BASE STYLES */
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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2EEE3;
  color: #223153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  font-weight: 400;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #223153;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B3A178;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
blockquote {
  font-style: italic;
  margin: 0 0 1rem 0;
  color: #223153;
  opacity: 0.85;
}
strong, b {
  font-weight: 600;
}
/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #223153;
  margin-bottom: 16px;
  line-height: 1.16;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, table, blockquote, cite {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
cite {
  font-style: normal;
  font-size: 0.95rem;
  color: #223153;
  opacity: 0.7;
  margin-left: 8px;
}
hr {
  border: none;
  border-top: 1px solid #e1e3e7;
  margin: 32px 0;
}

/* LAYOUT SUPPORT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34, 49, 83, 0.06);
}
.text-section {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 24px 0;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* FLEXBOX GRIDS FOR FEATURES & CARDS */
.feature-grid, .service-cards, .zodiac-grid, .zodiac-pairings-grid, .lunar-calendar-widget > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #F7F9FB;
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(34,49,83,0.04);
  padding: 22px 18px;
  min-width: 230px;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.feature-item:hover {
  box-shadow: 0 4px 18px 0 rgba(179,161,120,0.08), 0 1.5px 8px 0 rgba(34,49,83,0.10);
}
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(34,49,83,0.07);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 220px;
  min-height: 180px;
  border: 1px solid #E6E9EF;
  transition: box-shadow 0.2s, border 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 18px 0 rgba(34,49,83,0.14), 0 1.5px 8px 0 rgba(179,161,120,0.08);
  border: 1px solid #B3A178;
}
.zodiac-grid > div, .zodiac-pairings-grid > div {
  background: #fff;
  padding: 18px 12px;
  border-radius: 10px;
  border: 1px solid #E6E9EF;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 134px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px 0 rgba(34,49,83,0.05);
  cursor: pointer;
  transition: border 0.18s, box-shadow 0.22s;
}
.zodiac-grid > div:hover, .zodiac-pairings-grid > div:hover {
  border: 1.3px solid #B3A178;
  box-shadow: 0 6px 16px 0 rgba(34,49,83,0.11);
}
.lunar-calendar-widget ul {
  margin-bottom: 0;
}
.lunar-calendar-widget li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F7F9FB;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 5px 0 rgba(34,49,83,0.07);
}

/* CARD CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 2px 8px 0 rgba(34,49,83,0.09);
  margin-bottom: 20px;
  padding: 24px 18px;
  position: relative;
  min-width: 220px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F7F9FB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(34,49,83,0.06);
  border-left: 4px solid #223153;
  max-width: 500px;
  color: #223153;
}
.testimonial-card blockquote {
  font-size: 1.04rem;
  color: #223153;
  margin: 0 0 8px 0;
  line-height: 1.45;
}
.testimonial-card cite {
  color: #223153;
  opacity: 0.63;
  font-size: 0.97rem;
}

/* CONTACT */
.contact-details {
  background: #F7F9FB;
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 1px 5px 0 rgba(34,49,83,0.09);
  margin-bottom: 18px;
}
.contact-details a {
  color: #223153;
  text-decoration: underline;
}
.contact-details a:hover {
  color: #B3A178;
}

/* HERO SECTIONS */
.hero {
  background: #223153;
  color: #fff;
  padding: 60px 0 50px 0;
  margin-bottom: 60px;
  position: relative;
}
.hero h1, .hero h2, .hero h3, .hero h4 {
  color: #fff;
}
.hero p {
  color: #f2eee3;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.hero .button-primary {
  background: #B3A178;
  color: #223153;
}

/* BUTTONS STYLES */
.button-primary, .button-secondary, button, input[type="submit"] {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  margin-top: 4px;
  background: #223153;
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(34,49,83,0.10);
  transition: background 0.16s, color 0.14s, box-shadow 0.2s, border 0.16s;
}
.button-primary {
  background: #223153;
  color: #fff;
  border: 1.5px solid #B3A178;
}
.button-primary:hover, .button-primary:focus {
  background: #B3A178;
  color: #223153;
  box-shadow: 0 4px 16px 0 rgba(179,161,120,0.19);
  border: 1.5px solid #223153;
}
.button-secondary {
  background: #fff;
  color: #223153;
  border: 1.5px solid #B3A178;
}
.button-secondary:hover, .button-secondary:focus {
  background: #F2EEE3;
  color: #B3A178;
  border: 1.5px solid #223153;
}
/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 18px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 rgba(34,49,83,0.09);
}
thead {
  background: #B3A178;
  color: #223153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
thead th {
  padding: 12px;
  font-weight: 700;
  text-align: left;
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid #E6E9EF;
}
tbody tr:last-child td {
  border-bottom: none;
}
table caption {
  caption-side: top;
  padding-bottom: 8px;
  font-weight: 500;
  font-size: 1rem;
}

/* NAVIGATION */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(34,49,83,0.07);
  position: relative;
  z-index: 20;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  justify-content: flex-start;
  padding: 0 16px;
}
nav .logo {
  margin-right: 22px;
  display: flex;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #223153;
  font-size: 1rem;
  letter-spacing: 0.015em;
  padding: 7px 10px;
  transition: color 0.2s, background 0.18s, border-radius 0.16s;
  border-radius: 15px;
}
nav a.button-primary {
  margin-left: 14px;
}
nav a:hover, nav a:focus {
  background: #F7F9FB;
  color: #B3A178;
  border-radius: 15px;
}

/* FOOTER */
footer {
  width: 100%;
  background: #223153;
  color: #fff;
  padding: 30px 0 0 0;
  position: relative;
  z-index: 9;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 24px 0;
}
footer .footer-menu {
  display: flex;
  gap: 10px;
}
footer .footer-menu a {
  color: #F2EEE3;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.012em;
  font-weight: 500;
  opacity: 0.93;
  transition: color 0.2s;
}
footer .footer-menu a:hover, footer .footer-menu a:focus {
  color: #B3A178;
}
footer .brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
footer .brand-info p {
  color: #F2EEE3;
  font-size: 0.95rem;
  opacity: 0.81;
}
footer img {
  width: 38px;
  height: auto;
  margin-bottom: 3px;
}

/* RESPONSIVE: MOBILE NAV & SITE */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #223153;
  font-size: 2rem;
  margin-left: auto;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7F9FB;
  outline: 2px solid #B3A178;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34, 49, 83, 0.93);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.55,.06,.63,.99);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  box-shadow: 0 2px 32px 0 rgba(34,49,83,0.17);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  right: 24px;
  top: 16px;
  z-index: 10001;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #B3A178;
  color: #223153;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 50px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F2EEE3;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 18px 0;
  width: 85vw;
  text-align: center;
  border-radius: 16px;
  transition: background 0.16s, color 0.14s;
  box-shadow: 0 1px 6px 0 rgba(179,161,120,0.04);
  letter-spacing: 0.027em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B3A178;
  color: #223153;
}
@media (max-width: 1000px) {
  nav {
    gap: 7px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 6px;
  }
  footer .brand-info {
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 7vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .feature-grid, .service-cards, .zodiac-grid, .zodiac-pairings-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section, .hero {
    padding: 32px 3vw;
  }
  .container {
    padding: 0 3vw;
  }
  .content-wrapper {
    gap: 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .feature-item, .service-card, .contact-details {
    min-width: unset;
    padding: 14px 10px;
  }
  .testimonial-card {
    padding: 14px 10px;
    min-width: unset;
    max-width: unset;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 0 7px;
  }
  .section, .hero {
    padding: 24px 4px;
  }
  .feature-item, .service-card, .contact-details {
    padding: 9px 3px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #223153;
  color: #fff;
  z-index: 20000;
  box-shadow: 0 -2px 18px 0 rgba(34,49,83,0.18);
  padding: 20px 20px 28px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: transform 0.34s;
}
.cookie-consent-banner.hide {
  transform: translateY(130%);
}
.cookie-consent-banner p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-consent-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}
.cookie-consent-banner button {
  font-size: 0.99rem;
  padding: 9px 27px;
  border-radius: 20px;
  font-weight: 700;
  margin: 0;
}
.cookie-consent-banner .accept {
  background: #B3A178;
  color: #223153;
}
.cookie-consent-banner .accept:hover {
  background: #fff;
  color: #B3A178;
}
.cookie-consent-banner .settings {
  background: #fff;
  color: #223153;
  border: 1.2px solid #B3A178;
}
.cookie-consent-banner .settings:hover {
  background: #B3A178;
  color: #fff;
}
.cookie-consent-banner .reject {
  background: none;
  border: 1.3px solid #B3A178;
  color: #B3A178;
}
.cookie-consent-banner .reject:hover {
  background: #B3A178;
  color: #223153;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px 22px 8px;
    gap: 13px;
  }
  .cookie-consent-buttons {
    margin-left: 0;
    gap: 7px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  background: rgba(34,49,83,0.74);
  z-index: 30000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 64px 0 rgba(34,49,83,0.25);
  padding: 32px 18px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #223153;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 8px;
  font-size: 1.37rem;
  font-family: 'Cormorant Garamond', serif;
  color: #223153;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #B3A178;
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #223153;
}
.cookie-modal .essential {
  opacity: 0.58;
  pointer-events: none;
}
.cookie-modal .settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .close {
  background: none;
  border: none;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: #223153;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: #F2EEE3;
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.button-primary, .button-secondary, .service-card, .feature-item, .card, .testimonial-card, .mobile-nav a, .zodiac-grid > div, .zodiac-pairings-grid > div, .cookie-consent-banner button, .cookie-modal {
  transition: box-shadow 0.2s, background 0.18s, color 0.16s, border 0.15s, transform 0.19s;
}
.button-primary:active, .button-secondary:active {
  transform: scale(0.96);
}
.service-card:active, .feature-item:active, .card:active {
  transform: scale(0.98);
}

/* GENERAL FORM ELEMENTS */
input, select, textarea {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid #E6E9EF;
  color: #223153;
  background: #F7F9FB;
  margin-bottom: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.17s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border: 1.2px solid #B3A178;
  outline: none;
  box-shadow: 0 1px 5px 0 rgba(179,161,120,0.08);
}
label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
  color: #223153;
}

/* SPACING & UTILITIES */
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-40 { padding-top: 40px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }

/* HIDE CLASSES FOR JS INTERACTIONS */
.hide { display: none !important; }

/* ACCESSIBILITY: FOCUS STATES */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #B3A178;
  outline-offset: 2px;
}

/* PRINT */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
}

section {
  padding: 20px 0;
}