/* =======================
   CSS RESET & BASE STYLES
   ======================= */
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;
}
/* HTML5 display-role reset */
article,aside,details,figcaption,figure, 
footer,header,hgroup,menu,nav,section {
  display:block;
}
body {
  line-height:1.5;
  font-family:'Montserrat',Arial,sans-serif;
  background-color: #F9EFE1;
  color: #254773;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  min-height:100vh;
}
img {
  max-width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}
a {
  color:inherit;
  text-decoration:none;
  transition: color 0.2s;
}
*::selection {
  background: #A2C8DB;
  color: #254773;
}

/* =================================
   BRAND FONTS & TYPOGRAPHY HIERARCHY
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Montserrat:wght@400;600;700&display=swap');

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #254773;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #254773;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2a3140;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
h4,h5,h6 {
  font-family: 'Montserrat',sans-serif;
  font-weight:700;
  color:#254773;
}
p,li,span {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  color: #254773;
}
.subheadline {
  font-size: 1.125rem;
  font-weight: 400;
  color: #254773CC;
  margin-bottom: 24px;
  font-family: 'Montserrat',sans-serif;
}
strong {
  font-weight: 700;
}

/* ===========================
   LUXURY-PREMIUM BRAND COLORS
   =========================== */
:root {
  --primary: #254773;
  --secondary: #A2C8DB;
  --accent: #F9EFE1;
  --gold: #AF8F46;
  --gold-dark: #6e591e;
  --soft-bg: #FFFFFF;
  --text-dark: #223144;
  --text-light: #FDF6E5;
  --shadow: 0 4px 24px rgba(37, 71, 115, 0.12), 0 1.5px 4px rgba(175, 143, 70, 0.06);
}

/* ========================
   LUXURY LAYOUT CONTAINERS
   ======================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper,
.text-section {
  margin-top: 12px;
  margin-bottom: 12px;
}
/* MANDATORY SPACING PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--soft-bg);
  overflow: hidden;
}
.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: var(--soft-bg);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* ========== SPACING ============ */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
section + section {
  margin-top: 20px;
}
hr {
  border: none;
  border-top: 1px solid var(--secondary);
  margin: 34px 0;
}

/* =======================
   NAVIGATION & HEADER
   ======================= */
header {
  background: var(--soft-bg);
  box-shadow: 0 2px 16px rgba(175,143,70,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  justify-content: flex-start;
}
.main-nav img {
  height: 46px;
  margin-right: 16px;
}
.main-nav a {
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 5px 13px;
  border-radius: 24px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--gold-dark);
}
.cta-primary {
  background: linear-gradient(94deg, var(--gold) 60%, #fff6db 100%);
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 10px 28px;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(175,143,70,0.08);
  letter-spacing: .02em;
  border: 1.5px solid var(--gold);
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px rgba(175,143,70,0.09);
}

/* ======================
   MOBILE NAVIGATION
   ====================== */
.mobile-menu-toggle {
  display: none;
  background: var(--gold);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(175,143,70,0.12);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 130;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--gold);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(37,71,115,0.96);
  box-shadow: -8px 0 48px rgba(37,71,115,0.12);
  transition: transform 0.38s cubic-bezier(0.47,0.03,0.25,0.98);
  display: flex;
  flex-direction: column;
  z-index: 2000;
}
.mobile-menu.open {
  left: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  position: absolute;
  top: 28px;
  right: 32px;
  cursor: pointer;
  z-index: 2002;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 110px 48px 32px 38px;
  gap: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--gold);
  color: var(--primary);
}
@media (max-width: 1020px) {
  .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .main-nav a:not(.cta-primary) {
    font-size: 0.97rem;
    padding: 5px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    padding: 32px 6vw;
    margin-bottom: 38px;
  }
  .testimonial-card, .card {
    padding: 16px 8px;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 3vw; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}

/* ===================
   HERO & PAGE STRUCTURE
   =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:first-child {
  margin-top: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}

@media (max-width: 768px) {
  .content-wrapper, .text-section {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========================
   FEATURE & SERVICE GRIDS
   ======================== */
.feature-grid,
.values-grid,
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 12px 0;
}
.feature-grid li, .feature-grid > div, .values-grid li, .service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 24px 18px 24px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 230px;
  border-left: 4px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.17s;
}
.feature-grid li:hover, .feature-grid > div:hover, .service-card:hover {
  box-shadow: 0 12px 48px rgba(175,143,70,0.11);
  transform: translateY(-2px) scale(1.02);
  border-left: 4px solid var(--primary);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-card .service-price {
  color: var(--gold-dark);
  background: #fffbea;
  border-radius: 12px;
  padding: 5px 18px;
  font-weight: 700;
  margin-top: 18px;
  font-size: 1.07rem;
  letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(175,143,70,0.09);
}
@media (max-width: 900px) {
  .feature-grid,
  .values-grid,
  .service-cards {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li, .feature-grid > div, .values-grid li, .service-card {
    min-width: 0;
    width: 100%;
    margin-right: 0;
  }
}

/* ===================
   BLOG PREVIEWS
   =================== */
.blog-post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post-previews article {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 20px 16px 20px;
  min-width: 230px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform .12s;
}
.blog-post-previews article:hover {
  box-shadow: 0 10px 34px rgba(37,71,115,0.10);
  transform: translateY(-2px) scale(1.01);
}
.category-tag {
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 2px 14px;
  margin-top: 12px;
  display: inline-block;
  letter-spacing: .02em;
}

/* ===================
   TESTIMONIAL CARDS
   =================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 34px 20px 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
  min-width: 210px;
  max-width: 480px;
  font-size: 1.09rem;
  color: var(--text-dark);
  transition: box-shadow 0.18s, transform 0.14s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 16px 56px rgba(37,71,115,0.15);
  border-left-color: var(--primary);
  transform: translateY(-1.5px) scale(1.02);
}
.testimonial-meta {
  font-size: 0.99rem;
  color: var(--primary);
  font-weight: 700;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-meta span {
  font-size: 1.1rem;
  color: var(--gold-dark);
}

.content-wrapper > .testimonial-card {
  margin-right: 20px;
}
@media (max-width: 768px) {
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px 18px 12px;
  }
}

/* ===================
   FOOTER
   =================== */
footer {
  background: var(--primary);
  padding: 40px 0 18px 0;
  color: #fff;
  position: relative;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 28px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.82;
  font-size: 1rem;
  letter-spacing: .01em;
  font-family: 'Montserrat',sans-serif;
  transition: opacity 0.17s, color 0.18s;
  border-radius: 12px;
  padding: 3px 9px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--gold);
  opacity: 1;
  background: rgba(175,143,70,0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  color: #fff;
  opacity: 0.92;
}
.footer-brand img {
  height: 47px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px #A2C8DB10);
}

/* ========== MISC CARDS =========== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px 18px 12px 18px;
}

/* ========================
   BUTTONS & LINK EFFECTS
   ======================== */
button, .cta-primary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
}
.button-secondary {
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 1rem;
  border: 1px solid var(--gold);
  box-shadow: 0 2px 10px rgba(175,143,70,0.07);
  margin-left: 10px;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--gold);
  color: var(--primary);
}

a:not(.cta-primary):not(.mobile-nav a):not(.footer-nav a):hover, 
a:not(.cta-primary):not(.mobile-nav a):not(.footer-nav a):focus {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ================
   COOKIE CONSENT
   ================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff9f0;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 36px rgba(175,143,70,0.11);
  z-index: 3000;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: cookie-fade-in 0.5s;
}
@keyframes cookie-fade-in {
  from { opacity:0; transform:translateY(32px); }
  to { opacity:1; transform:translateY(0); }
}
#cookie-banner p {
  color: var(--primary);
  font-size: 1.03rem;
}
.cookie-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 4px;
}
#cookie-banner button {
  border-radius: 22px;
  border: none;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 700;
  margin-right:7px;
  margin-bottom:4px;
}
#cookie-accept {
  background: var(--gold);
  color: #fff;
}
#cookie-reject {
  background: #e4e9ec;
  color: var(--primary);
  border: 1px solid var(--gold);
}
#cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--gold);
}
#cookie-accept:hover,
#cookie-accept:focus {
  background: var(--primary);
  color: #fff;
  outline: 2px solid var(--gold-dark);
}
#cookie-reject:hover,
#cookie-settings:hover,
#cookie-reject:focus,
#cookie-settings:focus {
  background: var(--gold);
  color: #fff;
}

/* ================
   COOKIE PREFERENCES MODAL
   ================ */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 3100;
  justify-content: center;
  align-items: center;
  background: rgba(37,71,115,.64);
  animation: fadeInModal 0.3s;
}
#cookie-modal.visible {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 34px 26px 22px 26px;
  border-radius: 18px;
  box-shadow: 0 6px 44px rgba(37,71,115,0.15);
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--primary);
  animation: cookieModalSlideIn 0.3s;
}
@keyframes cookieModalSlideIn {
  from { transform: translateY(50px); opacity:0; }
  to { transform: none; opacity:1; }
}
.cookie-modal-content h3 {
  font-family: 'Playfair Display',serif;
  color: var(--gold-dark);
  margin-bottom:10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
  font-size: 1em;
}
.cookie-toggle {
  width: 42px; height: 24px;
  background: #e7d6b2;
  border-radius: 14px;
  position:relative;
  cursor:pointer;
  margin-left: 4px;
  transition: background 0.15s;
}
.cookie-toggle input {
  display:none;
}
.cookie-toggle span {
  display:block;
  position:absolute;
  left:3px;top:2px;
  width:20px;height:20px;
  background: #fff;
  border-radius:12px;
  box-shadow: 0 1px 4px rgba(37,71,115,0.07);
  transition: left 0.18s, background 0.14s;
}
.cookie-toggle input:checked + span {
  left:19px;
  background: var(--gold);
}
.cookie-category label {
  font-weight: 600;
}
.cookie-essential {
  color: var(--primary);
  font-weight: 600;
  font-size: 1em;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  border-radius: 18px;
  border: none;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--gold);
}
.cookie-modal-actions button:last-child {
  background: var(--gold);
  color: var(--primary);
}
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}

/* ===============================
   COASTAL & LUXURY VISUAL DETAILS
   =============================== */
.feature-grid img,
.service-card img {
  height: 40px;
  width: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px #A2C8DB33);
}

/* ============
   MEDIA QUERIES
   ============ */
@media (max-width: 600px) {
  .service-card,.feature-grid li,.feature-grid>div,.values-grid li,.testimonial-card,.blog-post-previews article {
    min-width: 0;
    width: 100%;
    padding: 16px 9px 13px 11px;
  }
}

@media (max-width: 480px) {
  .section { padding: 26px 4vw; }
  .footer-nav { gap:10px; }
  .footer-brand img { height: 38px; }
}

/* Feature Items vertical stack for mobile */
@media (max-width:600px){
  .feature-grid, .service-cards, .content-grid, .values-grid { flex-direction: column !important; }
  .feature-grid li, .service-card, .card { width:100%; min-width:0; }
}

/* ============================
   MICRO-INTERACTIONS & ANIMATION
   ============================ */
.card, .service-card, .feature-grid li, .testimonial-card, .blog-post-previews article {
  transition: box-shadow 0.18s, transform 0.14s, border-color 0.18s;
}
@media (hover:hover) {
  .card:hover, .service-card:hover, .feature-grid li:hover, .testimonial-card:hover, .blog-post-previews article:hover {
    box-shadow: 0 12px 36px rgba(175,143,70,0.10);
    transform: translateY(-2px) scale(1.01);
    border-color: var(--gold-dark);
  }
}

/* ================
   MISC UTILITIES
   ================ */
.gap-24 { gap:24px; }
.gap-20 { gap:20px; }
.align-center { align-items:center; }
.align-start { align-items:flex-start; }
.justify-between { justify-content:space-between; }
.flex-row { flex-direction:row; }
.flex-column { flex-direction:column; }
.flex-wrap { flex-wrap:wrap; }

/* ================
   ACCESSIBILITY
   ================ */
:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -999px;
  background: var(--primary); color: #fff;
  padding: 8px 14px;
  z-index:4000;
}
.skip-link:focus { left:16px; top:12px; }

/* ================
   SCROLL & Z-INDEX
   ================ */
body { scroll-behavior: smooth; }
.mobile-menu, #cookie-banner, #cookie-modal { z-index: 2000; }

/* =============
   END OF CSS
   ============= */
