/* RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #243447;
  background: #fff8f4;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
a {
  color: #bfa66a;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #a48742;
  outline: none;
}
:focus {
  outline: 2px solid #bfa66a;
  outline-offset: 4px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2d2020;
  font-weight: 700;
  margin-bottom: .5em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.16rem; }
small { font-size: .95rem; color: #4b4b4b; }
subheadline, .subheadline {
  color: #984c1e;
  font-size: 1.25rem;
  margin-bottom: 1.7em;
  font-weight: 400;
}

/* BRAND COLOR VARIABLES (WITH FALLBACKS) */
:root {
  --color-primary: #243447;
  --color-secondary: #BFA66A;
  --color-accent: #fff;
  --color-warm-bg: #fff8f4;
  --color-warm-soft: #ffeedd;
  --color-warm-deep: #e3bc7d;
  --color-shadow: rgba(191,166,106,.13);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 6px;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 16px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px var(--color-shadow);
}

/* Display: flex for all containers */
.main-nav,
.footer-nav,
.footer-legal-nav,
.feature-grid,
.feature-icons,
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.feature-grid {
  gap: 24px;
}
.feature-icons {
  margin-top: 18px;
  gap: 20px;
  align-items: center;
}
.service-cards {
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 24px;
  transition: box-shadow .18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(191,166,106,.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero-section {
  padding: 66px 0 34px 0;
  background: linear-gradient(120deg, #fff8f4 70%, #fde3b0 100%);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.hero-section .content-wrapper {
  max-width: 660px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 20px;
}
.hero-section h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

/* BUTTONS & CTA */
.cta-btn, .cta-section .cta-btn, .cookie-banner__controls button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 1.13rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--color-shadow);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, color .18s, transform .18s;
  margin-top: 8px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus, .cookie-banner__controls button:hover, .cookie-banner__controls button:focus {
  background: #a48742;
  color: #fff;
  box-shadow: 0 5px 19px rgba(212,152,77,.17);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* NAVIGATION & HEADER */
header {
  width: 100%;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 10px 0;
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.logo {
  margin-right: 18px;
  height: 56px;
  display: flex;
  align-items: center;
}
.logo img { height: 56px; border-radius: 0; }
.main-nav {
  flex: 1 1 auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-size: 1.08rem;
  color: var(--color-primary);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: background .16s, color .18s;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-warm-bg);
  color: #bfa66a;
}
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-left: 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: background .18s, box-shadow .15s;
  padding: 2px 10px 2px 10px;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  background: #ffdca1;
}
.cta-btn {
  flex-shrink: 0;
  margin-left: 20px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,52,71, 0.90);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 300;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  margin: 26px 28px 10px 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 6px 16px;
  transition: color .17s, background .17s;
  border-radius: var(--radius-md);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffdca1;
  background: #24344733;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 10px 4px 10px 4px;
  border-radius: var(--radius-md);
  transition: background .18s, color .18s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: #ffeedc88;
  color: #bfa66a;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 950px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 950px) {
  .cta-btn {
    margin-left: 6px;
  }
}

/* PAGE SECTIONS */
.section, .about-section, .features-section, .services-section, .contact-section, .faq-section, .process-section, .team-section, .testimonials-section, .confirmation-section, .legal-section, .cta-section, .pricing-section {
  background: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
@media (max-width: 700px){
  .section, .about-section, .features-section, .services-section, .contact-section, .faq-section, .process-section, .team-section, .testimonials-section, .confirmation-section, .legal-section, .cta-section, .pricing-section {
    padding: 24px 8px;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }
}

/* Feature, Card, and Service Grids */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-top: 20px;
}
.feature-grid li {
  background: #fff8f4;
  flex: 1 1 235px;
  min-width: 220px;
  max-width: 280px;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 6px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 1.02rem;
  transition: box-shadow .18s, transform .17s;
}
.feature-grid li:hover {
  box-shadow: 0 5px 20px rgba(191,166,106,.21);
  background: #fff3e7;
  transform: translateY(-3px) scale(1.01);
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature-grid h3 {
  margin: 0 0 5px 0; font-size: 1.2rem;
}

.feature-icons li {
  background: #fde3b0;
  color: #243447;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 0.5px 4px var(--color-shadow);
  font-size: 1rem;
}
.feature-icons img {
  height: 26px;
  width: 26px;
  border-radius: var(--radius-sm);
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.service-card {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff8f4;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 13px var(--color-shadow);
  padding: 23px 17px 28px 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .17s, background .17s;
}
.service-card:hover {
  box-shadow: 0 7px 28px rgba(191,166,106,.17);
  background: #fff2e2;
}
.service-price {
  margin-top: 13px;
  color: #bfa66a;
  font-weight: 700;
  font-size: 1.02rem;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.text-section h3 {
  margin: 16px 0 5px 0;
  color: #bfa66a;
  font-size: 1.12rem;
}
.text-section ul,
.text-section ol {
  margin-bottom: 14px;
}
.text-section ul {
  margin-left: 18px;
  list-style: disc inside;
  gap: 7px;
}
.text-section li {
  margin-bottom: 4px;
}

.dl, dl {
  margin-top: 10px;
  margin-bottom: 6px;
}
dl dt {
  font-weight: 700;
  color: #bfa66a;
  margin-top: 10px;
}
dl dd {
  margin-left: 0;
  margin-bottom: 8px;
}

.table, table {
  width: 100%;
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff8f4;
  margin: 0 auto 8px auto;
  box-shadow: 0 1px 8px var(--color-shadow);
}
table th, table td {
  padding: 13px 10px;
  border-bottom: 1px solid #ffeedd;
}
table th {
  background: #fde3b0;
  color: #243447;
  font-weight: 700;
  text-align: left;
}
table tr:last-child td {
  border-bottom: none;
}

ol {
  list-style: decimal inside;
  margin-left: 18px;
}

/* TESTIMONIALS */
.testimonials-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff8f4;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 20px 23px 17px 23px;
  min-width: 180px;
  color: #262626;
  font-size: 1.06rem;
  margin-right: 10px;
  margin-bottom: 12px;
  transition: box-shadow .16s, transform .16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(210,180,130,.17);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #262626;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}
.testimonial-card span {
  color: #bfa66a;
  font-size: 1.03rem;
  font-weight: 700;
  margin-top: -3px;
}
.seal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffeedd;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  color: #243447;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 16px;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.seal img {
  width: 38px; height: 38px;
}

/* FOOTER */
footer {
  border-top: 1.5px solid #ffeedd;
  background: #fff8f4;
  padding: 34px 0 18px 0;
  flex-shrink: 1;
}
.footer-nav, .footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 8px;
  font-size: 1.07rem;
}
.footer-nav a, .footer-legal-nav a {
  color: #2d2020;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background .14s, color .13s;
}
.footer-nav a:hover, .footer-legal-nav a:hover {
  background: #fde3b0;
  color: #bfa66a;
}
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 14px 0 10px 0;
}
.footer-social a img {
  width: 28px; height: 28px;
}
footer small {
  display: block;
  text-align: left;
  margin-top: 18px;
  color: #999;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff8f4;
  color: #432d11;
  box-shadow: 0 -2px 18px var(--color-shadow);
  z-index: 2000;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: transform .38s cubic-bezier(.68,-0.55,.27,1.55), opacity .22s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 1.08rem;
  text-align: center;
  color: #41382d;
}
.cookie-banner__controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}
.cookie-banner__controls button {
  border: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 700;
  margin-right: 3px;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background .16s, color .14s, box-shadow .16s;
}
.cookie-banner__controls button:last-child {
  background: #e3bc7d;
  color: #243447;
}
.cookie-banner__controls button:nth-child(2) {
  background: #fde3b0;
  color: #842c01;
}
/* Modal for Cookie Settings */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  min-width: 320px;
  max-width: 96vw;
  min-height: 280px;
  background: #fff;
  z-index: 2100;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 64px rgba(36, 52, 71, .10);
  padding: 32px 25px 27px 25px;
  transition: opacity .3s, transform .33s cubic-bezier(.33,1.03,.37,.97);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cookie-modal__title {
  font-size: 1.3rem;
  color: #243447;
  font-family: 'Playfair Display', Georgia, serif;
}
.cookie-modal__close {
  font-size: 1.9rem;
  color: #bfa66a;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 5px 15px;
  transition: background .14s, color .13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #fde3b0bb;
  color: #432d11;
}
.cookie-modal__content {
  margin-bottom: 15px;
  color: #432d11;
  font-size: 1.08rem;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.cookie-modal__category label {
  font-weight: 500;
  color: #684d24;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: #bfa66a;
  width: 21px;
  height: 21px;
}
.cookie-modal__save {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 26px;
  border: none;
  padding: 13px 32px;
  margin-top: 7px;
  float: right;
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 7px var(--color-shadow);
  cursor: pointer;
  transition: background .14s, box-shadow .15s;
}
.cookie-modal__save:hover {
  background: #a48742;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .content-wrapper,
  .service-cards,
  .feature-grid,
  .main-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .feature-grid {
    align-items: stretch;
  }
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 800px){
  h1 { font-size: 2rem; }
  h2 { font-size: 1.48rem; }
}
@media (max-width: 768px) {
  .hero-section { padding: 38px 0 18px 0; }
  .content-wrapper,
  .service-cards,
  .feature-grid,
  .feature-icons,
  .cookie-banner__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  .feature-grid li, .service-card {
    min-width: unset;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .feature-icons li {
    min-width: unset;
    width: 100%;
    justify-content: flex-start;
  }
  .content-grid {
    flex-direction: column !important;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 510px) {
  body { font-size: 15px; }
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.11rem; }
  .logo img { height: 38px; }
  .mobile-menu-close { font-size: 1.4rem; }
  .footer-social a img { width: 22px; height: 22px; }
}

/* --- ADDITIONAL SPACING --- */
section + section { margin-top: 20px; }
.section, .card, .service-card, .feature-grid li, .testimonial-card, .footer-nav a, .footer-legal-nav a, .footer-social a, .cta-section {
  margin-bottom: 20px;
}

/* --- MICROINTERACTIONS --- */
.cta-btn, .service-card, .feature-grid li, .testimonial-card {
  transition: box-shadow .18s, background .18s, transform .17s;
}
.cta-btn:active, .service-card:active, .feature-grid li:active, .testimonial-card:active {
  transform: scale(.99);
  box-shadow: 0 1px 6px var(--color-shadow);
}

/* --- TABLES --- */
table { border-radius: var(--radius-md); overflow: hidden; }
table th, table td { border-bottom: 1px solid #fde3b0; }
table tr:last-child td { border: none; }

/* Forms (future-proof) */
input, textarea, select {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1.2px solid #e3bc7d;
  background: #fff;
  font-size: 1rem;
  box-shadow: 0 1px 6px var(--color-shadow);
  margin-bottom: 12px;
  font-family: "Open Sans", Arial, sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #bfa66a;
  outline: none;
}

/* Utility classes */
.hide { display: none !important; }
.visible { display: block !important; }

/* Z-INDEX FOR LAYERS */
header { z-index: 600 !important; }
.mobile-menu { z-index: 1000 !important; }

/* CUSTOM SCROLLBAR FOR MODALS & MOBILE MENU */
.cookie-modal::-webkit-scrollbar, .mobile-menu::-webkit-scrollbar {
  width: 10px;
  background: #fde3b0;
}
.cookie-modal::-webkit-scrollbar-thumb, .mobile-menu::-webkit-scrollbar-thumb {
  background: #e3bc7d;
  border-radius: var(--radius-sm);
}

/* End of CSS */
