/* 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: linear-gradient(140deg, #f7f3f0 0%, #fafafa 100%);
  color: #222;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border-radius: 0;
  border: none;
  background: none;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #F7F3F0;
  color: #222;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #A9323B;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 10px; }
p, ul, ol, li { font-size: 1rem; margin-bottom: 12px; }
strong, b { font-weight: 600; }

/* LAYOUT & CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(169, 50, 59, 0.06);
}
.text-section {
  max-width: 850px;
  margin: 0 auto;
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(39,81,76,0.09);
  padding: 32px 28px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 4px 36px rgba(169, 50, 59, 0.18);
}
.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: #fafafa;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(39,81,76,0.08);
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 240px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 1px 6px rgba(169, 50, 59, 0.07);
  margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #f7f3f0 0%, #A9323B13 90%);
  padding: 56px 0 36px 0;
  margin-bottom: 60px;
}
.hero h1 {
  color: #A9323B;
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.hero .subheadline {
  font-family: 'Montserrat', sans-serif;
  color: #27514C;
  font-size: 1.15rem;
  margin-bottom: 28px;
  max-width: 480px;
}

/* FEATURE SECTION */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  width: 100%;
}
.feature-grid li {
  flex: 1 1 230px;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 1px 8px rgba(39,81,76,0.09);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s;
  margin-bottom: 20px;
}
.feature-grid li img { width: 32px; height: 32px; margin-bottom: 14px; }
.feature-grid li h3 {
  font-size: 1.08rem;
  color: #A9323B;
  margin-bottom: 10px;
}
.feature-grid li p { color: #27514C; font-size: .98rem; }

/* CTA BUTTONS & LINKS */
.cta, .cta-contact a, .card a.cta {
  display: inline-block;
  background: linear-gradient(90deg, #A9323B 0%, #27514C 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 28px;
  padding: 14px 36px;
  font-size: 1.05rem;
  margin-top: 10px;
  box-shadow: 0 3px 18px -6px #A9323B23;
  transition: background 0.22s, box-shadow 0.22s, transform 0.14s;
  border: none;
  cursor: pointer;
}
.cta:hover, .cta:focus, .cta-contact a:hover {
  background: linear-gradient(90deg, #A9323B 40%, #27514C 100%);
  box-shadow: 0 6px 24px -4px #A9323B44;
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
nav .cta {
  margin-top: 0;
  padding: 8px 28px;
  font-size: 1rem;
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 20px #A9323B10;
  position: relative;
  z-index: 200;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
}
.logo img {
  max-height: 39px;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  color: #27514C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 22px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #A9323B18;
  color: #A9323B;
}
.main-nav a.cta {
  background: linear-gradient(90deg, #A9323B 0%, #27514C 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 26px;
}
.main-nav a.cta:hover {
  background: linear-gradient(90deg, #A9323B 40%, #27514C 100%);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #A9323B;
  color: #fff;
  border: none;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 250;
  box-shadow: 0 2px 10px #A9323B20;
  cursor: pointer;
  transition: background 0.2s, transform 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #27514C;
  transform: scale(1.05);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.45,1.6,.42,1), opacity 0.33s;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #A9323B;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 16px 24px 6px 0;
  cursor: pointer;
  transition: color 0.22s;
  z-index: 1001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #27514C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  margin-top: 8px;
  padding-left: 22px;
}
.mobile-nav a {
  color: #A9323B;
  font-size: 1.12rem;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 0;
  border-radius: 20px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F3F0;
  color: #27514C;
}
@media (max-width: 1024px) {
  .main-nav ul { gap: 13px; }
}
@media (max-width: 900px) {
  .main-nav {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* CTA SECTION */
.cta {
  background: linear-gradient(90deg, #F7F3F0 0%, #A9323B0A 100%);
  text-align: center;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 48px 0;
}
.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2, .cta h1 {
  color: #A9323B;
  font-size: 1.65rem;
  margin-bottom: 18px;
}

/* SERVICES & FEATURES SECTION */
.services .content-wrapper, .features .content-wrapper, .features .text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.features {
  background: #fafafa;
  border-radius: 14px;
  box-shadow: 0 2px 20px #A9323B0a;
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* TESTIMONIALS */
.testimonials {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px #A9323B0d;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.testimonial-card {
  background: #F7F3F0;
  color: #222;
  box-shadow: 0 1px 10px rgba(39, 81, 76, 0.10);
  border-radius: 16px;
  padding: 32px 24px 20px 24px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card blockquote {
  color: #2a2320;
  font-family: 'Playfair Display', serif;
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 16px;
  text-align: center;
}
.testimonial-card cite {
  font-family: 'Montserrat', sans-serif;
  color: #A9323B;
  font-weight: 500;
  font-size: 0.99rem;
}

/* CONTACT SECTION */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 1.06rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.cta-contact {
  margin-top: 18px;
}

/* POLICY PAGES */
.policy {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 20px #A9323B0c;
}
.policy h1, .policy h2 {
  color: #A9323B;
}
.policy ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
.policy ul li:before {
  content: '• ';
  color: #27514C;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.policy a { color: #A9323B; text-decoration: underline; transition: color 0.14s; }
.policy a:hover { color: #27514C; }

/* FOOTER */
footer {
  background: #27514C;
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 72px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 24px #A9323B10;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #F7F3F0;
  opacity: 0.88;
  font-size: 1.03rem;
  font-weight: 500;
  transition: color 0.16s, opacity 0.16s;
  text-decoration: underline;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A9323B;
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 1rem;
}
.footer-info img { width: 20px; height: 20px; margin-right: 6px; vertical-align: middle; }

/* SPACING FOR COMMON FLEX CONTAINERS */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container .card,
.content-grid > * {
  margin-bottom: 20px;
}
.features .feature-item,
.feature-grid li {
  margin-bottom: 20px;
}

/* MICRO-INTERACTIONS */
.card, .feature-grid li, .testimonial-card {
  transition: transform 0.16s, box-shadow 0.16s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px #A9323B33;
  transform: translateY(-4px) scale(1.025);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .testimonial-cards {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .main-nav, .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .hero {
    padding: 42px 0 18px 0;
    margin-bottom: 40px;
  }
  .cta {
    padding: 28px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-cards {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-info {
    font-size: 15px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .section {
    padding: 22px 4px;
    margin-bottom: 42px;
  }
  .features, .policy, .testimonials {
    padding: 22px 4px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}

/* ACCESSIBILITY & FOCUS STATES */
a, button, .cta, .main-nav a, .mobile-nav a {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  box-shadow: 0 0 0 3px #A9323B55;
  outline: none;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #222;
  box-shadow: 0 -2px 32px #A9323B13;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 24px 14px 16px 14px;
  z-index: 9000;
  transition: transform 0.22s, opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}
.cookie-banner p {
  font-size: 1rem;
  max-width: 380px;
  margin: 0 18px 0 0;
  color: #222;
  font-family: 'Montserrat', sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-banner button {
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.13s;
  box-shadow: 0 1px 12px #A9323B22;
}
.cookie-banner .accept {
  background: #A9323B;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #27514C;
}
.cookie-banner .reject {
  background: #ddd;
  color: #A9323B;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #A9323B;
  color: #fff;
}
.cookie-banner .settings {
  background: #27514C;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #A9323B;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 7px 12px 7px;
  }
  .cookie-banner p {max-width:unset; margin:0 0 8px 0;}
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 12000;
  background: rgba(39,81,76,0.28);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.24s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-popup {
  background: #fff;
  border-radius: 18px;
  max-width: 370px;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 6px 48px #A9323B25;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: popfade 0.38s cubic-bezier(.55,1.6,.42,1.1);
}
@keyframes popfade {
  0% { opacity: 0; transform: scale(0.84); }
  78% { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-popup h2 {
  color: #A9323B;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.cookie-popup .category {
  background: #fafafa;
  border-radius: 11px;
  padding: 12px 10px;
  margin-bottom: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-popup label {
  font-size: 1.03rem;
  flex:1;
}
.cookie-popup input[type=checkbox] {
  accent-color: #A9323B;
  width: 19px; height: 19px;
  border-radius: 5px;
}
.cookie-popup .category.essential {
  opacity: .75;
}
.cookie-popup .category .always-on {
  color: #27514C;
  font-size: .9rem;
  margin-left: 8px;
}
.cookie-popup .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  font-size: 1.32rem;
  color: #A9323B;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-popup .close-modal:hover,
.cookie-popup .close-modal:focus {
  color: #27514C;
}
.cookie-popup .cookie-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 11px;
}
.cookie-popup .cookie-actions button {
  margin-right: 6px;
  border-radius: 16px;
  padding: 7px 17px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
  background: #A9323B;
}
.cookie-popup .cookie-actions button.settings {
  background: #27514C;
}
.cookie-popup .cookie-actions button.reject {
  background: #ddd;
  color: #A9323B;
}
.cookie-popup .cookie-actions button.accept {
  background: #A9323B;
}
.cookie-popup .cookie-actions button:hover, .cookie-popup .cookie-actions button:focus {
  opacity: 0.90;
  background: #27514C;
}

/* MISC LINK STYLES */
a {
  color: #A9323B;
  text-decoration: none;
  transition: color .14s;
}
a:hover, a:focus {
  color: #27514C;
  text-decoration: underline;
}
nav a.cta, .mobile-nav a.cta {
  color: #fff;
  background: linear-gradient(90deg, #A9323B, #27514C);
  border-radius: 28px;
  padding: 8px 26px !important;
}
nav a.cta:hover, .mobile-nav a.cta:hover { background: linear-gradient(90deg, #A9323B 40%, #27514C); }

/* GENERAL ELEMENTS */
::-webkit-input-placeholder {color:#A9323BAA;}
::-moz-placeholder {color:#A9323BAA;}
:-ms-input-placeholder {color:#A9323BAA;}
::placeholder {color:#A9323BAA;}

/* VISIBILITY HELPERS */
@media (max-width: 600px) {
  .cta .container { padding: 0 1px; }
  .footer-info {
    font-size: 14px;
  }
}

/* PRINT STYLES */
@media print {
  header, nav, .mobile-menu, footer, .cookie-banner, .cookie-modal { display: none !important; }
}
