/* ============================
   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,
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;
  background: #F3EFEA;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F3EFEA;
  color: #3a2d26;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
*,*:before,*:after {
  box-sizing: inherit;
}
a {
  color: #8F5D67;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #23335C;
  text-decoration: underline;
}
ul, ol {
  margin-bottom: 1.5em;
  padding-left: 1.4em;
}
li {
  margin-bottom: 0.5em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 12px 18px; border: 1px solid #e3decf; text-align: left; font-size: 16px; }
th { background: #eae3d3; color: #23335C; font-family: 'Playfair Display', serif; font-weight: 700; }
td { background: #fff; color: #3a2d26; }
button, .cta {
  font-family: 'Playfair Display', serif;
  outline: none;
  cursor: pointer;
}

/* =========================
   VINTAGE RETRO DESIGN
========================= */
:root {
  --primary: #23335c;
  --secondary: #8F5D67;
  --accent: #F3EFEA;
  --text: #3a2d26;
  --retro-mustard: #FFD77B;
  --retro-peach: #FFD9B5;
  --retro-ocean: #5A7B7B;
  --retro-green: #b6ba99;
  --border: #e3decf;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  letter-spacing: 0.025em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 600;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 500;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--secondary);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}
p {
  margin-bottom: 1.4em;
  color: var(--text);
}
strong {
  font-weight: 700;
  color: var(--secondary);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff6e2;  /* soft, retro paper-like */
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(68,51,32, 0.07);
  border: 1.5px solid var(--border);
}

/*=========================
  HEADER & NAVIGATION
=========================*/
header {
  padding: 0;
  background: var(--retro-peach);
  border-bottom: 2.5px solid var(--border);
  box-shadow: 0 3px 10px 0 rgba(35,51,92,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}
.logo img {
  height: 52px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: var(--primary);
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-mustard);
  color: var(--secondary);
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  letter-spacing: 0.04em;
  font-size: 1.18rem;
  box-shadow: 0 2px 8px 0 rgba(35,51,92,0.08);
  border: none;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  margin-left: 16px;
  transition: background 0.18s, box-shadow 0.18s, color 0.2s;
  position: relative;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: #fffbe7;
  box-shadow: 0 4px 16px 0 rgba(143,93,103,0.12);
}

.cta.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 12px 28px;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-menu-toggle {
  background: var(--secondary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 9px 16px;
  border-radius: 12px;
  margin-left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px 0 rgba(143,93,103,0.10);
  transition: background 0.16s, color 0.14s;
  z-index: 208;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--retro-mustard);
}

/* hide nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex !important; }
  .cta.primary { display: inline-flex !important; }
}

/*=====================
    MOBILE MENU
======================*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(35, 51, 92, 0.98);
  color: #fff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.39s cubic-bezier(0.7,0,0.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 215;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fffbe7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 70px;
  gap: 0;
}
.mobile-nav a {
  color: #fffbe7;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  padding: 20px 32px;
  width: 100%;
  border-bottom: 1px solid rgba(243,239,234,0.10);
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #FFD77B;
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/*======================
      HERO SECTION
=======================*/
.hero {
  background: var(--retro-mustard);
  background-image: repeating-linear-gradient(-45deg,rgba(255,249,220,0.17),rgba(255,249,220,0.13) 12px,transparent 16px,transparent 24px);
  border-bottom: 1.5px solid var(--border);
  padding: 50px 0 30px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 560px;
  margin: 0 auto;
  align-items: center;
  padding: 0;
  gap: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 16px 0;
  }
  .hero .content-wrapper {
    max-width: 100%;
  }
}

/*=====================
      FLEX CONTAINERS
=======================*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 9px 0 rgba(68,51,32,0.07);
  border: 1.2px solid var(--border);
  padding: 26px 20px 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(35,51,92,0.12);
  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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  background: #fffbe7;
  border: 1.2px solid var(--retro-mustard);
  box-shadow: 0 2px 8px 0 rgba(143,93,103,0.09);
  margin-bottom: 20px;
  margin-top: 8px;
  position: relative;
  max-width: 480px;
  transition: box-shadow 0.19s, border 0.19s;
}
.testimonial-card strong {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #65463c;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 34px 0 rgba(35,51,92,0.13);
  border: 1.3px solid var(--secondary);
}

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

/* ===========================
  FEATURES & SERVICES STYLES
=========================== */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fdf6dc;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  box-shadow: 0 1.5px 8px 0 rgba(254,183,32,0.06);
}
.features ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 1.5em;
  list-style: none;
}
.features ul li::before {
  content: '\2605'; /* star shape */
  color: var(--secondary);
  margin-right: 15px;
  font-size: 1.08em;
  vertical-align: middle;
}
.features ul li {
  font-size: 1.1em;
  color: #4c3b2b;
  font-family: 'Open Sans', Arial, sans-serif;
}
.features table {
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px 0 rgba(233,199,98,0.05);
}
.features th, .features td {
  border: 1px solid var(--retro-mustard);
}
.features th {
  background: var(--retro-ocean);
  color: #fffbe7;
}
.features td {
  background: #fffbe7;
  color: var(--text);
}

.services-overview ul,
.why-zenith ul,
.about ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 1.5em;
}
.services-overview ul li strong { color: var(--primary); font-weight: bold; }

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  background: #fffbe7;
  border-radius: 18px;
  border: 1.3px solid var(--retro-mustard);
  box-shadow: 0 2px 10px 0 rgba(143,93,103,0.07);
  padding: 24px 18px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.14s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 8px 30px 0 rgba(35,51,92,0.10);
  transform: translateY(-2px) scale(1.013);
}
.service-item h3 {
  font-size: 1.19rem;
  margin-bottom: 9px;
  color: var(--secondary);
  letter-spacing: 0.03em;
  font-family: 'Playfair Display', serif;
}
.service-item ul {
  margin-top: 8px;
  gap: 8px;
  list-style: disc inside;
  color: var(--retro-ocean);
  margin-bottom: 0;
}
.service-item ul li::marker { color: var(--secondary); }
.service-item ul li { font-size: 1em; }

/* ===========================
  ABOUT & TEAM PAGES
=========================== */
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.team-profile {
  background: #fffbe7;
  border: 1.2px solid var(--retro-mustard);
  border-radius: 17px;
  box-shadow: 0 2px 6px 0 rgba(143,93,103,0.08);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.team-profile h3 {
  color: var(--secondary);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.text-section p {
  margin-bottom: 10px;
  color: #3a2d26;
}

/* ===========================
     ABOUT & LEGAL PAGES
=========================== */
.about {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f7f6f2;
  border-radius: 22px;
  border: 1.3px solid var(--border);
  box-shadow: 0 2px 10px 0 rgba(68,51,32,0.058);
}

.why-zenith,
.contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: #F9F5E5;
  border: 1.3px solid var(--border);
}

/* ===========================
     FOOTER STYLES
=========================== */
footer {
  background: var(--retro-ocean);
  color: #fffbe7;
  padding: 44px 0 16px 0;
  border-top: 2.5px solid var(--border);
  font-family: 'Open Sans', sans-serif;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.footer-logo img {
  height: 48px; width: auto;
  margin-bottom: 10px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #ffd77b;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  transition: color 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #e6b57c;
}
.mini-contact-info {
  color: #fffbe7;
  font-size: 0.98em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mini-contact-info a {
  color: #ffd77b;
}
.mini-contact-info a:hover, .mini-contact-info a:focus {
  color: #fff;
}

/* =======================
    COOKIE CONSENT BANNER
========================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #efd770;
  color: #23335C;
  box-shadow: 0 -3px 18px 0 rgba(35,51,92,0.06);
  border-top: 2px solid #e0cc95;
  padding: 23px 12px 18px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  z-index: 2200;
  font-size: 1.02rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.38s, opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 240px;
  min-width: 150px;
  color: #23335C;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Playfair Display', serif;
  border-radius: 20px;
  border: none;
  font-size: 1rem;
  padding: 9px 22px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 7px 0 rgba(143,93,103,0.075);
}
.cookie-accept {
  background: var(--primary);
  color: #fffae2;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
  color: #fffbe7;
}
.cookie-reject {
  background: #fffbe7;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--secondary);
  color: #fffbe7;
}
.cookie-settings {
  background: none;
  color: var(--primary);
  border: 1.5px dashed var(--primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--retro-peach);
  color: var(--secondary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2300;
  inset: 0;
  background: rgba(35, 51, 92, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.29s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffbe7;
  border-radius: 20px;
  padding: 36px 28px 24px 28px;
  min-width: 320px;
  min-height: 16px;
  box-shadow: 0 6px 48px 0 rgba(235,196,92,0.14);
  border: 1.5px solid #ecc760;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.25rem;
  text-align: left;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-option label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.04rem;
  color: var(--primary);
}
.cookie-modal .essential {
  color: #83946f;
  font-size: 0.98rem;
  margin-left: 4px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal .close-cookie-modal {
  background: none;
  color: var(--secondary);
  font-size: 1.4rem;
  border: none;
  position: absolute;
  top: 13px; right: 19px;
  cursor: pointer;
  padding: 1px 10px;
  border-radius: 7px;
  transition: background 0.14s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: var(--retro-peach);
  color: var(--primary);
}

/* ===========================
    MICRO-INTERACTIONS
=========================== */
button, .cta, .cookie-banner button {
  transition: background 0.15s, color 0.15s, box-shadow 0.19s, border 0.13s;
}

.card, .testimonial-card, .service-item, .team-profile {
  transition: box-shadow 0.22s, border 0.18s, transform 0.19s;
}

.card:active,
.testimonial-card:active,
.service-item:active {
  transform: scale(0.99);
}

/* ============================
   RESPONSIVE DESIGN & FLEX
============================ */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .content-grid, .card-container, .team-profiles, .service-list {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .card-container,
  .team-profiles,
  .service-list {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .container {
    max-width: 100vw;
    padding: 0 4px;
  }
  .section,
  .about,
  .why-zenith,
  .features,
  .contact {
    padding: 22px 5px;
    margin-bottom: 34px;
    border-radius: 13px;
  }
  .card,
  .testimonial-card,
  .service-item,
  .team-profile {
    padding: 18px 9px;
    border-radius: 10px;
  }
  .service-list, .card-container, .team-profiles {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 20px 0 1px 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 8px 12px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: row;
    width: 100%;
    gap: 7px;
  }
  .cookie-modal {
    min-width: 97vw;
    padding: 18px 10px 15px 10px;
    border-radius: 12px;
  }
}

/* Utility for .thanks.php hero button */
.hero .cta.primary {
  margin: 0 auto !important;
  margin-top: 18px;
  display: inline-block;
}

/* ===============
   OTHER DETAILS
================= */
::-webkit-scrollbar {
  width: 11px;
  background: #FFDDAB;
}
::-webkit-scrollbar-thumb {
  background: #CFC4AD;
  border-radius: 7px;
}

/* Add a retro pattern border to some sections */
.section, .features, .about, .why-zenith, .contact {
  box-shadow: 0 2px 14px 0 rgba(68,51,32,0.06), 0 0 0 7px #fffbe7 inset;
  background-image: repeating-linear-gradient(135deg,rgba(234,183,115,0.03) 0 10px,transparent 10px 22px);
}

/**** Hide visually for a11y (if needed) ****/
.visually-hidden {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important; margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important; width: 1px !important;
}

/* Selection highlight */
::selection {
  background: #FFD77B;
  color: #23335C;
}

/* =========================
   RETRO DECOR MOTIFS
========================= */
.section::after,
.about::after,
.features::after,
.why-zenith::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #FFD77B, #FFD9B5 24px, #8F5D67 48px);
  margin: 32px auto 0 auto;
  border-radius: 7px;
  opacity: 0.13;
}
@media (max-width: 650px) {
  .section::after,
  .about::after,
  .features::after,
  .why-zenith::after {
    margin: 16px auto 0 auto;
    width: 54px;
  }
}
