/* ----------------------------------
   Crystal Hush: Playful Dynamic CSS
   Author: Senior CSS Developer & UI Designer
---------------------------------- */

/* 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,
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: #F7F7F7;
  color: #16465C;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; }
button { border: none; background: none; cursor: pointer; }
:focus { outline: 2px solid #ECC94A; outline-offset: 2px; }

/* FONTS (see: https://fonts.google.com/specimen/Montserrat and Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
h1, h2, h3, .cta-btn, .logo {
  font-family: 'Montserrat', Arial, sans-serif;
}

h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #16465C;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ECC94A;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

strong {
  color: #16465C;
  font-weight: 700;
}

/* =====================
   LAYOUT & CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

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

/* Flex utility patterns (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(32,50,66,0.10), 0 1.5px 6px #ECC94A33;
  transition: transform 0.22s cubic-bezier(.71,1.7,.77,1.24), box-shadow 0.16s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
}
.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: #fffbe9;
  border: 2.5px solid #ECC94A;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(32,50,66,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Hero/Section Animation */
section {
  animation: section-fade-in 1s cubic-bezier(0.63,1.71,0.36,1) 0.1s both;
}
@keyframes section-fade-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

/* ========================
      HEADER & NAVIGATION
   ======================== */
header {
  background: #fff;
  border-bottom: 3px solid #ECC94A;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  transition: transform 0.22s;
}
.logo:hover img {
  transform: rotate(-7deg) scale(1.09);
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  padding: 8px 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #16465C;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ECC94A;
  color: #16465C;
  box-shadow: 0 2px 10px #ECC94A55;
}

.cta-btn {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: #ECC94A;
  padding: 11px 30px;
  border-radius: 36px;
  margin-left: 10px;
  box-shadow: 0 4px 16px rgba(236,201,74,0.21);
  transition: background 0.22s, transform 0.18s, box-shadow 0.25s;
  position: relative;
  border: 2px solid #ECC94A;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #ECC94A;
  border-color: #ECC94A;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 2px 24px #ECC94A77;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #ECC94A;
  color: #16465C;
  font-size: 1.8rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
  z-index: 151;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ffe376;
  color: #16465C;
  box-shadow: 0 2px 10px #ECC94A66;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 40px 28px 24px 28px;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.7,1.7,.6,1.05);
  box-shadow: 0 0 60px #16465C22;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #16465C;
  background: #ECC94A;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.5rem;
  margin-bottom: 20px;
  align-self: flex-end;
  box-shadow: 0 4px 12px #ECC94A55;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffe376;
  color: #16465C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 15px 12px;
  border-radius: 12px;
  background: #F7F7F7;
  color: #16465C;
  transition: background 0.19s, color 0.14s;
  box-shadow: 0 1px 6px #16465C11;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECC94A;
  color: #16465C;
}

/* Hide nav on mobile, show hamburger */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cta-btn { margin-left: 0; }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =========================
   HERO, CARDS & FEATURES
   ========================= */
.feature-grid, .product-list, .article-list, .quick-tips, .core-values, .top-rated-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  flex-direction: column;
}
.feature-grid li, .product-list li, .article-list li, .core-values li, .top-rated-list li {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  color: #16465C;
  box-shadow: 0 1.5px 8px rgba(32,50,66,0.06);
  display: flex; align-items: center; gap: 13px;
  transition: background 0.15s, box-shadow 0.15s, transform 0.22s;
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.feature-grid li:hover, .product-list li:hover, .article-list li:hover {
  background: #fffbe9;
  transform: scale(1.02) rotate(-2deg);
  box-shadow: 0 6px 16px #ECC94A44;
}
.feature-grid img {
  width: 32px; height: 32px; margin-right: 5px;
}
.review-filter {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  margin: 18px 0 0 0;
  align-items: center;
  color: #16465C;
}
.review-filter a {
  color: #ECC94A;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  transition: background 0.14s;
}
.review-filter a:hover, .review-filter a:focus {
  background: #FFE376;
}

/* Service cards for products on homepage */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 20px 0;
}
.service-cards > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 11px #ECC94A11;
  flex: 1 1 232px;
  min-width: 230px;
  max-width: 330px;
  padding: 22px 17px 24px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  border: 2px solid #F7F7F7;
  transition: box-shadow 0.19s, border-color 0.19s, transform 0.19s;
  position: relative;
}
.service-cards > div:hover {
  border-color: #ECC94A;
  box-shadow: 0 2px 24px #ECC94A44;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}
.price {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ECC94A;
  font-weight: 700;
  margin-top: 8px;
}

/* =========================
   TESTIMONIALS/REVIEWS
   ========================= */
.testimonial-card p {
  color: #16465C;
  font-size: 1rem;
  margin-bottom: 7px;
  font-style: italic;
}
.testimonial-card strong {
  color: #16465C;
}
.testimonial-card span:last-child {
  font-size: 1.25rem;
  letter-spacing: 2.5px;
  color: #ECC94A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 2px 22px #ECC94A38;
  transform: scale(1.015) rotate(1.4deg);
}
.review-summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #16465C;
  background: #ecc94a22;
  border-radius: 30px;
  padding: 8px 20px;
  margin-top: 16px;
  display: inline-block;
  font-weight: 700;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #16465C;
  color: #fff;
  padding: 36px 0 18px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-menu a {
  color: #ECC94A;
  font-size: 1rem;
  padding: 2px 13px;
  transition: background 0.14s, color 0.17s;
  border-radius: 8px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #16465C;
  background: #ECC94A;
}
.brand-info, .contact-info, .social-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}
.social-links {
  flex-direction: row;
  gap: 15px;
  margin-top: 10px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 7px #ECC94A33);
  transition: transform 0.18s;
}
.social-links a:hover img {
  transform: scale(1.14) rotate(-8deg);
}

/* =====================
       BUTTONS & LINKS
   ===================== */
button, .cta-btn, a.button {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
a.button {
  background: #16465C;
  color: #fff;
  border-radius: 12px;
  padding: 11px 22px;
  display: inline-block;
  transition: background 0.16s, color 0.18s;
}
a.button:hover, a.button:focus {
  background: #ECC94A;
  color: #16465C;
}

/* =====================
   CONTACT/INFO STYLES
   ===================== */
.contact-details p, .text-section {
  color: #16465C;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.quick-links a {
  background: #ECC94A;
  color: #16465C;
  font-weight: 700;
  border-radius: 22px;
  padding: 10px 17px;
  transition: background 0.12s, color 0.12s;
}
.quick-links a:hover {
  background: #16465C;
  color: #ECC94A;
}

/* =========================
    RESPONSIVE STYLES (MOBILE-FIRST)
  ========================= */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 8px; }
  .section { padding: 30px 5px; }
  .content-wrapper { gap: 17px; }
  .service-cards { flex-direction: column; gap: 20px; }
  .feature-grid, .product-list, .article-list, .core-values, .top-rated-list { gap: 16px; }
  .footer-content { flex-direction: column; gap: 24px; align-items: flex-start; }
  .main-nav { display: none !important; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; }
  .card-container, .content-grid { flex-direction: column; gap: 14px; }
  .text-image-section { flex-direction: column; gap: 18px; }
}

/* =========================
    PLAYFUL DYNAMIC EXTRAS!
   ========================= */

/* Fun hover animation for cards */
.card:hover {
  box-shadow: 0 8px 24px #ECC94A55;
  transform: scale(1.035) rotate(-2deg);
}

/* Playful badge effect for price */
.price {
  background: #ECC94A;
  color: #16465C;
  padding: 4.5px 13px;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px #ECC94A55;
  font-size: 1.08rem;
  white-space: nowrap;
  display: inline-block;
  margin-top: 11px;
  letter-spacing: .6px;
}

/* Bounce animation for buttons */
.cta-btn {
  animation: bounce-in 0.9s cubic-bezier(.57,1.97,.44,1.08);
}
@keyframes bounce-in {
  0%   { transform: scale(.95); opacity: 0.2; }
  70%  { transform: scale(1.08); opacity: 1; }
  90%  { transform: scale(0.98); }
  100% { transform: none; }
}
.cta-btn:active {
  transform: scale(0.96);
}

/* Spinning star for reviews (using unicode star) */
.testimonial-card span:last-child::after {
  content: '\2605';
  color: #ECC94A;
  margin-left: 2px;
  animation: spin-star 1.1s linear infinite alternate-reverse;
}
@keyframes spin-star {
  0% { transform: rotate(6deg); }
  100% { transform: rotate(-16deg); }
}

/* Small decorative confetti animation for playful mood */
body::before {
  content: '';
  display: block;
  position: fixed;
  pointer-events: none;
  z-index: 0;
  left: -2vw; right: -2vw; top: -10vh; height: 40vh;
  background: url("data:image/svg+xml,%3Csvg width='200' height='40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='26' cy='8' r='3' fill='%23ECC94A'/%3E%3Ccircle cx='98' cy='21' r='1.5' fill='%2316465C'/%3E%3Ccircle cx='188' cy='17' r='2.5' fill='%23ECC94A'/%3E%3Ccircle cx='50' cy='19' r='1.2' fill='%23fff'/%3E%3Ccircle cx='180' cy='33' r='3' fill='%2316465C'/%3E%3C/svg%3E");
  opacity: .13;
  animation: driftConfetti 18s infinite linear alternate;
}
@keyframes driftConfetti {
  0% { background-position-x: 0; }
  100% { background-position-x: 550px; }
}

/* =========================
    COOKIE CONSENT BANNER
   ========================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 20px #16465C22;
  border-top: 3px solid #ECC94A;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 10px 18px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.40s, opacity 0.30s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #16465C;
  flex: 1 0 200px;
  max-width: 540px;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 10px;
  padding: 11px 19px;
  border-radius: 22px;
  background: #ECC94A;
  color: #16465C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: 2px solid #ECC94A;
  font-size: 1rem;
  transition: background 0.19s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 2px 7px #ECC94A33;
}
.cookie-consent-banner .cookie-btn:hover {
  background: #ffe376;
  color: #16465C;
}
.cookie-consent-banner .cookie-btn.cookie-settings {
  background: #fff;
  color: #ECC94A;
  border-color: #ECC94A;
}
.cookie-consent-banner .cookie-btn.cookie-settings:hover {
  background: #ECC94A;
  color: #16465C;
}

@media (max-width:600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 5px 18px 10px;
  }
  .cookie-consent-banner p {
    font-size: 0.97rem;
    max-width: 100vw;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22, 70, 92, 0.70);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal 0.3s;
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 30px 24px;
  min-width: 300px;
  max-width: 440px;
  box-shadow: 0 1.5px 16px #16465C44;
  position: relative;
  animation: modal-pop-in 0.34s cubic-bezier(.54,1.5,.54,1) both;
}
@keyframes modal-pop-in {
  0%   { transform: scale(.9) translateY(40px); }
  80%  { transform: scale(1.06); }
  100% { transform: none; }
}
.cookie-modal h2 {
  color: #16465C;
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  background: #ECC94A;
  color: #16465C;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #ffe376;
}
.cookie-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}
.cookie-preferences-list label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-preferences-list input[type="checkbox"] {
  accent-color: #ECC94A;
}
.cookie-modal .cookie-btn {
  padding: 10px 19px;
  border-radius: 19px;
  background: #ECC94A;
  color: #16465C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: 2px solid #ECC94A;
  font-size: 1rem;
  margin-right: 8px;
  margin-top: 5px;
  transition: background 0.13s, color 0.13s;
  box-shadow: 0 2px 8px #ECC94A33;
}
.cookie-modal .cookie-btn:hover {
  background: #fffbe9;
  color: #ECC94A;
}

/* =========================
  EXTRA: Focus & Selection
   ========================= */
::-moz-selection { background: #ECC94A; color: #16465C; }
::selection { background: #ECC94A; color: #16465C; }

/* ===============
   PRINT STYLES
   =============== */
@media print {
  *, *:before, *:after { background: none !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  header, .mobile-menu, footer, .cookie-consent-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
}
