/* ---- CSS RESET & NORMALIZATION ---- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #1A2233;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
img, picture {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font: inherit;
  border-radius: 8px;
  outline: none;
  border: 1px solid #E3D6EF;
  background-color: #FFF;
}
button {
  border: none;
  cursor: pointer;
}

/* ---- FONT IMPORT ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFAF7;
  color: #1A2233;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A2233;
  font-weight: 700;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, li, label, input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif;
  color: #201d27;
  font-size: 1rem;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.95rem;
  color: #9d909f;
}

/* ---- BRAND COLORS ---- */
:root {
  --color-primary: #1A2233;
  --color-secondary: #EADFF2;
  --color-accent: #D08AFF;
  --color-bg: #FFFAF7;
  --color-bg-card: #FFFFFF;
  --color-warm-peach: #FFE9CF;
  --color-warm-pink: #F8D7DD;
  --color-warm-lavender: #EADFF2;
  --color-shadow: rgba(208, 138, 255, 0.10);
  --color-text-dark: #1A2233;
  --color-text-body: #3C354A;
  --color-border: #E3D6EF;
}

/* ---- CONTAINER & LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- HEADER, NAVIGATION ---- */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px var(--color-shadow);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.logo img {
  height: 46px;
  border-radius: 8px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  transition: background .18s, color .18s;
}
nav a:hover, .footer-nav a:hover {
  background: var(--color-accent);
  color: #fff;
}
.cta-primary {
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 10px 28px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-left: 10px;
  transition: background .23s, transform .23s, box-shadow .23s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #bb67f5;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px var(--color-shadow);
}
.cta-secondary {
  border: 2px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent) !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 7px 20px;
  transition: background .18s, color .18s, border .18s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-accent);
  color: #fff !important;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-left: 12px;
  transition: background .18s, color .18s, box-shadow .18s;
  z-index: 40;
}
.mobile-menu-toggle:hover {
  background: #bb67f5;
}
.mobile-menu {
  display: none;
}

/* ---- SECTIONS ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:first-of-type {
  margin-top: 16px;
}
section:last-child {
  margin-bottom: 0;
}

/* ---- FLEX CONTAINERS ---- */
.feature-grid, .service-grid, .trend-highlights, .event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.team-intros {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.text-section {
  background: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--color-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  min-width: 220px;
  transition: box-shadow .2s, transform .18s;
}
.text-section:hover {
  box-shadow: 0 6px 30px var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-list li {
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-list li h3 {
  font-size: 1.2rem;
  color: var(--color-accent);
}
.service-list li p {
  color: var(--color-text-body);
}

.event-highlights {
  background: var(--color-secondary);
  padding: 24px 22px;
  border-radius: 13px;
  margin-top: 24px;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.editorial-inspiration {
  background: var(--color-warm-peach);
  padding: 22px 18px;
  border-radius: 13px;
  margin-top: 24px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--color-text-dark);
  transition: box-shadow .18s, transform .13s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px var(--color-shadow);
  transform: translateY(-2px);
}
.testimonial-card strong {
  min-width: 110px;
  color: var(--color-accent);
  font-weight: 700;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #352B4C;
  flex: 1 1 auto;
}

/* ---- CARDS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 28px 22px;
  min-width: 220px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 32px var(--color-shadow);
  transform: scale(1.025);
}

/* ---- FLEX GRID CLASSES ---- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----- FORMS ---- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 3px;
}
input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  padding: 12px 11px;
  border: 1.2px solid #E3D6EF;
  background: #fff;
  border-radius: 10px;
  resize: vertical;
  font-size: 1rem;
  transition: border .13s, box-shadow .17s;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 1px 8px var(--color-shadow);
}
button[type="submit"], form button, .newsletter-signup button {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 10px 26px;
  cursor: pointer;
  border: none;
  transition: background .19s, transform .14s, box-shadow .15s;
  margin-top: 5px;
  box-shadow: 0 2px 12px var(--color-shadow);
}
button[type="submit"]:hover, form button:hover, .newsletter-signup button:hover {
  background: #bb67f5;
  transform: scale(1.04);
  box-shadow: 0 5px 20px var(--color-shadow);
}
.newsletter-signup {
  margin-top: 6px;
}
.newsletter-signup form {
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.newsletter-signup input[type="email"] {
  min-width: 180px;
  border-radius: 999px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-warm-lavender);
  border-top: 1.2px solid var(--color-border);
  margin-top: 64px;
  box-shadow: 0 -1px 8px var(--color-shadow);
  position: relative;
  z-index: 10;
  padding-top: 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1.2px solid var(--color-border);
}
.footer-top a img {
  height: 36px;
  border-radius: 7px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-nav a {
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  opacity: .75;
  transition: color .18s, opacity .18s;
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--color-accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: 0.98rem;
  margin-top: 9px;
  padding-bottom: 18px;
}
.contact-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #654679;
  opacity: .8;
}
.copyright {
  margin-top: 10px;
  color: #716079;
  font-size: 0.91rem;
  width: 100%;
  text-align: center;
}

/* ---- COOKIE CONSENT ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  padding: 22px 16px;
  background: var(--color-warm-peach);
  color: var(--color-text-dark);
  box-shadow: 0 -6px 40px #E0B8C3bb;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .35s cubic-bezier(.86,0,.07,1), opacity .25s;
  gap: 18px;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  text-align: center;
  font-size: 1.03rem;
  color: #472c49;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  margin-top:4px;
}
.cookie-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 22px;
  border: none;
  margin: 0 4px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background .18s, transform .13s;
}
.cookie-btn.secondary {
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #bb67f5;
  color: #fff;
  transform: scale(1.06);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-accent);
  color: #fff;
}

/* ---- COOKIE PREFS MODAL ---- */
.cookie-modal-backdrop {
  display: none; /* default hidden, set to flex when open in JS */
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 22, 53, .29);
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  transition: opacity .27s cubic-bezier(.7,0,.23,1);
}
.cookie-modal-backdrop.visible {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 32px #D08AFF40;
  padding: 32px 22px 22px 22px;
  width: 100%;
  max-width: 410px;
  margin-bottom: 0;
  animation: cookieModalUp .38s cubic-bezier(.77,0,.175,1);
}
@keyframes cookieModalUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-size: 1.35rem;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.07rem;
}
.cookie-category .toggle-switch {
  margin-right: 10px;
}
.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #E3D6EF;
  position: relative;
  transition: background .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch[data-enabled="true"] {
  background: var(--color-accent);
}
.toggle-switch:before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #bb67f544;
  transition: left .18s cubic-bezier(.59,.03,.47,1);
}
.toggle-switch[data-enabled="true"]:before {
  left: 21px;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-category .always-on {
  font-size: 0.98rem;
  color: #9a8ba9;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 960px) {
  .container {
    max-width: 92vw;
    padding: 0 14px;
  }
  .feature-grid, .trend-highlights, .service-grid, .event-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  section {
    padding: 32px 5px;
  }
  .feature-grid, .trend-highlights, .service-grid, .event-list {
    flex-direction: column;
    gap: 15px;
  }
  .team-intros {
    flex-direction: column;
    gap: 13px;
  }
  .newsletter-signup form {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .card,
  .text-section {
    padding: 18px 9px;
  }
}

/* ---- MOBILE NAVIGATION ---- */
@media (max-width: 980px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .36s cubic-bezier(.76,0,.25,1);
    z-index: 80;
    box-shadow: 0 10px 40px #cabbe0a2;
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    font-size: 2.3rem;
    color: var(--color-accent);
    background: none;
    border: none;
    margin: 20px 22px 0 0;
    align-self: flex-end;
    z-index: 100;
    cursor: pointer;
    transition: color .17s;
  }
  .mobile-menu-close:hover {
    color: #af58e2;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px 34px 16px 34px;
    width: 100%;
    min-width: 220px;
  }
  .mobile-nav a {
    color: var(--color-primary);
    background: var(--color-warm-lavender);
    border-radius: 11px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.13rem;
    padding: 12px 6px 12px 20px;
    margin-right: 14px;
    margin-left: 2px;
    transition: background .2s, color .2s;
  }
  .mobile-nav a:hover {
    background: var(--color-accent);
    color: #fff;
  }
}

/* ---- UTILITIES & MICRO-INTERACTIONS ---- */
::-webkit-scrollbar {
  width: 11px;
  background: var(--color-bg);
  border-radius: 17px;
}
::-webkit-scrollbar-thumb {
  background: #EADFF2;
  border-radius: 17px;
}
::-webkit-input-placeholder { color:#b6a5cd; }
::-moz-placeholder { color:#b6a5cd; }
:-ms-input-placeholder { color:#b6a5cd; }
::placeholder { color:#b6a5cd; }

hr {
  border: none;
  border-bottom: 1.5px solid #ECE4F0;
  margin: 25px 0;
}

/* Smooth section fade-in (optional micro-animation) */
section, .card, .text-section, .feature, .testimonial-card {
  opacity: 0;
  animation: fadeInUp .7s cubic-bezier(.55,0,.15,1) forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0; transform: translateY(30px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}

/* Remove fadeIn animation for first paint for performance (only demo: JS can add classes for fade-in) */
section:first-of-type, .container:first-of-type { opacity:1; animation:none; }

/* ---- SPACING & GAP --- (CRITICAL REQUIREMENT) ---- */
.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;
}

/* ---- MISC ---- */
.feature img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--color-warm-lavender);
  box-shadow: 0 2px 10px var(--color-shadow);
}
.feature h3 {
  font-size: 1.13rem;
  margin-bottom: 5px;
  color: var(--color-accent);
}
.feature p {
  color: var(--color-text-body);
}

/* Make lists look friendly */
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 14px;
  color: #604577;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Helper: visually-hidden for a11y if needed */
.visually-hidden {
  border: 0!important;
  clip: rect(0 0 0 0)!important;
  height: 1px!important;
  margin: -1px!important;
  overflow: hidden!important;
  padding: 0!important;
  position: absolute!important;
  width: 1px!important;
}
