/* =======================================================
   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, 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;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9FAFB;
  color: #253146;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: #6DA8A9;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #253146;
  text-decoration: underline;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* =======================================================
   SOFT PASTEL BRAND PALETTE
======================================================= */
:root {
  --primary: #253146;
  --secondary: #75A87A;
  --accent: #F5F7F8;
  --pastel-pink: #FCE3EC;
  --pastel-peach: #FFE9D9;
  --pastel-mint: #E5F7EF;
  --pastel-blue: #E1EEF8;
  --pastel-yellow: #FFF7D6;
  --white: #fff;
  --black: #181A20;
  --grey: #F3F6F9;
  --grey-dark: #9299A8;
}

/* =======================================================
   TYPOGRAPHY — soft, pastel feeling
======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 12px;
}
p, li, blockquote {
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.65;
  font-family: 'Roboto', Arial, sans-serif;
}
blockquote {
  font-style: italic;
  color: #40718E;
  background: var(--pastel-blue);
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 8px;
  font-weight: 500;
}
strong {
  font-weight: 600;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* =======================================================
   HEADER & NAVIGATION
======================================================= */
header {
  background: linear-gradient(90deg, var(--pastel-blue) 60%, var(--pastel-pink) 100%);
  box-shadow: 0 2px 14px rgba(149,165,166,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 16px 18px 16px;
  position: relative;
}
header img[alt="Shine Thread"] {
  width: 162px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
}
.cta-button {
  background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-mint));
  border: none;
  color: var(--primary);
  padding: 11px 28px;
  border-radius: 40px;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(117,200,170,0.09);
  cursor: pointer;
  transition: background 0.18s, transform 0.16s, box-shadow 0.17s;
  margin-left: 12px;
  text-align: center;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--secondary), var(--pastel-peach));
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 22px 0 rgba(84,181,172,0.14);
}

/* Burger button for mobile nav */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-pink);
  color: var(--primary);
  font-size: 2rem;
  padding: 5px 15px;
  border-radius: 35px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(233,173,201,0.10);
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.16s, color .16s, box-shadow 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--pastel-mint);
  color: var(--secondary);
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--pastel-blue) 75%, var(--pastel-pink) 100%);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.79,.06,.06,1);
  box-shadow: 0 10px 40px 0 rgba(90,90,170,0.18);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: slideInMenu .4s cubic-bezier(.77,.15,.2,1);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 10px 25px 0 0;
  font-size: 2.3rem;
  background: var(--pastel-blue);
  color: var(--primary);
  border-radius: 50px;
  padding: 7px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  z-index: 22;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--pastel-pink);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 60px 28px 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.25rem;
  padding: 10px 10px;
  border-radius: 6px;
  background: none;
  transition: background 0.13s, color 0.13s;
  min-width: 90vw;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-peach);
  color: var(--secondary);
}

@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* =======================================================
   FLEXBOX LAYOUTS - MANDATORY CLASSES
======================================================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { 
  margin-bottom: 20px; 
  position: relative; 
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 4px 22px 0 rgba(117,168,122,0.08);
  padding: 26px 22px;
  display: flex; flex-direction: column;
  min-width: 270px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover { box-shadow: 0 12px 34px 0 rgba(117,168,122,0.14); transform: translateY(-3px) scale(1.01);} 

.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;
  background: var(--pastel-yellow);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(220,190,130,0.10);
  margin-bottom: 20px;
  flex-direction: row;
  min-width: 240px;
  color: var(--primary);
  font-size: 1.1rem;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

/* Custom grids for .feature-grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--pastel-mint);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(144,197,187,0.08);
  padding: 22px 16px 17px 16px;
  flex: 1 1 240px;
  min-width: 215px;
  display: flex; flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .16s, background .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px 0 rgba(144,197,187,0.16);
  background: var(--pastel-blue);
}
.feature-grid img {
  width: 48px; height: 48px; margin-bottom: 8px; filter: drop-shadow(0 1px 7px #E5F7EF);
}

.text-section {
  background: var(--pastel-blue);
  border-radius: 10px;
  padding: 20px 18px;
  margin-bottom: 18px;
}

/* testimonial color contrast for accessibility */
.testimonial-card {
  background: var(--pastel-yellow);
  color: var(--primary);
  border: 1.5px solid #FCE3EC;
}
.testimonial-card blockquote {
  background: none;
  border-left-color: var(--secondary);
  color: #3E5B71;
  margin-bottom: 0;
}
.testimonial-card p {
  font-size: 1rem; color: var(--primary); margin: 0;
  display: flex; align-items: center; gap: 10px;
}

/* =======================================================
   BUTTONS & INTERACTIONS
======================================================= */
button, .cta-button {
  cursor: pointer;
  user-select: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.14s;
}

a.cta-button, button.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Inputs (optional for newsletter placeholder) */
input, textarea {
  border-radius: 10px;
  border: 1.4px solid var(--pastel-mint);
  background: var(--accent);
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 12px;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  background: var(--pastel-blue);
}

/* =======================================================
   LISTS & ULs
======================================================= */
ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
  padding-left: 12px;
}
ul li, ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.7;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.32;
}

/* =======================================================
   FOOTER
======================================================= */
footer {
  background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-mint) 90%);
  margin-top: 60px;
  padding: 0 0 28px 0;
  color: var(--primary);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 38px 32px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 44px 20px 0 20px;
  position: relative;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-direction: column;
}
.footer-menu a {
  color: var(--primary);
  opacity: 0.77;
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus { color: var(--secondary); }

.brand-contact {
  min-width: 200px;
}
.brand-contact p {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.brand-contact img { height: 1.2em; vertical-align: middle; margin-right: 7px; }

.newsletter-signup {
  background: var(--pastel-blue);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 200px;
  max-width: 320px;
  box-shadow: 0 1px 6px 0 rgba(110,168,131,0.07);
  margin-bottom: 10px;
}
.newsletter-signup h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
}
.newsletter-signup p {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  transition: filter 0.17s, transform 0.16s;
  filter: grayscale(0.2) brightness(0.94);
}
.social-links a:hover img { filter: grayscale(0) brightness(1.15); transform: scale(1.17); }

.legal {
  margin-top: 16px;
  width: 100%;
  text-align: left;
  color: #767689;
  font-size: 0.93rem;
  opacity: 0.8;
}

/* =======================================================
   RESPONSIVE DESIGN (Mobile First!)
======================================================= */
@media (max-width: 1000px) {
  .container {
    max-width: 94vw;
    padding: 0 6px;
  }
  footer .container {
    gap: 32px 14px;
    padding-right: 6px; padding-left: 6px;
  }
  .footer-menu {
    flex-direction: row;
    gap: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 5vw;
    max-width: 100vw;
  }
  header .main-nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-menu, .brand-contact, .newsletter-signup, .social-links {
    min-width: 100%;
    max-width: 100%;
  }
  .footer-menu {
    flex-direction: row;
    gap: 16px 10px;
    margin-bottom: 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    padding: 28px 7vw 12px 7vw;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
}
@media (max-width: 600px) {
  .container, section, .section {
    padding: 0 4vw;
  }
  section, .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 550px) {
  .feature-grid, .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    font-size: 1rem;
  }
}
@media (max-width: 420px) {
  footer .container, section, .section, .content-wrapper {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}

/* --- Responsive flex containers --- */
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.content-grid {
  flex-direction: row;
}
@media (max-width: 600px) { .content-grid { flex-direction: column; gap:12px; } }

/* =======================================================
   COOKIE CONSENT BANNER / MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--pastel-mint), var(--pastel-peach));
  box-shadow: 0 -4px 28px 0 rgba(159,170,121,0.07);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 18px 6vw 20px 6vw;
  font-size: 1.05rem;
  animation: cookieBannerMoveIn .55s cubic-bezier(.72,0,.47,1.18);
}
@keyframes cookieBannerMoveIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 18px 0 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner-buttons {
  display: flex; flex-direction: row; gap: 13px;
}
.cookie-banner button {
  border: none;
  border-radius: 40px;
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  padding: 10px 18px;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px 0 rgba(117,168,122,0.09);
  transition: background 0.14s, color 0.14s, box-shadow 0.12s;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-banner .cookie-settings-btn {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 22px 0 rgba(117,168,122,0.13);
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 13px 15px 16px 15px;
  }
  .cookie-banner p { margin-right: 0; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(81,61,86,0.21);
  z-index: 5002;
  display: flex; justify-content: center; align-items: center;
  animation: popInModal .33s;
}
@keyframes popInModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: var(--accent);
  border-radius: 18px;
  padding: 36px 32px 24px 32px;
  min-width: 320px; max-width: 96vw;
  box-shadow: 0 12px 34px 0 rgba(117,168,122,0.18);
  display: flex; flex-direction: column; gap: 19px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.12rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--secondary);
}
.cookie-modal .always-on {
  background: var(--pastel-yellow);
  padding: 2px 11px;
  border-radius: 13px;
  color: #a48f39;
  font-size: 0.93rem;
  margin-left: 10px;
}
.cookie-modal-buttons {
  display: flex; gap: 12px; flex-direction: row; align-items: center;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  color: var(--primary);
  font-size: 1.8rem;
  border: none;
  border-radius: 50px;
  padding: 2px 18px;
  cursor: pointer;
  transition: background 0.13s;
  z-index: 41;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--pastel-pink);
  color: var(--secondary);
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 15px 8vw 18px 8vw;
    min-width: unset;
  }
  .cookie-modal h3 { font-size: 1.02rem; }
}

/* =======================================================
   UTILITIES & MICRO-ANIMATIONS
======================================================= */
.fade-in {
  animation: fadeIn .48s cubic-bezier(.54,0,.67,1.17);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.soft-shadow {
  box-shadow: 0 4px 18px 0 rgba(117,168,122,0.08);
}
.radius-10 { border-radius: 10px; }
.radius-16 { border-radius: 16px; }

/* SMOOTH HOVER EFFECTS ON CARDS */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .14s, transform .14s, background .18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 12px 38px 0 rgba(84,181,172,0.13);
  background: var(--pastel-peach);
  transform: translateY(-2px) scale(1.02);
}

/* ========== Hide scroll for modal overlays ========== */
body.modal-open {
  overflow: hidden;
}

/* Helper for visually hidden elements (for accessibility) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* =======================================================
   END CSS
======================================================= */
