/* ============================
   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 {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.4;
  min-height: 100vh;
  background: #F7F6FB;
  color: #253342;
  font-family: 'Roboto', Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  background-color: transparent;
  color: #253342;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #F7C873;
  outline-offset: 2px;
}

/* ============================
     BRAND COLOR PALETTE
============================ */
:root {
  --primary: #253342;
  --secondary: #F7C873;
  --accent: #EFEFEF;
  --pastel-pink: #FFE7EC;
  --pastel-blue: #DBF0F7;
  --pastel-mint: #D7F5E8;
  --pastel-purple: #E7DEFB;
  --pastel-yellow: #FFF9E6;
  --dark-text: #253342;
  --white: #fff;
  --shadow: rgba(42,50,70,0.09);
  --border-radius: 18px;
}

/* ============================
      TYPOGRAPHY
============================ */
body, p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
}
h1, .display {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: -1px;
  transition: color 0.2s;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.subheadline {
  font-size: 1.125rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0.82;
  margin-bottom: 24px;
}
p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  background: var(--pastel-mint);
  border-left: 4px solid var(--secondary);
  margin: 0 0 16px 0;
  padding: 18px 24px;
  color: var(--primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

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

/* ============================
 SECTIONS & SPACING PATTERNS
============================ */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 18px var(--shadow);
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px) scale(1.015);
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.14s, box-shadow 0.16s;
  border: 1px solid #e7eef8;
  max-width: 650px;
}
.testimonial-card:hover {
  transform: translateY(-2.5px) scale(1.012);
  box-shadow: 0 6px 22px var(--shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid for / */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 26px 22px 22px 22px;
  flex: 1 1 225px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.1s;
  margin-bottom: 20px;
}
.feature-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 32px var(--shadow);
  transform: translateY(-3px) scale(1.025);
}

/* =============================
      BUTTONS & MICRO-UX
============================= */
.btn-primary, .btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: linear-gradient(90deg, #FEF5DE 0%, #F7C873 100%);
  color: var(--primary);
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.14s, transform 0.13s;
  margin-top: 6px;
  margin-bottom: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #FFE7EC 0%, #F7C873 100%);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px var(--shadow);
}

/* Secondary, Accept, Reject for Cookie Modals */
.btn-secondary {
  background: var(--pastel-blue);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 26px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.14s, transform 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--pastel-purple);
  color: var(--primary);
}
.btn-reject {
  background: var(--pastel-pink);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  box-shadow: 0 1px 6px var(--shadow);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s, color 0.14s, transform 0.13s;
}
.btn-reject:hover, .btn-reject:focus {
  background: var(--pastel-yellow);
  color: var(--primary);
}

/* =============================
      HEADER / NAVIGATION
============================= */
header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: relative;
  z-index: 20;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 12px;
}
header img[alt="Polished Puff"] {
  height: 54px;
  width: auto;
  margin-right: 10px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.main-navigation a {
  position: relative;
  color: var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
}
.main-navigation a:hover, .main-navigation a:focus {
  background: var(--pastel-blue);
  color: #1299aa;
}

/* Hide navigation on mobile */
@media (max-width: 900px) {
  .main-navigation {
    display: none;
  }
}
/* Show .btn-primary before burger on mobile */
@media (max-width: 900px) {
  header .btn-primary {
    display: none;
  }
}

/* Hamburger */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-mint);
  border: none;
  font-size: 2rem;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s, color 0.13s, transform 0.12s;
  z-index: 52;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ===============================
     MOBILE MENU / OVERLAY NAV
=============================== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,250,253,0.97);
  backdrop-filter: blur(2px);
  z-index: 1001;
  transform: translateX(-100vw);
  transition: transform 0.39s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.5rem;
  margin: 20px 0 4px 24px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1002;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 30px;
  margin-left: 30px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 10px 8px 10px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-yellow);
  color: #ba8105;
}

/* Overlay z-index fixes */
.mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  z-index: 2200;
}

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

/* =============================
      TEXT SECTIONS
============================= */
.text-section {
  background: var(--pastel-mint);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  margin-bottom: 22px;
  box-shadow: 0 1.5px 12px var(--shadow);
}
.location-map {
  margin-top: 12px;
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 12px var(--shadow);
  padding: 16px 10px;
  width: 100%;
  max-width: 350px;
}

/* =============================
      PRICING & EMPHASIS
============================= */
.pricing {
  font-size: 1.17rem;
  background: var(--pastel-purple);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 22px;
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

/* =============================
      FOOTER
============================= */
footer {
  background: var(--accent);
  padding: 32px 0 0 0;
  border-top: 1px solid #efebeb;
  min-height: 100px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
footer img[alt="Polished Puff"] {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
footer nav {
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 6px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 3px 5px;
  border-radius: 4px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-blue);
  color: #33619f;
}
.contact-snippet {
  font-size: 0.96rem;
  color: var(--primary);
  opacity: 0.82;
  margin-bottom: 12px;
}

/* =============================
      COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: var(--pastel-pink);
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 -2px 15px var(--shadow);
  padding: 22px 20px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  min-height: 72px;
  animation: cookieBannerSlideIn 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(100%); opacity:0;}
  80% { opacity:1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  flex: 2 0 220px;
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex: 1 0 120px;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5500;
  left: 0; top:0; right:0; bottom:0;
  background: rgba(44,54,72,0.23);
  animation: fadeInModal 0.32s;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  60% { opacity: 0.6; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  padding: 38px 28px 24px 28px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 48px var(--shadow);
  min-width: 320px;
  min-height: 140px;
  max-width: 97vw;
  margin: 24px;
  animation: modalIn 0.52s cubic-bezier(0.33, 1, 0.68, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modalIn {
  0% { transform: translateY(120px) scale(0.93); opacity:0;}
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.17rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 19px;
  height: 19px;
  border-radius: 5px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* ============================
    RESPONSIVE DESIGN
============================ */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  section {
    margin-bottom: 48px;
    padding-top: 26px;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    max-width: 98vw;
    gap: 14px;
    padding: 15px 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .location-map {
    max-width: 100%;
    padding: 8px 2px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 6px;
  }
  .btn-primary,
  .btn-secondary,
  .btn-reject {
    width: 100%;
    justify-content: center;
  }
  .content-wrapper {
    gap: 9px;
    padding: 0;
  }
}

/* ============================
    ANIMATIONS & HOVER EFFECTS
============================ */
a, .btn-primary, .feature-grid > div, .testimonial-card, .main-navigation a, .mobile-nav a, .card {
  transition: box-shadow 0.17s, color 0.14s, background 0.14s, transform 0.17s;
}

/* ============================
     UTILITIES
============================ */
::-webkit-input-placeholder { color: #b2bac9; }
::-moz-placeholder { color: #b2bac9; }
:-ms-input-placeholder { color: #b2bac9; }
::placeholder { color: #b2bac9; }

/* Hide outline for mouse users but show for keyboard (accessibility) */
:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ============================
    MISC SMALL ELEMENTS
============================ */
hr {
  border: none;
  border-top: 1px solid var(--pastel-blue);
  margin: 36px 0;
}

/* Prevent overlap of cards/sections */
.card, .feature-grid > div, .testimonial-card, .section, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* Remove bottom margin on last child */
.card:last-child, .testimonial-card:last-child, .feature-grid > div:last-child, .content-wrapper:last-child, .section:last-child, .text-section:last-child {
  margin-bottom: 0;
}
