/* ===============================
   CSS RESET & BASE 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, main, 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F6F5F1;
  color: #232626;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; transition: color 0.25s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: transparent;
}
*:focus {
  outline: 2px solid #AE8625;
  outline-offset: 2px;
}

/* =========================================
   BRAND VARIABLES (FALLBACKS for CSS vars)
   ========================================= */
:root {
  --brand-primary: #11425B;
  --brand-secondary: #2E7D63;
  --brand-accent: #F6F5F1;
  --brand-gold: #AE8625;
  --brand-gold-dark: #8B6F18;
  --brand-shadow: rgba(17,66,91,0.12);
  --brand-border: #ded7cd;
  --font-display: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =====================
   LUXURY PREMIUM STYLE
   ===================== */

body {
  background: var(--brand-accent);
  color: #262324;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .5px;
}
h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
@media (min-width: 700px) {
  h1 { font-size: 3rem; }   /* 48px */
  h2 { font-size: 2.5rem; } /* 40px */
  h3 { font-size: 1.5rem; }
}
p, ul, ol, li { font-family: var(--font-body); font-size: 1rem; }
strong { font-family: var(--font-display); font-weight: 600; color: var(--brand-secondary); }

/* Headers and Hero Styles */
header {
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 2px 10px 0 var(--brand-shadow);
  min-height: 70px;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  justify-content: space-between;
}
header img {
  height: 48px;
  max-width: 140px;
  margin-right: 16px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, color 0.25s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-gold);
  border-bottom: 2px solid var(--brand-gold);
}

.cta-btn {
  background: var(--brand-primary);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: 36px;
  padding: 12px 30px;
  margin-left: 16px;
  box-shadow: 0 4px 24px 0 var(--brand-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  border: 2px solid var(--brand-gold);
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-gold);
  color: #fff;
  box-shadow: 0 6px 32px 0 var(--brand-shadow);
  border-color: var(--brand-primary);
  letter-spacing: 0.5px;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .cta-btn {
    margin-left: 6px;
    padding: 11px 20px;
    font-size: 0.97rem;
  }
  header img {
    max-width: 110px;
    height: 36px;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(98deg, var(--brand-accent) 65%, #f4edda 100%);
  padding: 0;
  border-bottom: 1px solid var(--brand-border);
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 250px;
  padding-top: 48px;
  padding-bottom: 24px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  align-items: flex-start;
}
.hero h1 {
  color: var(--brand-primary);
  font-size: 2.1rem;
}
.hero p {
  color: #484644;
  font-size: 1.14rem;
  margin-bottom: 8px;
}
.hero .cta-btn {
  margin-top: 4px;
}
@media (max-width: 768px) {
  .hero .container { padding-top: 24px; padding-bottom: 12px; }
  .hero h1 { font-size: 1.23rem; }
}

/* =====================
   FLEXBOX LAYOUT PATTERNS
   ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 var(--brand-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 var(--brand-shadow);
  position: relative;
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 350px;
  padding: 28px 20px;
  border: 1px solid var(--brand-border);
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 var(--brand-shadow);
  border-color: var(--brand-gold);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.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;
}
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--brand-gold);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(174,134,37,0.08), 0 1.5px 3px 0 var(--brand-shadow);
  margin-bottom:20px;
  color: #141414;
  font-family: var(--font-body);
  position: relative;
  transition: border-color .26s, box-shadow .2s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #232228;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--brand-secondary);
  font-family: var(--font-display);
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--brand-gold-dark);
  box-shadow: 0 6px 22px 0 rgba(174,134,37,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* ==========
   SECTION SPACING
   ========== */
main > section, .about, .features, .services, .contact {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  main > section, .about, .features, .services, .contact {
    margin-bottom: 36px;
  }
}

.features ul,
.services ul,
.about ul {
  margin-top: 10px;
  padding-left: 18px;
}
.features li,
.services li,
.about li {
  margin-bottom: 14px;
  font-size: 1.05rem;
  position: relative;
  padding-left: 14px;
}
.features li:before,
.services li:before,
.about li:before {
  content: '\2022';
  color: var(--brand-gold);
  font-size: 1.6rem;
  position: absolute;
  left: 0;
  top: -3px;
}

/* =============
   FOOTER
   ============= */
footer {
  background: #fff;
  border-top: 1.5px solid var(--brand-border);
  padding: 38px 0 20px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-navigation {
  display: flex;
  gap: 26px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-navigation a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
  border-bottom: 1.2px solid transparent;
  transition: color 0.20s, border 0.18s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: var(--brand-gold);
  border-color: var(--brand-gold);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  justify-content: center;
}
.social-links img {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  padding: 3px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(174,134,37,0.06);
  transition: border .16s, box-shadow .18s;
  cursor: pointer;
}
.social-links img:hover, .social-links img:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 14px 0 var(--brand-shadow);
}
footer p {
  color: #4A4742; font-size: 0.92rem;
  margin-top: 4px;
}

/* =============================================
   MOBILE NAVIGATION / BURGER MENU
   ============================================= */
.mobile-menu-toggle {
  background: #fff;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--brand-primary);
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: background 0.18s, border 0.14s, color 0.13s;
  z-index: 90;
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-gold);
  color: #fff;
}
/* Show burger on mobile */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,66,91,0.97);
  z-index: 1001;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.67,.04,0,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 22px 20px 10px 20px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1020;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 18px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border 0.17s, color 0.13s;
  width: max-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-gold);
  border-bottom: 1.5px solid var(--brand-gold);
}
@media (max-width: 980px) {
  .mobile-menu { display: flex; }
}

/* ===============================
   COOKIE CONSENT BANNER + MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: #fff;
  color: #232324;
  box-shadow: 0 -2px 10px 0 rgba(17,66,91,0.12);
  border-top: 2.5px solid var(--brand-gold);
  padding: 24px 16px 18px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 4000;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 1.05rem;
  animation: cookieSlideIn 0.5s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-message {
  flex: 3 1 320px;
  font-size: 1.04rem;
  color: #272324;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-cookie {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 21px;
  padding: 8px 28px;
  border: 2px solid var(--brand-gold);
  background: #fff;
  color: var(--brand-gold);
  box-shadow: 0 1px 7px rgba(174,134,37,0.06);
  cursor: pointer;
  transition: background .14s, color .12s, border .14s;
}
.btn-cookie.accept {
  background: var(--brand-gold);
  color: #fff;
}
.btn-cookie.accept:hover, .btn-cookie.accept:focus {
  background: var(--brand-gold-dark);
  color: #fff;
  border-color: var(--brand-gold-dark);
}
.btn-cookie.reject:hover, .btn-cookie.reject:focus {
  background: #f1ede5;
  border-color: var(--brand-gold-dark);
  color: var(--brand-gold-dark);
}
.btn-cookie.settings:hover, .btn-cookie.settings:focus {
  background: #f6edd0;
  border-color: var(--brand-gold-dark);
  color: var(--brand-primary);
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 4100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,66,91,0.62);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 28px 0 rgba(17,66,91,0.23);
  max-width: 430px;
  width: 90%;
  padding: 34px 28px 28px 28px;
  position: relative;
  animation: modalIn .4s;
}
@keyframes modalIn {
  from { transform: scale(0.8); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.04rem;
}
.cookie-modal .category-info {
  flex: 2;
  color: #464444;
  font-size: .98rem;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 42px; height: 26px;
  display: flex; align-items: center;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f2f0ed;
  border-radius: 15px;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: var(--brand-gold);
}
.cookie-modal .toggle-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 3px rgba(0,0,0,0.11);
  transition: transform .24s cubic-bezier(.6,.2,0,1);
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .always-on {
  color: var(--brand-secondary);
  font-weight: 600;
  font-size: 0.97rem;
  margin-left: 10px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.36rem;
  color: var(--brand-gold-dark);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-primary);
}

@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-left: 6px; padding-right: 6px;
  }
  .cookie-banner .cookie-message { font-size: 0.97rem; }
  .cookie-modal { padding:24px 7px 20px 7px; }
  .cookie-modal .cookie-modal-actions { gap:11px; margin-top:18px; }
}

/* ========================
   FORM & TEXT-SECTION
   ======================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 10px;
}
.text-section ul {
  margin-left: 12px;
  margin-top: 5px;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.text-section a {
  color: var(--brand-primary);
  font-weight: 600;
  transition: color 0.15s;
  border-bottom: 1px solid var(--brand-secondary);
}
.text-section a:hover, .text-section a:focus {
  color: var(--brand-gold);
  border-bottom: 1.5px solid var(--brand-gold);
}

/* =============
   ABOUT / SERVICES / CONTACT SECTIONS
   ============= */
.about .container, .services .container, .features .container, .contact .container {
  padding-top: 24px;
  padding-bottom: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 768px) {
  .content-wrapper, .text-section {
    gap: 11px;
  }
}
.services ul li, .features ul li {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--brand-gold);
  box-shadow: 0 1.5px 6px 0 var(--brand-shadow);
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: box-shadow .14s, border-color .18s;
}
.services ul li:hover, .features ul li:hover {
  box-shadow: 0 3.5px 16px 0 var(--brand-shadow);
  border-left: 4px solid var(--brand-gold-dark);
}
.services ul li span {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 9px;
}

/* =============
   BUTTONS (General)
   ============= */
button {
  cursor: pointer;
  transition: background .12s, color .10s, border .13s;
}

/* =============
   RESPONSIVE TYPO AND LAYOUT
   ============= */
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  .card-container { gap: 14px; }
}
@media (max-width: 580px) {
  header .container { padding: 0 5px; }
  .footer-navigation, .social-links { gap: 11px; }
  .section, .features .container, .services .container, .about .container, .contact .container { padding: 10px 2px; }
}

/* =============
   MICRO-INTERACTIONS
   ============= */
.cta-btn::after {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 36px;
  opacity: 0;
  background: var(--brand-secondary);
  transition: opacity .24s;
}
.cta-btn:active::after {
  opacity: 0.07;
}
.card::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 7px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg,#fff 60%,var(--brand-gold) 100%);
  opacity: 0.18;
}
.card:focus-within::before { opacity: 0.26; }

/* =============
   UTILITIES / MISC
   ============= */
.d-none { display: none !important; }
.z-top { z-index: 9999; }

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