/* ------------------------------------------------------
   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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAF7;
  color: #23272B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ------------------------------------------------------
   VARIABLES & BRAND COLORS (fallbacks for custom props)
------------------------------------------------------ */
:root {
  --primary: #23272B;
  --secondary: #586875;
  --accent: #E5E3DF;
  --background: #FAFAF7;
  --white: #FFF;
  --neutral: #E5E3DF;
  --shadow: 0 2px 12px rgba(88,104,117,0.06);
  --border-radius: 16px;
}

/* ------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, .hero h1, .cta, .brand-signature {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.13;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.20;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 600;
}
p, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #23272B;
}
strong {
  font-family: inherit;
  font-weight: 700;
  color: #23272B;
}
blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--accent);
  padding: 16px 24px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #23272B;
  font-style: italic;
  border-radius: 8px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ------------------------------------------------------
   FLEXBOX PATTERNS BY ROLE (NO GRID)
------------------------------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(88,104,117,0.10);
}
.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;
  background: var(--accent);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 460px;
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------------
   HEADER
------------------------------------- */
header {
  background: var(--background);
  position: relative;
  border-bottom: 1px solid #ECECEC;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 16px 0 16px 0;
}
.main-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  opacity: 0.92;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.20s, color 0.20s;
}
.main-nav a.cta {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  margin-left: 12px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 1px 8px rgba(35,39,43,0.05);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Hamburger Button (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 12px;
  z-index: 102;
  transition: background 0.2s;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(35,39,43,0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.55,0,0.1,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--white);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 14px 22px 10px 0;
  cursor: pointer;
  z-index: 1203;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 24px;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.3rem;
  padding: 12px 0;
  text-align: left;
  letter-spacing: 0.4px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(229,227,223,0.10);
}

/* ------------------------------------
   HERO
------------------------------------- */
.hero {
  background: var(--accent);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 68px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  font-size: 1.18rem;
  color: var(--secondary);
  max-width: 520px;
}

/* ------------------------------------
   SECTIONS & STRUCTURE
------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
/* Content Wrapper, used inside container for flex layouts */
.content-wrapper {
  gap: 32px;
}

/* Features Section */
.features ul, .services-highlight ul, .collection-categories ul, .collections-overview ul, .blog-posts-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.features li, .services-highlight li, .collection-categories li, .collections-overview li, .blog-posts-list li {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 24px 18px;
  flex: 1 1 285px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.16s, transform 0.18s;
  margin-bottom: 20px;
}
.features li:hover, .services-highlight li:hover, .collection-categories li:hover, .collections-overview li:hover, .blog-posts-list li:hover {
  box-shadow: 0 6px 26px rgba(88,104,117,0.12);
  transform: translateY(-3px);
}
.features img, .services-highlight img, .collections-overview img, .collection-categories img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

/* Collections Overview Links */
.collections-overview a {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.18s;
}
.collections-overview a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ------------------------------------
   TESTIMONIALS
------------------------------------- */
.testimonials {
  background: var(--background);
}
.testimonials .content-wrapper {
  gap: 26px;
  align-items: flex-start;
  padding-bottom: 0;
}
.testimonials h2 {
  color: var(--primary);
}
.testimonial-card {
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  background: var(--accent);
  color: #23272B;
  border-radius: var(--border-radius);
}

.testimonial-card blockquote {
  color: #23272B;
  background: none;
  border: none;
  font-style: italic;
  font-size: 1.13rem;
  margin-bottom: 0;
  padding: 0;
}
.testimonial-card p {
  font-size: 1rem;
  color: #23272B;
  margin-top: 8px;
}

/* ------------------------------------
   CTA BUTTONS
------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: #9c9797 !important;
  padding: 12px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .02em;
  box-shadow: 0 2px 14px rgba(35,39,43,0.045);
  margin-top: 10px;
  margin-bottom: 8px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  border: none;
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: #9c9797 !important;
  box-shadow: 0 8px 32px rgba(56,56,64,0.11);
  transform: translateY(-2px) scale(1.02);
}

/* ------------------------------------
   FOOTER
------------------------------------- */
footer {
  background: var(--accent);
  padding: 38px 0 8px 0;
  border-top: 1px solid #ECECEC;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 0.96rem;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: var(--primary);
}
.contact-summary {
  font-size: 0.98rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.newsletter-signup {
  margin-top: 16px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.brand-signature {
  margin-top: 26px;
  color: var(--secondary);
  font-size: 0.96rem;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* ------------------------------------
   BLOG SECTIONS
------------------------------------- */
.blog-posts-list ul, .style-guides ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.blog-posts-list li, .style-guides li {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  min-width: 220px;
  flex: 1 1 320px;
  transition: box-shadow 0.15s, transform 0.14s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-posts-list a, .style-guides a {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 7px;
  transition: color 0.17s;
}
.blog-posts-list a:hover, .style-guides a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.categories li {
  background: var(--accent);
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 1.05rem;
  color: var(--secondary);
}

/* ------------------------------------
   FORMS & FAQ (Contact page)
------------------------------------- */
.contact-form, .contact-info, .faq {
  margin-bottom: 60px;
}
.contact-form .cta {
  margin-top: 12px;
}
.faq ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq li {
  background: var(--accent);
  border-radius: 10px;
  padding: 18px 18px 16px 18px;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(88,104,117,0.06);
}

/* ------------------------------------
   POLICY PAGES
------------------------------------- */
.policy {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 20px 24px 20px;
}
.policy ul {
  padding-left: 18px;
  margin-top: 9px;
  margin-bottom: 9px;
  list-style: disc;
}
.policy li {
  margin-bottom: 7px;
  margin-left: 12px;
}

/* ------------------------------------
   THANK YOU PAGE
------------------------------------- */
.thank-you .cta {
  margin-top: 16px;
}

/* ------------------------------------------------------
   RESPONSIVENESS: MOBILE FIRST
------------------------------------------------------ */
@media (max-width: 1024px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    min-height: unset;
    padding: 34px 0 16px 0;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  .section, section {
    margin-bottom: 36px;
    padding: 20px 0;
  }
  .card-container, .features ul, .services-highlight ul, .collections-overview ul,
  .collection-categories ul, .blog-posts-list ul, .content-grid, .categories ul, .style-guides ul {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: unset;
    min-width: unset;
    width: 100%;
    font-size: 0.97rem;
    padding: 14px 10px;
  }
  .newsletter-signup {
    padding: 10px 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .brand-signature {
    margin-top: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .card {
    padding: 18px 11px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 2vw;
    max-width: 99vw;
  }
  .hero p {
    font-size: 1rem;
    max-width: unset;
  }
  .footer-nav, .contact-summary, .brand-signature {
    font-size: 0.92rem;
  }
}

/* ------------------------------------
   MICRO-INTERACTIONS
------------------------------------- */
.card, .features li, .collections-overview li, .services-highlight li, .collection-categories li, .blog-posts-list li {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .features li:hover, .collections-overview li:hover, .services-highlight li:hover, .collection-categories li:hover, .blog-posts-list li:hover {
  box-shadow: 0 8px 32px rgba(56,56,64,0.10);
  transform: translateY(-2px) scale(1.015);
}
.cta {
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
}
.cta:active {
  transform: scale(0.98);
}

/* ------------------------------------
   COOKIE CONSENT BANNER
------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 -2px 12px rgba(88,104,117,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 10px 24px 10px;
  z-index: 4096;
  animation: cookie-fade-in 0.4s ease;
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  font-size: 1rem;
  max-width: 540px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-buttons button {
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 2px 12px rgba(58,62,65,0.03);
}
.cookie-buttons .accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-buttons .accept:hover, .cookie-buttons .accept:focus {
  background: var(--secondary);
  color: var(--white);
}
.cookie-buttons .reject {
  background: #FFF;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-buttons .reject:hover, .cookie-buttons .reject:focus {
  background: var(--secondary);
  color: #FFF;
}
.cookie-buttons .settings {
  background: var(--accent);
  color: var(--secondary);
  border: 1px solid #CFCCC3;
}
.cookie-buttons .settings:hover, .cookie-buttons .settings:focus {
  background: var(--secondary);
  color: #FFF;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,39,43,0.68);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(35,39,43,0.15);
  padding: 30px 28px 22px 28px;
  min-width: 320px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-drop-in 0.3s cubic-bezier(0.55,0.1,0.05,1);
  color: var(--primary);
}
@keyframes modal-drop-in {
  from { opacity: 0; transform: translateY(-44px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid #EEE;
}
.cookie-category:last-child {
  margin-bottom: 0;
  border: none;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  background: #EEE;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  margin-left: 14px;
}
.cookie-modal .toggle[aria-checked='true'] {
  background: var(--secondary);
}
.cookie-modal .toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #FFF;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-modal .toggle[aria-checked='true'] .toggle-thumb {
  left: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  border-radius: 8px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal .modal-actions .accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal .modal-actions .reject {
  background: #FFF;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-modal .modal-actions .close {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-modal .modal-actions .accept:hover, .cookie-modal .modal-actions .accept:focus {
  background: var(--secondary);
}
.cookie-modal .modal-actions .reject:hover, .cookie-modal .modal-actions .reject:focus {
  background: var(--secondary);
  color: #FFF;
}
.cookie-modal .modal-actions .close:hover {
  background: var(--secondary);
  color: #FFF;
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 16px 5vw;
    min-width: unset;
    max-width: 99vw;
  }
  .cookie-consent-banner {
    padding: 14px 2vw 14px 2vw;
  }
}

/* Hide by default, JS should toggle 'open' */
.cookie-modal-overlay, .mobile-menu {
  display: flex;
}

/* Hide scroll on body when menu or modal open */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ------------------------------------
   ACCESSIBILITY
------------------------------------- */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ------------------------------------
   NATURAL MATERIAL EFFECTS (SCANDINAVIAN)
------------------------------------- */
.card, .newsletter-signup, .testimonial-card, .section, .content-wrapper, .features li, .collections-overview li, .blog-posts-list li, .faq li {
  background: linear-gradient(110deg, #FFF 95%, #E5E3DF 100%);
}
