/* ---------------------------
   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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #f6f8fb;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #163047;
  background: #f6f8fb;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #163047;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.58,.01,.38,1);
}
a:hover, a:focus {
  color: #D1B587;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* ---------------------------
   TYPOGRAPHY
--------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #163047;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 { font-size: 2.75rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: #163047;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
strong, b {
  font-weight: 700;
  color: #163047;
}
.text-section b { color: #D1B587; }

/* Typography Responsive */
@media (min-width:600px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
  body { font-size: 17px; }
}
@media (min-width:1000px) {
  h1 { font-size: 4rem; }
}

/* ---------------------------
   LAYOUT HELPERS
--------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(22, 48, 71, 0.06);
}
@media (max-width: 900px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
  .container { padding: 0 8px; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(22, 48, 71, 0.10);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 10px 30px rgba(22, 48, 71, 0.15);
  transform: translateY(-3px) scale(1.02);
}
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}

/* Feature Grid & Items */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8f9fb;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(22, 48, 71, 0.08);
  padding: 28px 20px 24px 20px;
  flex: 1 1 250px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
.feature-item h3 {
  font-size: 1.18rem;
  color: #163047;
  font-family: 'Merriweather', serif;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.feature-item:hover {
  box-shadow: 0 10px 24px rgba(209, 181, 135, 0.09);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffbea;
  border-left: 5px solid #D1B587;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(22, 48, 71, 0.08);
  max-width: 700px;
  color: #222;
  line-height: 1.55;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #163047;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #D1B587;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #222;
}
@media (max-width: 700px) {
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px;
  }
}

/* ---------------------------
   HERO & CTA
--------------------------- */
.hero {
  background: #163047;
  color: #fff;
  padding: 70px 0 64px 0;
  margin-bottom: 48px;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1, .hero h2 {
  color: #fff;
  font-family: 'Merriweather', serif;
  letter-spacing: 0.04em;
}
.hero .subheadline {
  color: #fff;
  opacity: 0.95;
}

.cta {
  background: #163047;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(22, 48, 71, 0.07);
  padding: 42px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .cta { padding: 28px 10px; }
}

/* ---------------------------
  NAVIGATION & HEADER
--------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(22,48,71,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 12px 20px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
nav ul li a {
  color: #163047;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #f3efe7;
  color: #D1B587;
}
.btn-primary, .btn-secondary {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 1.15rem;
  box-shadow: 0 1px 4px rgba(22,48,71,0.08);
  transition: background 0.18s, color 0.16s, box-shadow 0.17s, transform 0.12s;
  margin-left: 18px;
}
.btn-primary {
  background: #D1B587;
  color: #163047;
}
.btn-primary:hover, .btn-primary:focus {
  background: #b49a6f;
  color: #fff;
  box-shadow: 0 6px 14px #d1b58744;
}
.btn-secondary {
  background: #163047;
  color: #fff;
  border: 2px solid #D1B587;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #D1B587;
  color: #163047;
}

@media (max-width: 990px) {
  nav ul { gap: 12px; }
  .btn-primary, .btn-secondary { margin-left: 8px; }
}

@media (max-width: 850px) {
  nav ul {
    display: none;
  }
  nav .btn-primary {
    display: none;
  }
}

/* ---------------------------
   MOBILE MENU
--------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #D1B587;
  color: #163047;
  border: none;
  font-size: 2.1rem;
  border-radius: 12px;
  padding: 6px 18px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #b49a6f;
  color: #fff;
}
@media (max-width: 850px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 120;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(22,48,71,0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.67,.1,.38,1);
  z-index: 200;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 70px rgba(22,48,71,0.22);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  position: relative;
  top: 18px;
  left: 14px;
  margin-bottom: 18px;
  cursor: pointer;
  z-index: 201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 18px 0;
  border-bottom: 1px solid #2a4564;
  transition: color 0.16s, background 0.21s;
  border-radius: 0;
  width: 100%;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D1B58733;
  color: #D1B587;
}
@media (min-width: 851px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* Overlay fade for mobile menu */
.mobile-menu {
  box-shadow: 0 0 100px 30px #131a248a;
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
  background: #163047;
  color: #fff;
  padding: 34px 0 28px 0;
  margin-top: 60px;
}
footer .container {
  align-items: center;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  justify-content: center;
  margin: 0 0 14px 0;
  padding: 0;
}
footer ul li a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.86;
  transition: color 0.16s;
}
footer ul li a:hover, footer ul li a:focus {
  color: #D1B587;
}
footer span {
  color: #efe9da;
  font-size: 0.93rem;
}

/* ---------------------------
   TABLES
--------------------------- */
table {
  width: 100%;
  margin: 20px 0 20px 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(22, 48, 71, 0.09);
  overflow: hidden;
}
th, td {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 14px 18px;
  border-bottom: 1px solid #eceaea;
  text-align: left;
}
th {
  background: #163047;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
tr:last-child td { border-bottom: none; }

/* ----------------------------
   BLOG TAGS
---------------------------- */
.tag {
  display: inline-block;
  background: #D1B587;
  color: #163047;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 14px 2px 10px;
  margin-left: 8px;
  letter-spacing: 0.03em;
  opacity: 0.93;
  transition: background 0.14s, color 0.14s;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---------------------------
   MISC COMPONENTS
--------------------------- */
.google-map {
  border-radius: 12px;
  font-size: 1.15rem;
  color: #888 !important;
  background: #e6e3dd !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 10px 0 0 0;
}

/* List inside text-section */
.text-section ul {
  margin-left: 24px;
  margin-bottom: 7px;
}
.text-section ul li {
  margin-bottom: 8px;
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 600px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .section, .cta { padding: 18px 4px; }
}

/* --------------------------
   SPACING BETWEEN SECTIONS
--------------------------- */
main > section {
  margin-bottom: 60px;
}
main section:last-child {
  margin-bottom: 0;
}

/* Ensuring no overlapping and enough spacing */
.section + .section, .features + .services, .services + .features, .features + .about, .section + .cta, .text-section + .feature-grid {
  margin-top: 32px;
}

/* ---------------------------
   FORMS (if any used)
--------------------------- */
input, textarea, select {
  border: 1.5px solid #D1B587;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 9px 15px;
  font-size: 1rem;
  color: #163047;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(22,48,71,0.04);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.12s;
}
input:focus, textarea:focus {
  border-color: #163047;
  box-shadow: 0 2px 12px rgba(209,181,135,0.11);
}

/* ---------------------------
   COOKIE BANNER (FIXED BOTTOM)
--------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #163047;
  color: #fff;
  width: 100%;
  padding: 16px 20px;
  box-shadow: 0 -4px 28px #131a2465;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: cookieBannerDrop 0.60s cubic-bezier(.62,.04,.39,1);
}
@keyframes cookieBannerDrop {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 240px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  outline: none;
  border-radius: 9px;
  padding: 10px 24px;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: bold;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.accept {
  background: #D1B587;
  color: #163047;
}
.cookie-btn.reject {
  background: #fff;
  color: #163047;
  border: 2px solid #D1B587;
}
.cookie-btn.settings {
  background: transparent;
  color: #D1B587;
  border: 2px solid #D1B587;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #b49a6f;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fadfa2;
  color: #163047;
  border-color: #b49a6f;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #163047;
  color: #D1B587;
  border-color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10001;
  background: rgba(22,48,71,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.33s cubic-bezier(.51,.1,.3,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: #fff;
  color: #163047;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(22, 48, 71, 0.23);
  padding: 34px 30px 26px 30px;
  max-width: 410px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPopIn 0.27s cubic-bezier(.58,.01,.38,1);
}
@keyframes modalPopIn {
  from { transform: scale(.84) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: #163047;
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: 'Merriweather', serif;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-cat .cat-label {
  font-weight: 600;
  color: #163047;
}
.cookie-cat input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #D1B587;
  margin-right: 6px;
}
.cookie-cat input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-cat .cat-desc {
  color: #4E5967;
  font-weight: 400;
  font-size: 0.98rem;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 100px;
}
@media (max-width: 499px) {
  .cookie-modal .modal-content {
    padding: 20px 7px;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    padding: 10px 4px;
  }
}

/* ---------------------------
   MODERN GEOMETRIC DECORS
--------------------------- */
.section {
  position: relative;
  overflow: visible;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px; left: -18px;
  width: 68px; height: 68px;
  background: #D1B58722;
  border-radius: 28% 49% 64% 30%/48% 44% 60% 32%;
  z-index: 0;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: -24px; bottom: -20px;
  width: 48px; height: 48px;
  background: #16304711;
  border-radius: 35% 50% 36% 47%/78% 47% 31% 59%;
  z-index: 0;
}
@media (max-width: 700px) {
  .section:before,
  .section:after { display: none; }
}

/* Keep card/feature items on top */
.section > *, .feature-item, .testimonial-card, .card {
  position: relative;
  z-index: 1;
}

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

/* Accessibility focus */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #D1B587;
  outline-offset: 3px;
}

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