/* --- RESET & BASELINE --- */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding-left: 1.2em; }
img { max-width: 100%; border: 0; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.18s; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #6EE7B7; outline-offset: 2px; }

/* --- FONT FACE --- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #20264D;
  background: #F7FAFC;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Times, serif;
  color: #20264D;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; }
h4 { font-size: 1rem; }
p, li { color: #283247; font-size: 1rem; margin-bottom: 12px; }
strong, b { font-weight: 700; color: #20264D; }

/* --- CONTAINER / LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(32,38,77,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section { background: transparent; box-shadow: none; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- HEADER --- */
header {
  background: #F7FAFC;
  border-bottom: 1px solid #e5e7ef;
  position: relative;
  z-index: 12;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto Slab', Times, serif;
  font-size: 1rem;
  padding: 6px 0;
  color: #20264D;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #6EE7B7;
  border-bottom: 2px solid #6EE7B7;
}
header .button.primary { margin-left: 24px; }

/* --- LOGO SIZING --- */
header img[alt="Blissful Chip Logo"] { height: 44px; width: auto; }

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Slab', Times, serif;
  padding: 14px 30px;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(32,38,77,0.04);
}
.button.primary {
  background: #20264D;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #2e386b;
  color: #6EE7B7;
  box-shadow: 0 3px 14px rgba(32,38,77,0.10);
}
.button.secondary {
  background: #fff;
  color: #20264D;
  border: 2px solid #20264D;
}
.button.secondary:hover, .button.secondary:focus {
  background: #20264D;
  color: #fff;
  border-color: #6EE7B7;
}

/* --- FLEX LAYOUTS (MANDATORY) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.feature-description {
  min-width: 260px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #F7FAFC;
  box-shadow: 0 2px 6px rgba(32,38,77,0.03);
  margin-bottom: 20px;
}
.feature-icon img {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  display: block;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #FEFEFE;
  border-left: 4px solid #6EE7B7;
  padding: 28px 30px 18px 26px;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(32,38,77,0.08);
}
.testimonial-card p {
  color: #20264D;
  font-size: 1.08rem;
  font-family: 'Roboto Slab', Times, serif;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #54698d;
  font-style: italic;
  margin-left: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SERVICE ICONS --- */
.service-icon img { width: 38px; height: 38px; margin-right: 14px; }

/* --- SPECIALS --- */
.blog-highlights, .trend-highlights, .workshop-schedule {
  background: #f8fbf8;
  padding: 22px 28px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(32,38,77,0.03);
  margin-top: 26px;
  margin-bottom: 24px;
}
.blog-highlights h2, .trend-highlights h2, .workshop-schedule h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #20264D;
}

/* --- LISTS & TYPOGRAPHY --- */
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1rem;
  list-style-type: disc;
}
ul li img { vertical-align: middle; margin-right: 10px; width: 22px; height: 22px; }

/* --- MAP LOCATION (CONTACT PAGE) --- */
.map-location {
  background: #F7FAFC;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
  box-shadow: 0 1px 7px rgba(32,38,77,0.03);
}

/* --- FOOTER --- */
footer {
  background: #20264D;
  color: #F7FAFC;
  padding: 35px 0 29px 0;
  font-size: 0.96rem;
  margin-top: 60px;
}
footer .container{
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}
footer nav a {
  color: #F7FAFC;
  opacity: 0.89;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px solid rgba(110,231,183,0.15);
  transition: color 0.18s, border 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #6EE7B7;
  border-bottom: 1px solid #6EE7B7;
}
footer span { font-size: 0.94rem; color: #b3bfd7; margin-top: 8px; }

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: #20264D;
  color: #F7FAFC;
  border-radius: 8px;
  font-size: 2rem;
  padding: 6px 15px 7px 15px;
  margin-left: 18px;
  z-index: 101;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2e386b;
  color: #6EE7B7;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #20264D;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  box-shadow: 3px 0 30px rgba(0,0,0, 0.13);
  opacity: 0.99;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 19px 28px 10px 0;
  background: none;
  color: #F7FAFC;
  font-size: 2.1rem;
  padding: 4px 18px;
  border-radius: 6px;
  z-index: 203;
  transition: background 0.15s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6EE7B7;
  color: #20264D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  margin: 36px 0 0 33px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #fff;
  padding: 14px 0 11px 5px;
  border-bottom: 1px solid rgba(110,231,183,0.16);
  transition: color 0.15s, background-color 0.15s;
  border-radius: 3px;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6EE7B7;
  background: rgba(110,231,183,0.06);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 30px rgba(32,38,77,0.13);
  padding: 18px 32px;
  z-index: 3000;
  border-top: 2px solid #6EE7B7;
  transition: transform 0.3s cubic-bezier(.6,.13,.23,1), opacity 0.18s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  color: #20264D;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-left: 16px;
}
.cookie-banner .cookie-btn {
  font-family: 'Roboto Slab', Times, serif;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(32,38,77,0.04);
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.accept {
  background: #20264D;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #2e386b;
  color: #6EE7B7;
}
.cookie-btn.reject {
  background: #fff;
  color: #20264D;
  border: 2px solid #20264D;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #20264D;
  color: #fff;
  border-color: #6EE7B7;
}
.cookie-btn.settings {
  background: #6EE7B7;
  color: #20264D;
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #20264D;
  color: #6EE7B7;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3010;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,38,77,0.27);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(32,38,77,0.14);
  padding: 38px 28px 28px 28px;
  min-width: 320px;
  max-width: 94vw;
  width: 420px;
  z-index: 3012;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn .26s cubic-bezier(.5,.03,.23,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.28rem;
  margin-bottom: 4px;
  color: #20264D;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-size: 1.07rem;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid #20264D;
  background: #f8faff;
  display: inline-block;
  position: relative;
  margin-right: 9px;
}
.cookie-category input[type="checkbox"]:checked {
  background: #6EE7B7;
  border-color: #6EE7B7;
}
.cookie-category input[type="checkbox"]:checked:after {
  content: '';
  display: block;
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 14px;
  border: solid #20264D;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-modal .cookie-category label[disabled],
.cookie-modal .cookie-category input[disabled] + label {
  color: #94a3b8;
  opacity: 0.7;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}

/* --- HOVER / MICRO-INTERACTIONS --- */
.button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, header nav a, .mobile-nav a, footer nav a {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.16s;
}
.card, .feature-description, .testimonial-card, .content-wrapper, .blog-highlights, .trend-highlights {
  transition: box-shadow 0.2s, border 0.18s, background 0.15s;
}
.card:hover, .feature-description:hover, .testimonial-card:hover, .content-wrapper:hover {
  box-shadow: 0 6px 24px rgba(32,38,77,0.13);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container { max-width: 900px; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  h1 { font-size: 1.68rem; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  nav {
    display: none;
  }
  .button.primary, .button.secondary {
    padding: 12px 18px;
    font-size: 0.98rem;
  }
  .feature-grid, .content-grid, .card-container, .section, .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .container { padding: 0 12px; }
  .testimonial-card {
    padding: 18px 14px 13px 14px;
    margin-bottom: 18px;
    font-size: 0.96rem;
  }
  .text-image-section, .feature-item { flex-direction: column; gap: 18px; }
  .mobile-menu-toggle { display: inline-block; }
  header nav, footer nav { display: none !important; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.13rem; }
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .content-wrapper, .section {
    padding: 25px 5px 25px 5px;
    margin-bottom: 34px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-banner-actions {
    margin-left: 0;
  }
  .cookie-modal {
    min-width: 99vw;
    width: 99vw;
    padding: 22px 7px;
  }
}

/* --- PRINT STYLES --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .content-wrapper, .section { background: none; box-shadow: none; }
  body { color: #000; background: #fff; }
}
