/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F3;
  color: #322d2d;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1E2D3A;
  text-decoration: none;
  transition: color 0.2s;
}
a.cta {
  color: #fff;
}
ul, ol {
  margin-left: 1.25em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8e4dd;
}
th {
  background: #fffbea;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* BRAND COLOR VARIABLES */
:root {
  --primary: #1E2D3A;
  --secondary: #8BB5D1;
  --accent: #F0F4F8;
  --warm1: #FBEEDB;
  --warm2: #FFD5A9;
  --warm3: #FFB980;
  --cta: #DB7B36;
  --cta-dark: #b86325;
  --shadow: 0 2px 18px rgba(220, 160, 96, 0.09), 0 1.5px 8px rgba(30,45,58,0.05);
}

/* TYPOGRAPHY & HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, ul, ol, dl {
  font-size: 1rem;
  color: #322d2d;
  margin-bottom: 16px;
}
blockquote {
  font-size: 1.15rem;
  color: #995800;
  background: var(--warm2);
  padding: 16px 24px;
  border-radius: 20px;
  margin: 0 0 16px 0;
  box-shadow: var(--shadow);
  font-style: italic;
}
cite {
  color: #6a442d;
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: normal;
}

/* CONTAINER & SECTION STYLES */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* FLEX PATTERNS */
.card-container, .feature-grid, .features, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.011);
  box-shadow: 0 8px 40px rgba(219,123,54,0.09), 0 2px 10px rgba(30,45,58,0.08);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.features-description > ul {
  padding-left: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--warm1);
  border-radius: 16px;
  padding: 28px 23px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* HERO & PRIMARY SECTIONS */
.hero {
  background: linear-gradient(100deg, var(--warm1) 70%, var(--warm2) 100%);
  border-radius: 0 0 30px 30px;
  padding: 50px 0 36px 0;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 12px;
}
.hero .subheadline {
  font-size: 1.25rem;
  color: #955800;
  margin-bottom: 20px;
  font-weight: 500;
}

/* NAVIGATION BARS */
.main-header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(80,70,50,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 0 0 0;
  height: 76px;
  z-index: 1001;
}
.logo {
  display: block;
  margin-left: 20px;
  height: 56px;
  padding: 8px 0;
}
.logo img {
  height: 40px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 18px;
  border-radius: 18px;
  transition: background 0.19s, color 0.19s;
  margin-bottom: 0;
}
.main-nav a.cta {
  background: linear-gradient(90deg, var(--cta) 80%, var(--cta-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(219,123,54,0.11);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 28px;
  border-radius: 25px;
  margin-left: 12px;
  transition: background 0.22s, box-shadow 0.19s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: linear-gradient(90deg, var(--cta-dark) 70%, var(--cta) 100%);
  box-shadow: 0 6px 32px rgba(219,123,54,0.23);
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--warm1);
  color: var(--cta-dark);
}
.mobile-menu-toggle {
  display: none;
  height: 48px;
  width: 48px;
  background: var(--cta);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 18px;
  transition: background 0.2s, color 0.2s;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:hover {
  background: var(--cta-dark);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(225, 145, 60, 0.90);
  backdrop-filter: blur(3px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  transition: transform 0.4s cubic-bezier(.62,0,.4,1), opacity 0.4s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: #fff;
  color: var(--cta);
  font-size: 2.1rem;
  border: none;
  margin: 26px 24px 12px 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(219,123,54,0.07);
  transition: background 0.18s, color 0.19s;
  display: flex;
}
.mobile-menu-close:active, .mobile-menu-close:hover {
  background: var(--cta);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 25px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  background: #fff;
  color: var(--cta-dark);
  padding: 24px 28px;
  border-bottom: 1px solid #ffe8c7;
  transition: background 0.19s, color 0.16s;
  border-radius: 0;
  margin-bottom: 0;
}
.mobile-nav a.cta {
  background: var(--cta);
  color: #fff;
  margin: 20px 22px 0 22px;
  border-radius: 18px;
  font-weight: 700;
  text-align: center;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--warm2);
  color: var(--cta-dark);
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #eae1d0;
  padding: 34px 0 18px 0;
  margin-top: 50px;
  box-shadow: 0 -2px 10px rgba(220,160,96,0.06);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 12px;
  border-radius: 15px;
  transition: background 0.18s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--warm1);
  color: var(--cta-dark);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.96rem;
  color: #868381;
  margin-bottom: 0;
}
.footer-contact p {
  margin: 4px 0;
  color: #868381;
  text-align: center;
}

/* BUTTONS & CTA */
.cta, a.cta, button.cta {
  background: linear-gradient(90deg, var(--cta) 85%, var(--cta-dark) 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(219,123,54,0.14);
  transition: background 0.18s, box-shadow 0.18s, color 0.19s, transform 0.18s;
  display: inline-block;
  margin-top: 16px;
  letter-spacing: 0.015rem;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--cta-dark) 70%, var(--cta) 110%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(219,123,54,0.23);
  transform: translateY(-3px) scale(1.015);
}
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
}
button:focus, input:focus {
  outline: 2px solid var(--cta-dark);
}

/* CARD/SECTION FLEX LAYOUTS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  flex: 1 1 330px;
  min-width: 280px;
  max-width: 420px;
}
.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;
  margin-bottom: 40px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--warm1);
  border-radius: 20px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  flex-direction: row;
  min-width: 240px;
}
.testimonial-card blockquote {
  color: #63380a;
  background: transparent;
  font-style: italic;
  margin-bottom: 0;
  padding: 0;
  box-shadow: none;
}
.testimonial-card cite {
  color: #8e622e;
  font-style: normal;
  font-size: 1rem;
  margin-left: 8px;
}
.testimonials h2 {
  margin-bottom: 28px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* OTHER CUSTOM SECTIONS */
.privacy-hint {
  background: #fffbea;
  color: #472b11;
  font-size: 0.97rem;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 10px 0 16px 0;
}

/* ABOUT PAGE TEAM QUOTES */
.about-team blockquote {
  background: var(--warm1);
  color: #63380a;
  font-size: 1.06rem;
  margin-top: 10px;
}
.about-team cite {
  color: #b06d2d;
}

/* FAQ */
.faq-section dl {
  margin-bottom: 28px;
}
.faq-section dt {
  font-weight: 700;
  margin-top: 20px;
  color: var(--primary);
  font-size: 1.08rem;
}
.faq-section dd {
  color: #7e5836;
  margin-left: 0;
  margin-bottom: 12px;
  font-size: 0.99rem;
}
.faq-snippet dt { font-weight: 600; color: var(--primary); }
.faq-snippet dd { color: #7e5836; margin-bottom: 12px; }

/* SIMPLE TABLES (PRICING) */
.pricing-overview table {
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.pricing-overview td, .pricing-overview th {
  border-bottom: 1px solid #f5d5b2;
}

/* LEGAL SECTION */
.legal-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ICONS INLINE IN CONTACT */
.contact-direct img {
  display: inline-block;
  height: 22px;
  width: 22px;
  margin-right: 14px;
  vertical-align: -5px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffdea;
  box-shadow: 0 -2px 22px rgba(219,123,54,0.09);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 25px 14px 25px;
  z-index: 9999;
  font-size: 1.06rem;
  gap: 18px;
  transition: transform 0.32s cubic-bezier(.67,0,.3,1), opacity 0.26s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-banner.hide {
  transform: translateY(110%);
  opacity: 0;
}
.cookie-consent-banner-text {
  flex: 1 1 320px;
  color: #63380a;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-consent-banner button,
.cookie-consent-banner .cookie-settings-btn {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(219,123,54,0.09);
  cursor: pointer;
  transition: background 0.17s, color 0.14s;
}
.cookie-consent-banner .cookie-accept {
  background: var(--cta);
  color: #fff;
}
.cookie-consent-banner .cookie-accept:hover {
  background: var(--cta-dark);
}
.cookie-consent-banner .cookie-reject {
  background: #fff;
  color: var(--cta-dark);
  border: 1.5px solid var(--cta-dark);
}
.cookie-consent-banner .cookie-reject:hover {
  background: var(--warm2);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--warm3);
  color: #63380a;
}
.cookie-consent-banner .cookie-settings-btn:hover {
  background: var(--warm2);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,28,14,0.32);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.cookie-modal {
  background: #fffceb;
  border-radius: 20px;
  box-shadow: 0 14px 60px rgba(219,123,54,0.27);
  padding: 34px 28px 26px 28px;
  width: 96%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-modal-close {
  background: #fff;
  color: var(--cta-dark);
  border: none;
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(219,123,54,0.14);
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--cta);
  color: #fff;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ffdec5;
  font-size: 1.05rem;
  color: #63380a;
}
.cookie-modal-category:last-child {
  border: none;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--cta);
  width: 22px;
  height: 22px;
}
.cookie-modal input[disabled] {
  opacity: 0.7;
}
.cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 18px;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 1040px) {
  .container {
    max-width: 94vw;
    padding: 0 8vw;
  }
  .main-header {
    padding-left: 10px; padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .main-header {
    flex-direction: row;
    height: 66px;
  }
  .logo {
    margin-left: 10px;
    padding: 6px 0;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 9px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 36px 0 24px 0;
    border-radius: 0 0 20px 20px;
  }
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.12rem; }
  .testimonial-card, .card {
    min-width: unset;
    padding: 18px 10px;
    border-radius: 13px;
    flex: 1 1 98vw;
  }
  .testimonials h2 {
    margin-bottom: 18px;
  }
  .footer-contact {
    font-size: 0.91rem;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 10px 12px 6px 12px;
  }
}
@media (max-width: 550px) {
  .container {
    padding: 0 4vw;
  }
  .main-header {
    height: 50px;
  }
  .logo {
    margin-left: 5px;
    padding-top: 2px;
  }
  .logo img {
    height: 28px;
  }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1rem; }
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 4vw 12px 4vw;
    width: 95vw;
    min-width: unset;
  }
}

/* HOVER & MICRO-INTERACTIONS */
input, textarea {
  border-radius: 10px;
  border: 1.5px solid #ffefdc;
  padding: 11px 18px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.14s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--cta-dark);
  outline: none;
}

/* ICONS AND IMAGES ADJUST */
.features img, .feature-grid img, .contact-direct img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
  background: #ffd5a97e;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(237,185,120,0.13);
}
li {
  margin-bottom: 8px;
}
ol > li {
  margin-bottom: 13px;
}

/* Disables absolute for content (allowed for cookies modal) */
.card, .testimonial-card, .feature-item, .section, .hero, .legal-section {
  position: relative;
}

/* Prevent overlapping elements */
.card, .testimonial-card, .section, .privacy-hint, .feature-item {
  margin-bottom: 20px;
}

/* Fix for modern focus accessibility */
a:focus, .cta:focus, button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
