/* --- CSS RESET & NORMALIZATION --- */
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: #fff;
  color: #171717;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dotted #264653;
  outline-offset: 2px;
}
strong {
  font-weight: 700;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --- BRANDING AND TYPOGRAPHY --- */
:root {
  --color-bg: #fff;
  --color-bg-alt: #f7f7f8;
  --color-black: #171717;
  --color-dark: #222;
  --color-mid: #555;
  --color-light: #ccc;
  --brand-primary: #1a1a1a;
  --brand-accent: #E9C46A;
  --brand-secondary: #F4A261;
  --brand-blue: #264653;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
}
p {
  margin-bottom: 12px;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand-primary);
  border-left: 3px solid var(--brand-blue);
  padding-left: 20px;
  margin: 30px 0;
}

/* --- LAYOUT & FLEXBOX --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
  /* Spacing pattern as required */
}

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

.text-section {
  gap: 8px !important;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  justify-content: flex-start;
}
.feature-grid > li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(34,34,34,0.06);
  padding: 28px 22px 22px 22px;
  flex: 1 1 275px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  /* .feature-item pattern */
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > li img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.feature-grid > li h3 {
  margin: 0 0 3px 0;
  font-size: 1.18rem;
}
.feature-grid > li a {
  display: inline-block;
  margin-top: 7px;
  font-weight: 500;
  color: var(--brand-blue);
  position: relative;
  border-bottom: 1.5px solid var(--brand-blue);
  transition: color 0.15s, border-color 0.15s;
}
.feature-grid > li a:hover {
  color: var(--brand-secondary);
  border-bottom: 1.5px solid var(--brand-secondary);
}
.feature-grid > li:hover, .feature-grid > li:focus-within {
  box-shadow: 0 4px 24px 0 rgba(34, 34, 34, 0.14);
  transform: translateY(-3px) scale(1.015);
}

/* --- CARD CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-bg);
  box-shadow: 0 1px 12px rgba(34,34,34, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 330px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(34, 34, 34, 0.15);
  transform: translateY(-2px) scale(1.012);
}

/* --- FLEX PATTERNS --- */
.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: #f4f4f6;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(34,34,34,0.08);
  margin-bottom: 20px;
  max-width: 600px;
  flex: 1 1 350px;
  flex-direction: column;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card p {
  color: #171717;
  font-size: 1.12rem;
  font-family: var(--font-display);
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #555;
  font-size: 0.98rem;
  font-weight: 500;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(34,34,34,0.15);
  background: #fff;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS AND CALLS-TO-ACTION --- */
.cta-primary {
  display: inline-block;
  background: #171717;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 13px 36px;
  border-radius: 28px;
  border: none;
  outline: none;
  box-shadow: 0 3px 12px 0 rgba(39, 40, 42, 0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s, transform 0.18s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 6px 42px 0 rgba(34,34,34,0.23);
}

button, .button {
  font-family: var(--font-body);
  border: none;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 23px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.12s;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.03);
  outline: none;
  box-shadow: 0 4px 18px 0 rgba(39, 40, 42, 0.17);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e9;
  box-shadow: 0 2px 12px rgba(34,34,34,0.06);
  position: sticky;
  z-index: 90;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 26px;
}
header img {
  height: 38px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: #222;
  padding: 7px 13px;
  border-radius: 18px;
  transition: background 0.13s, color 0.18s;
}
nav a.cta-primary {
  background: #222;
  color: #fff !important;
  padding: 10px 26px;
}
nav a:hover:not(.cta-primary), nav a:focus:not(.cta-primary) {
  background: #e9e9eb;
  color: var(--brand-blue);
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: var(--brand-blue);
  color: #fff !important;
}

/* HIDE NAV ON MOBILE / BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #222;
  font-size: 2.1rem;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  transition: color 0.18s, transform 0.18s;
  z-index: 200;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--brand-blue);
  outline: none;
  transform: scale(1.08);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #171717eb;
  z-index: 9999;
  transform: translateX(-105vw);
  transition: transform 0.36s cubic-bezier(0.66,0.19,0.16,0.94);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 99999;
  cursor: pointer;
  transition: color 0.18s, transform 0.18s;
  outline: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
  transform: scale(1.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 90px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: color 0.14s, border-left 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  border-left: 4px solid var(--brand-accent);
}

/* --- MAIN --- */
main {
  min-height: 70vh;
}

/* --- FOOTER --- */
footer {
  background: #18181c;
  color: #eee;
  padding: 50px 0 22px 0;
  border-top: 1px solid #e5e5e9;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
footer nav a {
  color: #bbb;
  font-size: 0.98rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover { color: var(--brand-accent); }
footer .social-links {
  display: flex;
  gap: 17px;
  margin-bottom: 10px;
}
footer .social-links a img {
  height: 30px;
  width: 30px;
  opacity: 0.82;
  transition: opacity 0.18s, transform 0.18s;
}
footer .social-links a:hover img, footer .social-links a:focus img {
  opacity: 1;
  transform: scale(1.13);
}
.brand-tagline {
  display: block;
  margin-top: 8px;
  color: #e9e9ee;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* --- TRUST BADGE, INFO BOX, MISC --- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f6f6fa;
  border-radius: 8px;
  padding: 9px 20px;
  margin: 18px 0 3px 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #222;
  box-shadow: 0 1px 7px 0 rgba(41,41,43, 0.06);
}
.info-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7f7fa;
  border-radius: 7px;
  padding: 11px 21px;
  margin: 9px 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: #181820;
}
.inspiration-message {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: #171717;
  margin-top: 22px;
}

/* --- ANIMATIONS & INTERACTIONS --- */
/* Fade slide for banner & modals */
@keyframes banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  background: #18181d;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(25,32,44,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 32px 21px 32px;
  gap: 18px;
  animation: banner-in 0.7s cubic-bezier(0.23, 0.68, 0.58, 1);
  font-size: 1rem;
}
.cookie-banner p {
  margin: 0;
  color: #f5f5fa;
  font-family: var(--font-body);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 0;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 20px;
  background: #fff;
  color: #171717;
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 1px 9px 0 rgba(34,34,34,0.07);
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--brand-accent);
  color: #111;
}
.cookie-banner .cookie-settings {
  background: #212124;
  color: var(--brand-accent);
  border: 1px solid #3a3a3a;
}
.cookie-banner .cookie-settings:hover {
  background: #2a2a30;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 120000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,30,30,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-content {
  background: #fff;
  color: #222;
  border-radius: 13px;
  max-width: 540px;
  width: 94vw;
  padding: 38px 32px 30px 32px;
  box-shadow: 0 14px 55px 0 rgba(18,18,20,0.21);
  font-family: var(--font-body);
  animation: modal-fade-in 0.38s cubic-bezier(.64,.02,.32,1.1);
}
.cookie-modal-content h3 {
  font-size: 1.44rem;
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-category .category-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-black);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--brand-blue);
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.cookie-category .always-on {
  color: var(--brand-accent);
  font-size: 0.98rem;
  margin-left: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  border-radius: 15px;
  padding: 10px 24px;
  border: none;
  font-weight: 600;
  color: #171717;
  background: #eee;
  transition: background 0.18s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-actions button.accept {
  background: var(--brand-blue);
  color: #fff;
}
.cookie-modal-actions button.accept:hover {
  background: var(--brand-primary);
}
.cookie-modal-actions button.reject {
  background: #d9d9d9;
}
.cookie-modal-actions button.save {
  background: var(--brand-accent);
}
.cookie-modal-actions button.save:hover {
  background: var(--brand-secondary);
  color: #fff;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 980px) {
  section, .container { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 860px) {
  .feature-grid {
    gap: 20px;
  }
  .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.38rem; }
  .container { max-width: 96vw; }
  .content-wrapper, .text-section, .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px;
  }
  .feature-grid > li, .card {
    min-width: 90vw;
    max-width: 100vw;
    padding: 24px 10px 16px 14px;
  }
  section {
    padding: 32px 7px;
  }
  .text-image-section { flex-direction: column; gap: 22px; }
  .testimonial-card { max-width: 100vw; }
  /* --- NAV --- */
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 590px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 12px;
    padding: 19px 12px 17px 12px;
    max-width: 99vw;
    font-size: 0.96rem;
  }
  .footer .container, footer .container { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 460px) {
  .cookie-modal-content { padding: 23px 7px 19px 7px; }
  .cookie-banner p { font-size: 0.95rem; }
  .cookie-banner .cookie-actions { flex-direction: column !important; gap: 8px; width: 100%; }
}

/* --- ACCESSIBILITY & SELECTION --- */
::selection {
  background: var(--brand-accent);
  color: #171717;
}

/* --- UTILITY CLASSES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- INPUT FIELDS (for forms) --- */
input[type='text'], input[type='email'], textarea {
  background: #fafafd;
  color: #222;
  border: 1px solid #dcdce0;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  font-family: var(--font-body);
  transition: border 0.16s;
}
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
}

/* --- PRINT --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container, main { box-shadow: none !important; background: #fff !important; }
}
