/* ---------------------------------------------
   Hazy Wander Studio - Minimalist Style CSS
   Brand Colors: #1B223D (primary), #D5AB55 (secondary), #F3F3F7 (accent)
   Fonts: Merriweather (Display), Open Sans (Body)
   All layouts: ONLY flexbox, NO CSS Grid/Columns!
--------------------------------------------- */
/* Reset & Normalize */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #232636;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
ul,ol { padding-left: 1.2em; }
a { color: #1B223D; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #D5AB55; }
button { font-family: inherit; font-size: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #D5AB55; outline-offset: 2px; }

/* Typography Scale */
h1, .h1 { font-family: 'Merriweather', serif; font-size: 2.75rem; font-weight: 700; margin-bottom: 20px; color: #1B223D; }
h2, .h2 { font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 600; margin-bottom: 16px; color: #232636; }
h3, .h3 { font-family: 'Merriweather', serif; font-size: 1.35rem; font-weight: 500; margin-bottom: 12px; color: #454760; }
h4, .h4 { font-size: 1.13rem; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 16px; color: #232636; }
ul, ol { margin-bottom: 16px; }
strong { color: #1B223D; font-weight: 600; }

/* Main Containers & Spacing */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}

/* Flex Patterns */
.card-container {display: flex; flex-wrap: wrap; gap: 24px;}
.card {margin-bottom: 20px; position: relative; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px 0 rgba(33,35,47,0.05); transition: box-shadow 0.2s; padding: 28px 24px;}
.card:hover, .card:focus-within { box-shadow: 0 4px 20px 0 rgba(33,35,47,0.11); }
.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; padding: 20px; background: #F3F3F7; border-radius: 12px; box-shadow: 0 2px 12px rgba(33,35,47,0.05); margin-bottom: 20px; transition: box-shadow 0.2s;}
.testimonial-card:hover, .testimonial-card:focus-within {box-shadow: 0 4px 20px rgba(33,35,47,0.09);}
.feature-item {display: flex; flex-direction: column; align-items: flex-start; gap: 15px;}

/* Ensuring 20px + between all cards and sections */
section, .section, .card, .testimonial-card { margin-bottom: 24px; }

/* HERO SECTION */
.hero {
  background: #F3F3F7;
  padding: 56px 0 56px 0;
  display: flex;
  align-items: center;
  min-height: 350px;
}
.hero .content-wrapper { align-items: flex-start; justify-content: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 14px; }
.hero p { font-size: 1.18rem; margin-bottom: 28px; color: #232636; }

/* Main Navigation */
header { background: #fff; border-bottom: 1px solid #f1f1f1; position: relative; z-index: 800; }
header > .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.main-nav { display: flex; flex-direction: row; gap: 28px; }
.main-nav a { font-weight: 500; padding: 8px 0; letter-spacing: 0.02em; color: #1B223D; transition: color 0.17s; position: relative; }
.main-nav a:after { content: ""; display: block; height: 2px; width: 0; background: #D5AB55; transition: width 0.2s; position: absolute; bottom: 0; left: 0; }
.main-nav a:hover:after, .main-nav a:focus:after { width: 100%; }
.main-nav a:hover, .main-nav a:focus { color: #D5AB55; }
.button.primary {
  background: #1B223D;
  color: #fff;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(27,34,61,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  display: inline-block;
}
.button.primary:hover, .button.primary:focus {
  background: #D5AB55;
  color: #1B223D;
  box-shadow: 0 6px 20px 0 rgba(213,171,85,0.15);
}

/* Hamburger menu (mobile) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #1B223D;
  background: none;
  border: none;
  margin-left: 14px;
  z-index: 1101;
  transition: background 0.2s;
  height: 44px; width: 44px;
}
.mobile-menu-toggle:focus {
  background: rgba(213,171,85,0.08);
  border-radius: 8px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.67,0.04,0.19,0.99);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 32px 0 32px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  box-shadow: -6px 0 32px rgba(27,34,61,0.18);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #1B223D;
  margin-bottom: 28px;
  border-radius: 8px;
  transition: background 0.2s;
  height: 44px; width: 44px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(213,171,85,0.08);
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #1B223D;
  padding: 16px 0;
  border-bottom: 1px solid #F3F3F7;
  width: 100%;
  transition: color 0.2s;
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus { color: #D5AB55; }

/* Responsive Navigation */
@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 940px) {
  .main-nav { gap: 10px; font-size: 0.97rem; }
  .button.primary { padding: 10px 20px; font-size: 0.97rem; }
}
@media (max-width: 820px) {
  .container { padding: 0 12px; }
  .main-nav { display: none; }
  .button.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Footer */
footer {
  background: #F3F3F7;
  padding: 42px 0 0 0;
  border-top: 1px solid #ececec;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 36px;
}
.footer-columns > div {
  min-width: 220px;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-menu {
  display: flex;
  flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.footer-menu a {
  color: #232636;
  font-size: 1rem;
  padding: 2px 0;
  opacity: 0.8;
  transition: color 0.18s, opacity 0.18s;
}
.footer-menu a:hover { color: #D5AB55; opacity: 1; }

/* Sections: General spacing */
section { margin-bottom: 60px; }

/* Services / Features / Text Lists */
.services ul, .features ul, .content-wrapper > ul, .text-section > ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style-type: disc;
  margin-left: 1.2em;
  margin-bottom: 0;
}
.services ul li, .features ul li { font-size: 1rem; color: #232636; }
.services ul li img, .features ul li img { margin-right: 10px; vertical-align: sub; }

/* CTAs */
.cta {
  background: #1B223D;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33,35,47,0.04);
  padding: 48px 0 44px 0;
  text-align: center;
}
.cta .content-wrapper { align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #ececec; margin-bottom: 22px; }
.cta .button.primary {
  background: #D5AB55;
  color: #1B223D;
}
.cta .button.primary:hover, .cta .button.primary:focus { background: #fff; color: #1B223D; }

/* Testimonials */
.testimonials h2 { margin-bottom: 24px; }
.testimonial-card {
  color: #1B223D;
  background: #F3F3F7;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(27,34,61,0.06);
  padding: 24px 20px;
  font-size: 1.08rem;
}
.testimonial-card p {
  margin-bottom: 14px;
  color: #232636;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #757586;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-summary {
  margin-top: 18px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 1px 4px rgba(33,35,47,0.05);
  display: inline-block;
  font-size: 1.08rem;
  color: #1B223D;
}

/* Social Links (contact page) */
.social-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
  list-style: none;
}
.social-links li {
  display: flex; align-items: center; gap: 8px; color: #232636;
  font-size: 1.03rem;
  opacity: 0.85; transition: opacity 0.2s;
}
.social-links li:hover { opacity: 1; color: #D5AB55; }

/* Misc Utility */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1B223D;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 20px 24px;
  z-index: 2000;
  box-shadow: 0 -2px 16px rgba(27,34,61,0.10);
  font-size: 1.03rem;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-consent.hide {
  opacity: 0; transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-consent button {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 22px;
  background: #fff;
  color: #1B223D;
  font-weight: 600;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  min-width: 110px;
}
.cookie-consent button:hover, .cookie-consent button:focus {
  background: #D5AB55;
  color: #1B223D;
}
.cookie-consent .settings {
  background: #D5AB55;
  color: #1B223D;
}
.cookie-consent .settings:hover, .cookie-consent .settings:focus { background: #fff; color: #1B223D; }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,34,61,0.25);
  z-index: 2100;
  align-items: center; justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.24s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #1B223D;
  border-radius: 12px;
  box-shadow: 0 8px 44px rgba(27,34,61,0.17);
  padding: 34px 28px 24px 28px;
  width: 94vw;
  max-width: 370px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalUp 0.28s cubic-bezier(0.39, 0.575, 0.565, 1);
}
@keyframes modalUp { from { transform: translateY(60px); opacity: 0; } to { opacity: 1; transform: none; } }
.cookie-modal h3 { font-size: 1.12rem; margin-bottom: 14px; }
.cookie-category {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 11px;
}
.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 22px; background: #D5AB55;
  display: flex; align-items: center;
  position: relative; flex-shrink: 0;
  cursor: pointer;
  transition: background 0.24s;
}
.cookie-toggle[aria-checked="false"] {
  background: #E3E3EC;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle[aria-checked="false"] .slider {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex; gap: 15px; margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: 0.97rem;
  padding: 8px 18px;
  border-radius: 20px;
  background: #1B223D;
  color: #fff;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal button.accept { background: #D5AB55; color: #1B223D; }
.cookie-modal button.accept:hover { background: #1B223D; color: #fff; }
.cookie-modal .close {
  position: absolute;
  right: 14px; top: 12px;
  background: none;
  color: #757586;
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 0 5px;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus { background: #F3F3F7; color: #1B223D; }

/* Thank You section and Policy pages */
.privacy-policy, .gdpr, .cookies-policy, .terms-of-use, .thank-you {
  min-height: 50vh; padding: 60px 0;
}
.privacy-policy h1, .gdpr h1, .cookies-policy h1, .terms-of-use h1, .thank-you h1 {
  font-size: 2.2rem; margin-bottom: 22px;
}
.privacy-policy ul, .gdpr ul, .cookies-policy ul, .terms-of-use ul {
  gap: 12px;
  margin-bottom: 18px;
}

/* Utility: hide visually (not display: none for a11y) */
.sr-only {
  position: absolute!important;
  width: 1px!important; height: 1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important;
}

/* Responsive Layouts */
@media (max-width: 1020px) {
  .footer-columns { gap: 24px; }
  .footer-menu { align-items: flex-start; }
}
@media (max-width: 900px) {
  .footer-columns, .content-grid, .card-container {
    flex-direction: column !important; gap: 22px;
  }
  .text-image-section { flex-direction: column; gap: 20px; }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0; min-height: 160px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.22rem; }
  .footer-columns { gap: 12px; }
}
@media (max-width: 620px) {
  .container { padding: 0 4vw; }
  .cta { padding: 36px 0 32px 0; border-radius: 12px; }
  .section, section { padding: 32px 4vw; margin-bottom: 36px; }
  .card, .testimonial-card { padding: 16px; }
  .card-container, .content-grid, .features ul, .testimonials .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 410px) {
  .mobile-menu { padding: 25px 6px 0 6px; }
}

/* Animations */
.button, .button.primary, .card, .testimonial-card, .cta .button.primary {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.button.primary:active, .card:active, .testimonial-card:active {
  transform: translateY(2px) scale(0.986);
}

/* Modal and Cookie Banner Accessibility Tweaks */
.cookie-modal:focus, .mobile-menu:focus { outline: 2px solid #D5AB55; }

/* Hide sections with display: none if needed for a11y management */
[hidden] { display: none !important; }
