/* ===========================
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button:focus, a:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* ===========================
   CUSTOM PROPERTIES
============================= */
:root {
  --primary: #232833;
  --secondary: #BDC5D4;
  --accent: #FFD700;
  --bg: #FCFCFA;
  --bg-contrast: #F5F5F1;
  --text: #232833;
  --heading: #191B22;
  --muted: #6D7383;
  --card-bg: #FAFAF7;
  --border: #E2E3E7;
  --shadow: 0 2px 12px 0 rgba(35,40,51,0.07);
  --radius: 12px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Roboto', serif;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (max-width: 480px) {
  html {
    font-size: 98%;
  }
  body {
    font-size: 15px;
  }
}

/* ===============
   LAYOUT HELPERS
================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  max-width: 840px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.13s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(35,40,51,0.14);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.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: 16px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--bg-contrast);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 1024px) {
  .feature-grid {
    gap: 18px;
  }
}

/* For main navigation bar */
header {
  background: var(--bg);
  box-shadow: 0 2px 8px 0 rgba(35,40,51,0.06);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 50px;
}
.logo img {
  max-height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--primary);
  background-color: var(--accent);
  border-radius: 24px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(255, 215, 0, 0.05);
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
}
.cta-button:hover, .cta-button:focus {
  background: #ffe15c;
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(255, 215, 0, 0.12);
}

/* Mobile burger button */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  font-size: 2rem;
  padding: 8px 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.18s, color 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--bg);
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.22s;
  box-shadow: 0 0 32px rgba(35,40,51,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  font-size: 2.4rem;
  color: var(--primary);
  border: none;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 10001;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
  transition: color 0.14s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 1000px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==============
   TYPOGRAPHY
================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 12px;
}
@media (min-width: 700px) {
  h1 {
    font-size: 3.2rem;
  }
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
@media (min-width: 700px) {
  h2 {
    font-size: 2.4rem;
  }
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 18px;
  color: var(--text);
}
li {
  margin-bottom: 8px;
}
strong {
  color: var(--primary);
  font-weight: 600;
}

blockquote {
  font-style: italic;
  color: var(--muted);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

/* ================
   HERO SECTION
================== */
.hero {
  background: var(--bg-contrast);
  padding: 64px 0 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 34px;
  max-width: 830px;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero p {
  color: var(--muted);
  font-size: 1.13rem;
  margin-bottom: 20px;
}
.hero .cta-button {
  margin-top: 12px;
}

/* ================
   FEATURES & CARDS
================== */
.features {
  margin-bottom: 60px;
}
.features .feature-grid {
  width: 100%;
  gap: 24px;
}
.features .feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px 28px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, transform 0.15s;
}
.features .feature-grid > div:hover {
  box-shadow: 0 4px 20px rgba(35,40,51,0.11);
  transform: translateY(-2px) scale(1.011);
  z-index: 2;
}
.features .feature-grid img {
  height: 38px;
  margin-bottom: 14px;
}

/* ================
   TESTIMONIALS
================== */
.testimonial-card {
  border-left: 5px solid var(--accent);
  background: var(--bg-contrast);
  color: var(--text);
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  line-height: 1.63;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* ========================
   LISTS, LINKS, BUTTONS
======================== */
a {
  color: var(--primary);
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--accent);
}

ul, ol {
  list-style-type: disc;
  list-style-position: inside;
}
ul ul {
  list-style-type: circle;
}

button {
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

/* ================
   FOOTER
================== */
footer {
  background: var(--bg-contrast);
  border-top: 1px solid var(--border);
  font-size: 0.96rem;
  padding: 48px 0 28px 0;
  color: var(--muted);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  flex: 0 0 88px;
  margin-right: 16px;
}
.footer-brand img {
  height: 52px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.04rem;
  transition: color 0.13s;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.footer-contact {
  flex: 1 1 220px;
  color: var(--muted);
  line-height: 1.58;
  margin-top: 6px;
}
.footer-contact a {
  color: var(--primary);
  font-weight: 500;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}
.footer-social a img {
  height: 32px;
  width: 32px;
  opacity: 0.82;
  filter: grayscale(80%);
  transition: filter 0.14s, opacity 0.14s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: none;
}

/* ================
   RESPONSIVE DESIGN
================== */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0 28px 0;
  }
  .features .feature-grid {
    gap: 16px;
  }
  footer .content-wrapper {
    gap: 24px 28px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 16px 0;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 23px;
    flex-direction: column;
  }
  .text-image-section {
    gap: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-brand {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .footer-social {
    margin-top: 12px;
  }
}
@media (max-width: 550px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 3px;
  }
  .features .feature-grid > div {
    padding: 18px 12px;
    min-width: 0;
  }
  .testimonial-card {
    padding: 12px 10px;
  }
  .footer-nav a {
    font-size: 1rem;
  }
}

/* ================
   COOKIE CONSENT
================== */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: #fff;
  z-index: 99999;
  padding: 22px 16px;
  box-shadow: 0 -4px 24px 0 rgba(35,40,51,0.16);
  gap: 18px;
  animation: cookieBannerFadeIn 0.44s cubic-bezier(.5,1.5,.5,1) 1;
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 460px;
  letter-spacing: 0.01em;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  border: none;
  padding: 10px 26px;
  margin-left: 12px;
  margin-right: 4px;
  font-size: 1.08rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--bg-contrast);
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #ffe15c;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 6px 20px 6px;
  }
  .cookie-banner p {
    max-width: 98vw;
  }
}

.cookie-modal-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,40,51,0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 32px rgba(35,40,51,0.19);
  padding: 36px 30px 30px 30px;
  min-width: 320px;
  width: 98vw;
  max-width: 400px;
  margin-bottom: 0px;
  position: relative;
  animation: cookieModalSlideUp 0.44s cubic-bezier(.68,-0.55,.27,1.55) 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@keyframes cookieModalSlideUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.32rem;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-cat-row label {
  flex: 1;
  font-size: 1.04rem;
  color: var(--text);
}
.cookie-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch .slider {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 20px;
  transition: background 0.14s;
}
.cookie-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-switch .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-btn-bar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
.cookie-modal .modal-btn {
  font-family: var(--font-display);
  background: var(--accent);
  color: var(--primary);
  border-radius: 20px;
  border: none;
  font-size: 1.04rem;
  font-weight: bold;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-modal .modal-btn.settings {
  background: var(--bg-contrast);
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-modal .modal-btn:hover, .cookie-modal .modal-btn:focus {
  background: #ffe15c;
}
.cookie-modal .modal-btn.settings:hover, .cookie-modal .modal-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--accent);
}
@media (max-width: 430px) {
  .cookie-modal {
    padding: 18px 5px 14px 9px;
    width: 98vw;
    min-width: unset;
  }
}

/* ====================================
   MISCELLANEOUS & UTILITY STYLES
==================================== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}

/* Subtle Fade Up Animation Utility */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.69s cubic-bezier(.29,.63,.42,1),transform 0.50s cubic-bezier(.29,.63,.42,1);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* Focus/hover accessibility for links & btns */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Ensure all content does not overlap; enforce card spacing */
.section, .card-container, .feature-grid, .content-grid, .testimonial-card, .card {
  margin-bottom: 20px;
}
/* Remove grid/column and absolute position except for decorative only! */
[style*="display: grid"] { display: flex !important; }
[style*="column-count"] { column-count: unset !important; }
[style*="position: absolute"]:not([data-decorative]) { position: static !important; }

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