/* 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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDFB;
  color: #384259;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {list-style: none;}
button {font: inherit; border: none; background: none; cursor: pointer;}
input, textarea, select {font: inherit;}

/* BRAND COLORS */
:root {
  --primary: #384259;
  --secondary: #CBC5B6;
  --accent: #8EC1C8;
  --warm-base: #FFFDFB;
  --warm-bg: #FCF7F0;
  --warm-card: #F7EFE0;
  --warm-shadow: rgba(60,40,0,0.10);
  --button-hover: #705F43;
  --error: #b53a2d;
  --success: #46B48E;
}

/* GLOBAL CONTAINER */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {font-size: 2.5rem; margin-bottom: 24px; }
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.6rem; margin-bottom: 14px;}
h4 {font-size: 1.2rem;}
h5 {font-size: 1rem;}
h6 {font-size: 0.95rem;}

p {
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 16px;
}

strong {
  color: var(--button-hover);
  font-weight: 700;
}

body, button, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.08rem;
}
.text-section ul {padding-left: 20px;}
li {margin-bottom: 10px;}

/* LINKS */
a {transition: color 0.13s;}
a.cta-link {color: var(--accent); border-bottom: 1.5px dotted var(--accent); font-weight: 500; transition: border 0.2s, color 0.18s;}
a.cta-link:hover, a.cta-link:focus {color: var(--button-hover); border-bottom: 2px solid var(--button-hover);}

/* BUTTONS */
.cta-button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 18px var(--warm-shadow);
  transition: background 0.18s, transform 0.13s, box-shadow 0.2s;
  margin: 10px 0 0 0;
  border: none;
}
.cta-button.primary {
  background: var(--primary);
  color: #fff;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--button-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 4px 24px var(--warm-shadow);
}

/* HEADER & NAVIGATION */
header {
  background: var(--warm-base);
  box-shadow: 0 2px 14px var(--warm-shadow);
  position: sticky;
  top: 0;
  z-index: 111;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 16px 0 16px;
}
.logo-link img {height: 48px; width: auto;}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  padding: 7px 13px;
  font-size: 1.06rem;
  border-radius: 16px;
  transition: background 0.15s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

header .cta-button {margin-left: 18px;}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 6px 16px 8px 16px;
  transition: background 0.18s, color 0.14s, box-shadow .17s;
  margin-left: auto;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}
@media (max-width: 1020px) {
  header .container {
    gap: 5px;
  }
  .main-nav {gap: 10px;}
}
@media (max-width: 900px) {
  .main-nav {gap: 7px;}
  header .cta-button {margin-left: 0;}
}
@media (max-width: 768px) {
  .main-nav, header .cta-button {display: none;}
  .mobile-menu-toggle {display: block;}
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,241,224, 0.97);
  box-shadow: 0 7px 36px rgba(56,66,89,0.13), 0 0 0 100vw rgba(56,66,89,0.07);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.5,0.12,0.39,1.04);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 2.4rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11111;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {color: var(--accent);}
.mobile-nav {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  padding: 16px 36px;
  font-size: 1.35rem;
  border-radius: 24px;
  transition: background 0.13s, color 0.17s;
  background: transparent;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--button-hover);
}
@media (max-width: 500px) {
  .mobile-nav a {font-size: 1.05rem; padding: 13px 16px;}
}


/* SECTIONS & LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--warm-bg);
  border-radius: 32px;
}
.hero-section {
  background: linear-gradient(108deg, var(--warm-bg) 86%, var(--accent) 250%);
  border-radius: 0 0 38px 38px;
  margin-bottom: 50px;
  padding: 54px 0 46px 0;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 24px 0;
    border-radius: 0 0 16px 16px;
  }
}

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

.text-section {
  background: var(--warm-bg);
  border-radius: 24px;
  box-shadow: 0 2px 15px var(--warm-shadow);
  padding: 36px 28px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 520px) {
  .text-section {padding: 19px 8px;}
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background: var(--warm-card);
  border-radius: 22px;
  box-shadow: 0 2px 13px var(--warm-shadow);
  margin-bottom: 20px;
  padding: 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 5px 21px var(--warm-shadow);
  transform: translateY(-3px) scale(1.02);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonials-preview {
  padding: 40px 0 32px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px 32px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 15px var(--warm-shadow);
  border: 1px solid var(--secondary);
  max-width: 575px;
  font-size: 1.15rem;
  color: #25304f;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px var(--warm-shadow);
}
.testimonial-card strong {
  color: var(--primary); font-size: 1.01rem;
}
@media (max-width: 600px) {
  .testimonial-card {padding: 14px 11px; font-size: 1rem;}
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--warm-card);
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 2px 8px var(--warm-shadow);
  margin-bottom: 20px;
}
.feature-item strong {color: var(--accent);}

.card-content {display: flex; flex-direction: column; justify-content: center;}

.footer-navigation, .footer-contact, .footer-legal, .footer-social {
  margin: 0 0 12px 0;
}
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 44px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  border-radius: 27px 27px 0 0;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}
.footer-navigation a {
  color: var(--secondary);
  font-size: 1.03rem;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.89;
  transition: color 0.14s, opacity 0.16s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .97rem;
}
.footer-contact a {color: var(--accent); text-decoration: underline;}
.footer-legal {
  font-size: .95rem;
  opacity: 0.85;
  margin-bottom: 6px;
}
.footer-legal a {color: #b7b2a6; text-decoration: underline; margin: 0 2px;}
.footer-social {display: flex; gap: 19px;}
footer img {height: 36px; margin-bottom: 7px;}
@media (max-width: 980px) {
  footer .container {gap: 18px; flex-wrap: wrap;}
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 0 8px;
  }
  .footer-navigation {gap: 8px 15px; flex-wrap: wrap;}
}

/* SPACING & GAPS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; margin-bottom: 20px; }

/* MICRO-INTERACTIONS & HOVERS */
.card, .testimonial-card, .feature-item, .cta-button {
  transition: box-shadow 0.17s, background 0.17s, transform 0.13s;
}
.card:active, .cta-button:active {transform: scale(0.98);}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .container {max-width: 95vw;}
}
@media (max-width: 900px) {
  h1 {font-size: 2.14rem;}
  h2 {font-size: 1.65rem;}
}
@media (max-width: 768px) {
  .container {padding: 0 5vw;}
  h1 {font-size: 1.59rem;}
  h2 {font-size: 1.31rem;}
  .section, section {padding: 19px 3vw; margin-bottom: 35px;}
  .text-section {padding: 12px 3vw;}
  .content-wrapper {gap: 13px;}
}

@media (max-width: 520px) {
  .content-wrapper, .text-section {gap: 7px;}
  footer img {height: 27px;}
}

/* FORMS (if any forms added) */
input, textarea, select {
  padding: 13px 11px;
  border: 1.2px solid var(--secondary);
  border-radius: 16px;
  outline: none;
  background: #fff;
  font-size: 1.01rem;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: border 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 8px var(--warm-shadow);
}
label {display: block; margin-bottom: 5px; font-weight: 500;}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff7e4;
  box-shadow: 0 -2px 26px var(--warm-shadow);
  padding: 17px 16px 17px 30px;
  border-radius: 20px 20px 0 0; 
  z-index: 34000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 1.05rem;
  transition: transform 0.4s cubic-bezier(.61,.19,.33,1.01), opacity 0.2s;
  animation: cookie-slideIn .48s cubic-bezier(.39,1.47,.18,1.01);
}
@keyframes cookie-slideIn {
  0% {transform: translateY(100px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  flex: 1 1 210px;
  color: var(--primary);
  margin: 0 0 6px 0;
  font-size: 1.07rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 1.01rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 6px var(--warm-shadow);
  border: none;
  margin-left: 0;
  margin-right: 0;
}
.cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-accept:hover,.cookie-accept:focus {
  background: var(--button-hover);
  color: #fff;
}
.cookie-reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-reject:hover,.cookie-reject:focus {
  color: var(--accent);
  background: #eee6d7;
}
.cookie-settings {
  background: var(--accent);
  color: #fff;
}
.cookie-settings:focus,.cookie-settings:hover {background: var(--primary); color: #fff;}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; 
  inset: 0;
  background: rgba(56,66,89, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40000;
  animation: fadeInCookieBg .24s;
}
@keyframes fadeInCookieBg {0%{opacity:0;}100%{opacity:1;}}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 28px 22px 22px 22px;
  min-width: 330px;
  max-width: 94vw;
  box-shadow: 0 8px 38px rgba(56,66,89,0.20);
  animation: modalPopIn .35s cubic-bezier(.5,1.54,.17,.88);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
@keyframes modalPopIn {0% {transform: scale(0.85); opacity:0;} 100%{transform: scale(1); opacity:1;}}
.cookie-modal h3 {font-size: 1.21rem; color: var(--primary); margin-bottom: 11px;}
.cookie-modal-category {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--secondary);
}
.cookie-modal-category:last-child {border-bottom: none;}
.cookie-modal-category label {
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.cookie-toggle-switch input {display: none;}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: var(--accent);
}
.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  left: 4px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 7px var(--warm-shadow);
  transition: transform 0.2s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1.01rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.13s;
  box-shadow: 0 2px 8px var(--warm-shadow);
}
.cookie-modal-actions button:hover {background: var(--button-hover);}
@media (max-width: 520px) {
  .cookie-modal {padding: 12px 4vw; min-width: 0;}
  .cookie-banner {flex-direction: column; align-items: flex-start; padding: 12px 3vw 12px 5vw; gap: 11px;}
}

/* ACCESSIBILITY: Focus States */
a:focus, button:focus, .cta-button:focus, .cookie-accept:focus, .cookie-reject:focus, .cookie-settings:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Z-INDEX SAFEGUARDS */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {z-index: 1000;}

/* MISC. CLASSES */
.text-center {text-align: center;}
.mt-2 {margin-top: 16px;}
.mb-2 {margin-bottom: 16px;}

/* Hide scroll on mobile-menu open */
body.menu-open {overflow: hidden;}

/* Utility: visually-hidden for a11y */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* END TITANIC SHADE THEME */
