/* ===== 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: #fff; }
img { max-width: 100%; display: block; border-radius: 16px; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style-type: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; outline: none; }

/* ====== BRAND VARIABLES (fallbacks included) ====== */
:root {
  --color-primary: #234052;
  --color-secondary: #EAD7C0;
  --color-accent: #B3846B;
  --color-tertiary: #fff8f3;
  --color-background: #ffffff;
  --color-btn: #8B5A36;
  --color-btn-hover: #B3846B;
  --color-shadow: rgba(35,64,82,0.10);
  --text-dark: #234052;
  --text-normal: #433328;
  --text-light: #fff;
  --radius: 16px;
  --radius-btn: 24px;
  --shadow: 0 4px 24px var(--color-shadow);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ====== GLOBAL BASE STYLES ====== */
body {
  font-family: var(--font-body);
  color: var(--text-normal);
  font-size: 16px;
  background: var(--color-background);
  line-height: 1.65;
}
.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-tertiary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Avoid section shadow/creme background for hero/main banner */
section:first-of-type, main > section:first-of-type {
  background: none !important;
  box-shadow: none !important;
  padding-top: 48px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}
strong, b {
  color: var(--color-accent);
  font-weight: 700;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-btn);
  background: var(--color-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 16px 24px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}
p, ul li, ol li, address {
  font-size: 1rem;
  color: var(--text-normal);
  margin-bottom: 6px;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
ul li, ol li {
  padding-left: 0;
  position: relative;
}
em, i {
  font-style: italic;
  color: var(--color-btn);
}

/* ===== BUTTONS ===== */
.cta-btn, .cta-btn.hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.10rem;
  font-weight: bold;
  padding: 14px 34px;
  background: var(--color-btn);
  color: var(--text-light);
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 16px 0 rgba(139,90,54,.08);
  margin-top: 10px;
  transition: background .19s, box-shadow .22s, transform .19s;
  border: none;
}
.cta-btn.hero {
  font-size: 1.15rem;
  padding: 16px 42px;
  border-radius: 28px;
  margin-top: 16px;
}
.cta-btn:hover, .cta-btn:focus, .cta-btn.hero:hover, .cta-btn.hero:focus {
  background: var(--color-accent);
  color: var(--text-light);
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.cta-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
  padding-bottom: 3px;
  transition: color .16s;
}
.cta-link::after {
  content: '';
  display: block;
  width: 60%;
  border-bottom: 2px solid var(--color-accent);
  margin: 0 auto 0 0;
  transition: width .18s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--color-btn);
}
.cta-link:hover::after, .cta-link:focus::after {
  width: 96%;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-primary);
  color: var(--text-light);
  box-shadow: 0 4px 24px rgba(35,64,82,.06);
  padding: 0 0 0 0;
}
header .container {
  padding: 14px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 68px;
}
.logo img {
  height: 48px;
  width: auto;
  border-radius: 0;
}
nav.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav.main-nav a {
  color: var(--color-secondary);
  padding: 7px 10px;
  font-size: 1rem;
  border-radius: 8px;
  transition: background .13s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
/* Hide main nav on small screens */
@media (max-width: 992px) {
  nav.main-nav {
    display: none;
  }
}
.cta-btn {
  margin-left: 22px;
}
/* Mobile Burger Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  background: none;
  color: var(--color-secondary);
  margin-left: 14px;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: background .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(186,132,107,0.13);
}
@media (min-width: 993px) {
  .mobile-menu-toggle { display: none; }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 375px;
  background: var(--color-secondary);
  box-shadow: -4px 0 32px rgba(35,64,82,0.19);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.56,0,.33,1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 14px 0 0;
  background: none;
  font-size: 2rem;
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  padding: 3px 12px 2px 12px;
  transition: background .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 24px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--color-primary);
  background: none;
  padding: 8px 0;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background .15s, color .14s;
  width: 100%;
  font-weight: 500;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* ===== MAIN STRUCTURE & LAYOUTS ===== */
main {
  min-height: 60vh;
  margin-top: 0;
  margin-bottom: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 32px 4px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  flex: 1 1 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .19s, transform .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 40px rgba(35,64,82,0.10);
  transform: translateY(-2px) scale(1.03);
}
.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: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(35,64,82,0.11);
  margin-bottom: 20px;
  flex: 1 1 300px;
  color: var(--color-primary);
}
.testimonial-card blockquote {
  color: var(--color-accent);
  background: none;
  border-left: none;
  padding: 0;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== GRID-LIKE CONTAINERS BY FLEXBOX ===== */
.feature-grid, .team-grid, .values-list, .press-quotes, .service-categories, .package-overview, .step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid, .service-categories, .package-overview, .team-grid, .values-list, .press-quotes, .step-timeline {
  margin-bottom: 10px;
}
.feature-grid > div,
.team-grid > .team-member,
.values-list > div,
.press-quotes > div,
.service-categories > div,
.package-overview > div,
.step-timeline > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  transition: box-shadow .16s, transform .16s;
}
.feature-grid > div:hover,
.team-member:hover,
.values-list > div:hover,
.service-categories > div:hover,
.package-overview > div:hover {
  box-shadow: 0 8px 38px rgba(35,64,82,0.095);
  transform: translateY(-2px) scale(1.025);
}
.values-list img, .feature-grid img, .team-member img, .contact-details img, .service-list img, .package-overview img, .press-quotes img, .step-timeline img, .content-wrapper img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 2px;
  background: var(--color-secondary);
  padding: 2px;
  box-shadow: none;
}
.team-grid {
  gap: 22px;
}

/* ===== TABLE & COMPARISON ===== */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}
.comparison-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(35,64,82,0.09);
  font-size: 1rem;
  color: var(--color-primary);
}
.comparison-table th, .comparison-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-secondary);
  text-align: left;
}
.comparison-table th {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ===== SPECIAL MODULES ===== */
.service-list, .contact-details, .story-highlights ul, .benefits ul, .values-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
}
.service-list li, .benefits ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.story-highlights ul li {
  margin-left: 0;
}
.contact-details {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
  margin: 18px 0 22px 0;
}
.contact-details > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(186,132,107,0.06);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.color-palette {
  display: flex;
  flex-direction: row;
  gap: 18px;
  padding: 0;
}
.palette-color {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-right: 7px;
  vertical-align: middle;
  border: 1px solid #eee;
}
.quote-carousel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 48px 0 24px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin: 22px 0 10px 0;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
address {
  font-size: 0.96rem;
  color: var(--color-secondary);
  font-style: normal;
}
.footer-copy {
  margin-top: 16px;
  font-size: 0.92rem;
  opacity: 0.79;
  color: var(--color-secondary);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 8888;
  background: var(--color-tertiary);
  color: var(--color-primary);
  box-shadow: 0 -2px 34px rgba(35,64,82,.13);
  width: 100%;
  padding: 24px 24px 16px 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: cookieBannerIn .37s cubic-bezier(.66,0,.33,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-banner-content {
  flex: 1 1 300px;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--color-btn);
  color: #fff;
  border: none;
  margin-right: 6px;
  transition: background .16s, box-shadow .19s;
  box-shadow: 0 2px 8px rgba(139,90,54,0.11);
}
.cookie-btn.settings {
  background: var(--color-accent);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-btn);
  border: 1.5px solid var(--color-btn);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,90,54,0.13);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-btn);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,64,82, 0.35);
  z-index: 9990;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeinModal .27s;
}
@keyframes fadeinModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 400px;
  width: 95vw;
  padding: 32px 28px 26px 28px;
  box-shadow: 0 8px 60px rgba(139,90,54,0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-primary);
  position: relative;
  animation: modalIn .34s cubic-bezier(.77,0,.24,1);
}
@keyframes modalIn {
  from { transform: translateY(60px); opacity:0; } to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.42rem;
  color: var(--color-btn);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 1.08rem;
}
.cookie-modal-category label {
  flex: 1;
  color: var(--color-primary);
}
.cookie-modal-category input[type=checkbox] {
  width: 24px; height: 24px;
  accent-color: var(--color-accent);
  border-radius: 6px;
}
.cookie-category-essential {
  opacity: .82; pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: none;
  color: var(--color-accent);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 10px;
  transition: background .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
}

/* HIDE cookie banner/modal on demand */
.cookie-banner.hidden { display: none !important; }
.cookie-modal-overlay.hidden { display: none !important; }

/* ===== RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .container { max-width: 98vw; padding: 0 8px; }
  .footer-nav { flex-wrap: wrap; gap: 10px; }
  .content-wrapper, .feature-grid, .team-grid, .values-list, .press-quotes, .service-categories, .package-overview, .step-timeline, .color-palette {
    flex-direction: column;
    gap: 18px;
  }
  .contact-details {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.08rem; }
  .container { padding: 0 4px; }
  section, .section { padding: 22px 4px; margin-bottom: 32px !important; }
  .content-wrapper { gap: 14px; }
  .text-image-section, .content-grid, .card-container { flex-direction: column; gap: 14px; }
  .feature-grid > div, .team-member, .values-list > div, .service-categories > div, .package-overview > div, .press-quotes > div, .step-timeline > div {
    min-width: 0; width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card { padding: 12px 8px; gap: 10px; }
  .faq-item { padding: 14px 8px; }
  nav.main-nav { display: none; }
  .footer-nav { flex-direction: column; gap: 6px; padding: 0; }
  .logo img { height: 36px; }
}

/* Smaller mobile */
@media (max-width: 440px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 8px 16px 8px;
  }
  .cookie-banner-actions {
    gap: 8px;
    width: 100%;
  }
  .cookie-modal {
    padding: 14px 6vw;
    max-width: 97vw;
  }
}

/* ====== ANIMATIONS & INTERACTIONS ====== */
.card, .team-member, .feature-grid > div, .testimonial-card {
  transition: box-shadow .2s, transform .16s;
}
.card:hover, .team-member:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 45px rgba(186,132,107,0.13);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn:active { transform: scale(0.97); }

/* ====== ACCESSIBILITY ====== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ====== PRINT ====== */
@media print {
  * { background: none !important; color: #000 !important; box-shadow: none !important; }
  .cookie-banner, .cookie-modal-overlay, header, footer { display: none !important; }
  a { text-decoration: underline !important; }
  section, .container { padding: 0 !important; margin: 0 !important; width: 100% !important; }
}
