/* ==== 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F5F2;
  color: #163047;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #163047;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus-visible {
  outline: 2px solid #A18F5D;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.4em;
}
:root {
  --primary: #163047;
  --secondary: #A18F5D;
  --accent: #F5F5F2;
  --text: #163047;
  --white: #fff;
  --shadow: 0 4px 24px 0 rgba(22, 48, 71, 0.08);
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.14rem;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--text);
}
p.subheadline {
  font-size: 1.14rem;
  color: var(--secondary);
  font-family: var(--font-body);
  font-weight: 600;
}
strong, b {
  color: var(--primary);
  font-weight: bold;
}

/* ==== BUTTONS ==== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  text-transform: none;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, border 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--secondary);
  position: relative;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 24px 0 rgba(161,143,93, 0.18);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 24px 0 rgba(161,143,93, 0.18);
}

/* ==== PAGE STRUCTURE & CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  border-bottom: 1px solid #e2e2de;
  z-index: 7;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-family: var(--font-body);
}
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.04rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}
/* underline on active nav link (optional, here not implemented for all pages) */

header .btn-primary {
  margin-left: 24px;
}

/* ==== HERO SECTION ==== */
.hero {
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-lg);
  margin-top: 32px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero .container {
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1, .hero p, .hero a {
  color: var(--accent);
}
.hero .btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border: none;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: var(--white);
  color: var(--primary);
}

/* ==== FEATURES GRID & CARDS ==== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-item {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(161,143,93,0.09);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.feature-item .icon {
  font-size: 2.2rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 24px 0 rgba(161,143,93, 0.17);
  border-color: var(--secondary);
}

/* ==== CARDS & CARD CONTAINERS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 32px 0 rgba(22,48,71,0.10);
  border-left: 5px solid var(--secondary);
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card p {
  color: #222;
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
}
.testimonial-author {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 44px 0 rgba(22,48,71,0.17);
  border-left: 5px solid var(--primary);
}

/* ==== CONTENT GRID & TEXT-IMAGE SECTIONS ==== */
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--primary);
}

/* ==== INSIGHTS/NEWS ==== */
.news-list, .insights-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item, .insight-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.news-item:hover, .news-item:focus-within {
  box-shadow: 0 6px 36px 0 rgba(161,143,93,0.13);
  border-left: 4px solid var(--primary);
}

/* ==== CONTACT/THANK YOU ==== */
.contact-details {
  background: var(--white);
  border: 1px solid #e4e1d7;
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-placeholder {
  background: var(--accent);
  padding: 28px 16px;
  border-radius: var(--radius);
  color: var(--secondary);
  font-style: italic;
  margin-top: 8px;
  border: 1px solid #e2e2de;
  text-align: center;
}
.thank-you-message {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  color: var(--primary);
  align-items: flex-start;
}

/* ==== FOOTER ==== */
footer {
  background: #f8f7f2;
  color: var(--primary);
  border-top: 1px solid #e0ddcc;
  padding-top: 36px;
  padding-bottom: 24px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 36px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact p, .footer-contact a {
  font-size: 0.98rem;
  color: var(--primary);
}
.footer-contact a:hover { color: var(--secondary); }

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  z-index: 22;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px 0 rgba(161,143,93,0.08);
  transition: box-shadow 0.2s, background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 20px 0 rgba(161,143,93,0.14);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,48,71, 0.97);
  color: var(--white);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.76,0.12,0.24,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: var(--secondary);
  position: absolute;
  top: 20px; right: 24px;
  z-index: 51;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 70px;
  padding: 14px 32px;
  gap: 20px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.17s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}


/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 28px 0 rgba(22, 48, 71, 0.09);
  z-index: 100;
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  border-top: 2px solid var(--secondary);
  animation: cookieAppear 0.45s cubic-bezier(0.57, 1.1, 0.8, 1);
}
@keyframes cookieAppear {
  0% { bottom: -150px; opacity: 0; }
  100% { bottom: 0; opacity: 1; }
}
.cookie-banner .cookie-banner-title {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
.cookie-banner .cookie-btn {
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.14s, color 0.14s;
}
.cookie-banner .cookie-btn.cookie-btn-accept {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-btn.cookie-btn-accept:hover,
.cookie-banner .cookie-btn.cookie-btn-accept:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .cookie-btn.cookie-btn-settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-btn.cookie-btn-settings:hover,
.cookie-banner .cookie-btn.cookie-btn-settings:focus {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .cookie-btn.cookie-btn-reject {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-btn.cookie-btn-reject:hover,
.cookie-banner .cookie-btn.cookie-btn-reject:focus {
  background: #e5e5e1;
  color: var(--primary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,48,71,0.85);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s cubic-bezier(0.77,0,0.175,1);
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 54px 0 rgba(161,143,93,0.2);
  max-width: 480px;
  width: 98%;
  padding: 38px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalSlideIn 0.33s cubic-bezier(0.57, 1.1, 0.8, 1);
}
@keyframes modalSlideIn {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  color: var(--secondary);
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: #e4dec7;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(22,48,71,0.11);
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-category.essential .cookie-toggle {
  background: #e4dec7;
  cursor: not-allowed;
}
.cookie-category.essential label {
  color: #bbb;
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}
.cookie-modal-actions .btn-primary,
.cookie-modal-actions .btn-secondary {
  flex: 1;
}

/* ==== UTILITY CLASSES ==== */
.hide {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 12px; padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 6px; padding-right: 6px;
  }
  header .container { gap: 16px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { margin-bottom: 38px; padding: 24px 6px;}
  .hero .container { padding-top: 30px; padding-bottom: 30px;}
  header .container { flex-direction: row; padding-top: 10px; padding-bottom: 10px; }
  .main-nav,
  header .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .features-grid { gap: 18px; }
  .feature-item { min-width: 170px; max-width: 100%; padding: 18px 9px 18px 14px; }
  .card-container, .testimonial-slider { gap: 12px; }
  .content-grid, .news-list, .insights-list { gap: 12px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  footer .container { flex-direction: column; gap: 32px; align-items: flex-start; }
  .footer-logo img { height: 28px; }
}
@media (max-width: 540px) {
  h1, .hero h1 { font-size: 1.3rem; }
  h2 { font-size: 1.04rem; }
  .section { padding: 14px 2px; margin-bottom: 24px;}
  .card, .testimonial-card, .news-item { padding: 14px 8px; }
  .cookie-modal-content { padding: 18px 6px 12px 10px; min-width: 0; }
}

/* ===== LUXURY PREMIUM DETAILS ===== */
.card, .testimonial-card, .feature-item, .news-item, .insight-item, .contact-details, .thank-you-message {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero, .btn-primary, .btn-secondary, .testimonial-card {
  border-radius: var(--radius-lg);
}
section h2, section h3 {
  border-left: 6px solid var(--secondary);
  padding-left: 14px;
  margin-bottom: 12px;
}

.card, .testimonial-card, .feature-item, .news-item, .insight-item {
  border: 1px solid #e2e2de;
}
.card:before, .feature-item:before {
  content: '';
  display: block;
  position: absolute;
  top: -14px; left: 20px;
  width: 36px; height: 6px;
  background: linear-gradient(90deg, var(--secondary) 60%, rgba(255, 255, 255, 0.4));
  border-radius: 4px;
  z-index: 1;
  opacity: 0.35;
}
.card:hover:before, .feature-item:hover:before {
  opacity: 0.8;
}

/* Micro-interaction for buttons */
.btn-primary, .btn-secondary, .cookie-btn {
  position: relative;
  overflow: hidden;
}
.btn-primary:after, .btn-secondary:after, .cookie-btn:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(161,143,93,0.08);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.4, 0.5, 0.5, 1), height 0.3s cubic-bezier(0.4, 0.5, 0.5, 1);
  z-index: 0;
}
.btn-primary:active:after, .btn-secondary:active:after, .cookie-btn:active:after {
  width: 140%;
  height: 140%;
  background: rgba(161,143,93,0.12);
}

/* ==== Hide scroll on open mobile menu/cookie modal ==== */
body.is-menu-open, body.is-cookie-modal-open {
  overflow: hidden !important;
  position: relative;
}

/* ==== Miscellaneous ==== */
::-webkit-scrollbar {
  width: 11px;
  background: #edead7;
}
::-webkit-scrollbar-thumb {
  background: #af9e70;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A18F5D;
}

/* Print-friendly adjustments (for legal pages) */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100% !important; padding-left: 0; padding-right: 0; }
}
