/* ========== CSS RESET & NORMALIZE ========== */
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, menu, 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, 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.62;
  font-family: 'Roboto', Georgia, serif;
  font-size: 16px;
  color: #2E1D3F;
  background-color: #F8F6F2;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #755A88;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2E1D3F;
  outline: none;
}

/* ========== BRAND COLORS AND TYPOGRAPHY ========== */
:root {
  --color-primary: #2E1D3F;
  --color-secondary: #755A88;
  --color-accent: #F2E8FC;
  --color-bg: #F8F6F2;
  --color-heading: #2E1D3F;
  --color-text: #453358;
  --color-muted: #D8D3DD;
  --color-white: #fff;
  --color-shadow: rgba(46, 29, 63, 0.07);
  --border-radius: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Roboto', serif;
  --transition: 0.3s cubic-bezier(.45,.05,.55,.95);
}

/* ========== TYPOGRAPHY SCALE & HEADINGS ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.17;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}
h5, h6 {
  font-size: 1rem;
}
p, ul, ol, blockquote, table, details {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.58;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-left: 5px solid var(--color-secondary);
  padding: 18px 28px 18px 23px;
  margin: 14px 0 14px;
  border-radius: var(--border-radius);
}
blockquote footer {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-style: italic;
  margin-top: 8px;
}

/* ========== GENERAL LAYOUT CONTAINERS ========== */
.container {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* ========== SECTION SPACING ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:last-child {
  margin-bottom: 0;
}

/* ========== FLEXBOX PATTERNS ========== */
.feature-grid, .services-summary ul, .footer-links, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid {
  gap: 32px;
  margin-bottom: 18px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: var(--border-radius);
  padding: 26px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(46,29,63,.13);
  transform: translateY(-3px) scale(1.015);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  max-width: 720px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(117,90,136,0.10);
}
.services-summary ul {
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: var(--border-radius);
  padding: 24px 20px 22px 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(117,90,136,0.11);
  transform: translateY(-2px) scale(1.01);
}
.footer-links {
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.social-media-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

/* ========== BUTTONS & CTAs ========== */
.cta,
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 32px;
  border: none;
  border-radius: 40px;
  background: var(--color-secondary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s;
  outline: none;
  text-align: center;
  text-decoration: none;
  margin-top: 16px;
}
.cta.primary, .cta.primary:visited {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 6px 22px rgba(46,29,63,0.17);
  transform: translateY(-1px) scale(1.018);
}
.cta:not(.primary):hover, .cta:not(.primary):focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(117,90,136,0.13);
  transform: translateY(-1px) scale(1.01);
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* ======= NAVIGATION ======= */
header {
  background: var(--color-white);
  border-bottom: 1.5px solid var(--color-muted);
  width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.07rem;
  color: var(--color-primary);
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
header a.cta {
  margin: 0;
  margin-left: 12px;
  font-size: 1.03rem;
  padding: 10px 28px;
}
header img[alt="Phantasm Veil"] {
  height: 46px;
  min-width: 120px;
}

/* ===== MOBILE NAVIGATION BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 18px;
  z-index: 110;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: 36px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(46,29,63,0.08);
  transition: background var(--transition);
}
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 90vw;
  background: var(--color-white);
  box-shadow: -6px 0 24px rgba(46,29,63,.17);
  z-index: 120;
  transform: translateX(110%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.55,.07,.61,.96),opacity 0.22s;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 18px 20px 8px auto;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  align-self: flex-end;
  transition: color var(--transition);
}
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  padding-left: 28px;
  padding-bottom: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.21rem;
  color: var(--color-primary);
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 0 2px 0;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-accent);
}

@media (max-width: 1020px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .footer-links, .social-media-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 850px) {
  header nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  section {
    padding: 32px 4px;
    margin-bottom: 36px;
  }
  header .container {
    min-height: 68px;
    padding-bottom: 6px;
    padding-top: 6px;
    gap: 12px;
  }
  header nav {
    display: none;
  }
  header a.cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-links, .social-media-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item {
    min-width: 0;
    max-width: none;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
  }
  .card-container, .content-grid, .services-summary ul {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  html {font-size: 15px;}
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.17rem;}
  .testimonial-card, .feature-item, .card {
    padding: 13px 8px;
  }
}

/* ============== FOOTER ============== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  padding: 38px 0 22px 0;
  font-family: var(--font-display);
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-links a {
  color: var(--color-accent);
  font-size: 1rem;
  text-decoration: underline;
  margin-right: 8px;
  transition: color var(--transition);
  font-weight: 400;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-secondary);
}
.privacy-note {
  font-size: .95rem;
  margin-top: 5px;
  color: #E5D6F6;
  letter-spacing: 0.012em;
}
.social-media-links img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f0fa;
  transition: box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(46,29,63,0.06);
  padding: 3px;
}
.social-media-links img:hover {
  box-shadow: 0 4px 14px rgba(117,90,136,0.16);
  background: var(--color-accent);
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 9px;
  overflow: hidden;
  font-size: 1.01rem;
}
thead tr {
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-display);
}
th, td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-muted);
}
th {
  text-align: left;
  font-weight: 600;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #f7f3fa;
  transition: background 0.17s;
}

/* ========== DETAILS & SUMMARY FAQ ========== */
details {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  margin-bottom: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: box-shadow var(--transition);
  padding: 0 0 0 0;
}
details[open] {
  box-shadow: 0 7px 18px rgba(46,29,63,.11);
}
details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 14px 20px;
  outline: none;
  border-radius: var(--border-radius);  
  user-select: none;
  transition: background var(--transition);
}
details[open] summary {
  background: var(--color-muted);
}
details div {
  padding: 0 20px 14px 20px;
  font-size: .97rem;
}

/* ========== CONTACT CALL TO ACTION ========== */
.contact-cta {
  padding: 17px 24px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  margin-top: 22px;
  text-align: center;
}
.contact-cta a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition);
}
.contact-cta a:hover, .contact-cta a:focus {
  color: var(--color-primary);
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 20px 16px;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 12px var(--color-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  gap: 28px;
  flex-wrap: wrap;
  transition: transform 0.36s cubic-bezier(.55,.07,.61,.96), opacity 0.21s;
  opacity: 1;
  transform: translateY(0%);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 28px;
  background: var(--color-secondary);
  border: none;
  color: var(--color-white);
  margin: 0 2px;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  font-weight: 500;
}
.cookie-banner .cookie-accept {
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: bold;
  border: 1.5px solid var(--color-primary);
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-banner .cookie-reject {
  background: #DFD4EB;
  color: var(--color-primary);
  border: 1.5px solid var(--color-muted);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10000;
  background: rgba(46, 29, 63, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(.55,.07,.61,.96);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-inner {
  background: var(--color-white);
  padding: 38px 36px 28px 36px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 36px rgba(46,29,63,0.16);
  max-width: 430px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.45rem;
  color: var(--color-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-primary);
}
.cookie-modal h3 {
  font-size: 1.19rem;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  margin-top: 2.2px;
}
.cookie-category span.info {
  color: var(--color-text);
  font-size: 0.98rem;
  opacity: 0.82;
}
.cookie-category input[disabled] {
  accent-color: var(--color-primary);
}
.cookie-modal .cookie-modal-apply {
  margin-top: 17px;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 10px 22px;
  border-radius: 28px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cookie-modal-apply:hover, .cookie-modal .cookie-modal-apply:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

@media (max-width: 550px) {
  .cookie-modal .cookie-modal-inner {
    padding: 18px 6vw 13px 6vw;
    max-width: 99vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 5vw 14px 5vw;
  }
}

/* ========== UTILITY CLASSES & ANIMATIONS ========== */
.rounded {
  border-radius: var(--border-radius);
}
.shadow {
  box-shadow: 0 2px 10px var(--color-shadow);
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--color-muted);
  opacity: 0.72;
}
.fade-in {
  animation: fadein .7s cubic-bezier(.55,.07,.61,.96);
}
@keyframes fadein {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== MISC / REFINEMENTS ========== */
::-webkit-input-placeholder { color: #8e75a1; opacity:1;}
::-moz-placeholder           { color: #8e75a1; opacity:1;}
:-ms-input-placeholder       { color: #8e75a1; opacity:1;}
::placeholder               { color: #8e75a1; opacity:1;}


td, th { font-family: var(--font-body); }
thead th { font-family: var(--font-display); }

tbody td {
  color: var(--color-primary);
}
form, input, textarea, select, button {
  font-family: var(--font-body);
}

/* Ensure adequate spacing for all content blocks and cards */
.section, section, .card, .feature-item, .testimonial-card, .content-wrapper {
  margin-bottom: 20px !important;
}

/* Prevent content overlap and ensure visual separation */
.card + .card, .feature-item + .feature-item, .testimonial-card + .testimonial-card, .section + .section, section + section {
  margin-top: 20px;
}

/* Hide elements for accessibility where needed */
.sr-only {
  position:absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
