/* ===================================================================
   CSS RESET & BASE VARIABLES
   =================================================================== */
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.6;
  background: #FAF9F6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  display: block;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* == Variables == */
:root {
  --primary: #2C334C;
  --primary-90: #2c334cc8;
  --secondary: #F2E9E1;
  --secondary-soft: #F8F6F2;
  --accent: #A87C5F;
  --accent-alt: #80522E;
  --white: #FFFFFF;
  --black: #232323;
  --text: #2C334C;
  --text-light: #6b6f80;
  --border: #e4ded7;
  --shadow: 0 2px 8px rgba(44, 51, 76, 0.10);
  --radius: 10px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Playfair Display'), local('PlayfairDisplay'), url(https://fonts.gstatic.com/s/playfairdisplay/v30/nuFiD-vYSZviVYUb_rj3ij__anPXPTw.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Nunito'), url(https://fonts.gstatic.com/s/nunito/v24/XRXV3I6Li01BKofA6sKUYevI.woff2) format('woff2');
}

/* ===================================================================
   TYPOGRAPHY & GENERAL
   =================================================================== */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #FAF9F6;
  font-size: 1rem;
  letter-spacing: 0.03em;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.18rem; margin-bottom: 12px;
}
.subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 400;
}
p, li, ul, ol {
  font-size: 1rem;
  color: var(--text);
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}
em, q {
  font-style: italic;
  color: var(--accent-alt);
}
blockquote {
  font-size: 1.18rem;
  font-family: var(--font-display);
  color: var(--primary);
  background: var(--secondary-soft);
  border-left: 5px solid var(--accent);
  margin: 0 0 10px 0;
  padding: 14px 24px 10px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 24px;
}

/* ===================================================================
   SPACING & LAYOUT (MANDATORY CLASSES)
   =================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
}
.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: 20px;
  padding: 20px;
  background: var(--secondary-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 480px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------------
   FLEXBOX ONLY: Responsive flex directions
   ------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 16px;
  }
}

/* ===================================================================
   HEADER / NAVIGATION
   =================================================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(44, 51, 76, 0.08);
  position: sticky; top: 0; z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  justify-content: flex-start;
}
.main-nav > a {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav > a.cta.primary {
  background: var(--accent);
  color: var(--white);
  padding: 8px 18px;
  font-family: var(--font-body);
  border-radius: 30px;
  font-weight: 600;
  margin-left: auto;
  transition: background 0.2s;
}
.main-nav > a.cta.primary:hover,
.main-nav > a.cta.primary:focus {
  background: var(--accent-alt);
  color: var(--white);
  outline: none;
}
.main-nav > a:hover,
.main-nav > a:focus {
  background: var(--secondary);
  color: var(--accent-alt);
  outline: none;
}
.main-nav > a img {
  height: 36px;
}

/* Hamburger button on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 12px;
  color: var(--primary);
  transition: background 0.2s;
  z-index: 28;
  border-radius: 10px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary-soft);
}

/* Hide menu links on mobile, show hamburger */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 18px; right: 24px;
  }
}

/* =========== MOBILE MENU (slide in/out) ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--white);
  box-shadow: 2px 0 24px rgba(44,51,76,0.22);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.5rem;
  align-self: flex-end;
  cursor: pointer;
  margin: 18px 24px 12px 0;
  padding: 8px 8px 0 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  gap: 24px;
  flex: 1 1 auto;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--primary);
  padding: 10px 8px 10px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.18s;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary-soft);
  color: var(--accent);
}

/* Always above everything */
.mobile-menu {
  box-shadow: var(--shadow);
}

/* ===================================================================
   HERO SECTION (shared)
   =================================================================== */
.hero {
  background: var(--secondary);
  padding: 54px 0 48px 0;
  box-shadow: 0 2px 16px rgba(44,51,76,0.04);
  min-height: 258px;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}
.hero .subtitle {
  max-width: 520px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero {
    padding: 40px 0 30px 0;
    margin-bottom: 24px;
  }
}

/* ===================================================================
   BUTTONS & CTA
   =================================================================== */
.cta {
  display: inline-block;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 1.06rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow 0.22s;
  outline: none;
}
.cta.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(168,124,95,0.13);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent-alt);
  box-shadow: 0 4px 18px rgba(44,51,76,0.10);
  color: var(--white);
}
.cta.secondary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  margin-right: 14px;
  font-weight: 600;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--white);
  color: var(--primary);
}

/* ===================================================================
   FEATURES, ICON LISTS, SERVICE CARDS
   =================================================================== */
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text);
}
ul li img {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.service-price, .price-range {
  color: var(--accent);
  font-weight: 600;
  margin-left: 5px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testimonial-card {
  background: var(--secondary-soft);
  color: var(--primary);
  font-size: 1rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 480px;
  position: relative;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.014em;
}
@media (max-width: 600px) {
  .testimonial-card {
    max-width: 100%;
    padding: 14px;
  }
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 8px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  opacity: .84;
  transition: color 0.18s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-alt);
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.brand-info img {
  height: 32px;
  display: inline-block;
}
.brand-info span {
  color: var(--text-light);
  font-size: 1rem;
}
.contact-summary {
  font-size: 0.98rem;
  color: var(--primary-90);
  margin-bottom: 16px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.social-links a img {
  width: 29px; height: 28px;
  opacity: .84;
  transition: opacity 0.18s, filter 0.18s;
  filter: grayscale(30%);
}
.social-links a:hover img {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 2px 10px rgba(168,124,95,0.13));
}
@media (max-width: 768px) {
  .footer-nav {
    gap: 10px;
    margin-bottom: 10px;
  }
  .brand-info span {
    font-size: 0.95rem;
  }
  .contact-summary {
    font-size: 0.90rem;
  }
}

/* ===================================================================
   COOKIES CONSENT BANNER & MODAL
   =================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1600;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(44,51,76,0.16);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 30px;
  gap: 20px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 240px;
  color: var(--primary);
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn, .cookie-btn--secondary {
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.cookie-btn {
  background: var(--accent);
  color: var(--white);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-alt);
}
.cookie-btn--secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 10px;
    justify-content: flex-end;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44, 51, 76, 0.22);
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.26s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal__dialog {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 28px 22px 28px;
  box-shadow: 0 6px 38px rgba(44,51,76,0.17);
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
}
.cookie-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.cookie-modal .cookie-btn--close {
  font-size: 2rem; background: none; color: var(--primary);
  border: none; padding: 2px 8px;
  cursor: pointer; border-radius: 8px;
  transition: background .2s;
}
.cookie-modal .cookie-btn--close:hover, .cookie-modal .cookie-btn--close:focus {
  background: var(--secondary);
}
.cookie-modal__body {
  margin-bottom: 18px;
}
.cookie-modal__category {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal__category label {
  font-size: 1em;
  color: var(--primary); font-weight: 500;
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.switch input {
  opacity: 0; width: 0; height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary-soft);
  transition: 0.2s;
  border-radius: 24px;
}
.switch input:checked + .slider {
  background: var(--accent);
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%%;
  transition: 0.2s;
  box-shadow: 0 2px 8px #e9dfd4;
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 480px) {
  .cookie-modal__dialog {
    padding: 16px 4vw 12px 4vw;
    min-width: 0; width: 98vw;
  }
}

/* ===================================================================
   FORM FIELDS (for possible custom forms)
   =================================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--secondary-soft);
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--accent);
  background: var(--white);
}
label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ===================================================================
   MAP PLACEHOLDER (for contact page)
   =================================================================== */
.map-placeholder {
  background: var(--secondary-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  padding: 1.4em;
  text-align: center;
  font-size: 1.04rem;
  margin-top: 1em;
  font-family: var(--font-body);
}

/* ===================================================================
   MEDIA QUERIES FOR TYPOGRAPHY SCALE & SPACING
   =================================================================== */
@media (max-width: 700px) {
  h1 { font-size: 2rem;}
  h2 { font-size: 1.4rem;}
  h3 { font-size: 1.11rem;}
  .subtitle { font-size: 1rem;}
}

/* ===================================================================
   MISC
   =================================================================== */
::-webkit-scrollbar { width: 6px; background: #eee; }
::-webkit-scrollbar-thumb { background: #ded9d4; border-radius: 9px; }
::selection { background: var(--secondary); }

/* Animate subtle fade for main (page transitions) */
main {
  animation: pageAppear 0.78s cubic-bezier(.22,0,.08,1) 0s 1;
}
@keyframes pageAppear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Cards + effects */
.card, .feature-item, .testimonial-card, .cookie-modal__dialog {
  transition: box-shadow 0.26s, transform 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-2.5px) scale(1.008);
  box-shadow: 0 6px 24px rgba(44,51,76,0.13);
}

/* Accessibility: Focus ring for keyboard navigation */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===================================================================
   SPECIAL: TABLE (if found in policy pages)
   =================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px 0;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--primary);
}
th {
  color: var(--accent-alt);
  font-family: var(--font-display);
}

/* ===================================================================
   PRINT
   =================================================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
