/* ================================================== */
/*                     RESET & BASE                   */
/* ================================================== */
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, menu, 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #EEECE7;
  color: #18212a;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style-position: outside;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}
strong {
  font-weight: bold;
}

/* =============================== */
/*        BRAND VARIABLES          */
/* =============================== */
:root {
  --color-primary: #179087;
  --color-primary-dark: #16635d;
  --color-secondary: #EEECE7;
  --color-background: #fff;
  --color-accent: #E87A47;
  --color-accent-light: #ffd5b2;
  --color-text: #18212a;
  --color-heading: #179087;
  --color-link: #E87A47;
  --color-link-hover: #179087;
  --color-card-bg: #fff;
  --color-shadow: rgba(24,33,42,0.09);
  --color-shadow-dark: rgba(24,33,42,0.18);
  --radius-main: 18px;
  --radius-btn: 32px;
  --shadow-main: 0 4px 16px var(--color-shadow);
  --shadow-card: 0 2px 10px var(--color-shadow);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --transition: 0.22s cubic-bezier(.61,.13,.78,.51);
}

/* =============================== */
/*     LAYOUT: CONTAINER & FLEX    */
/* =============================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  gap: 16px;
}

/* =============================== */
/*            HEADER               */
/* =============================== */
header {
  width: 100%;
  background: var(--color-background);
  box-shadow: 0 2px 10px var(--color-shadow-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: color var(--transition);
  padding: 8px 4px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  background: var(--color-accent-light);
}
a.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 14px var(--color-shadow);
  margin-left: 10px;
  letter-spacing: 0.04em;
  border: none;
  outline: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
a.cta-btn:hover, a.cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--color-shadow-dark);
  transform: translateY(-2px) scale(1.035);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 2px 8px var(--color-shadow-dark);
  transition: background var(--transition);
  z-index: 222;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--color-accent);
}

/* =============================== */
/*         MOBILE NAVIGATION        */
/* =============================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-background);
  box-shadow: 0 2px 16px var(--color-shadow-dark);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.89,.13,.47,.98);
  z-index: 9999;
  opacity: 1;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-top: 24px;
  margin-bottom: 24px;
  border: none;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background var(--transition);
  cursor: pointer;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-size: 22px;
  font-weight: bold;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-secondary);
  transition: color var(--transition), background var(--transition);
  border-radius: 12px;
  margin-bottom: 4px;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  header .container .main-nav,
  header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =============================== */
/*             FOOTER              */
/* =============================== */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  margin-top: 80px;
  box-shadow: 0 -2px 10px var(--color-shadow);
  padding: 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 38px;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
  border-radius: 8px;
  padding: 8px 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
  background: rgba(255,255,255,0.08);
}
.footer-contact {
  color: #fff;
  text-align: center;
  opacity: 0.92;
  font-size: 15px;
  font-family: var(--font-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.7;
}
.footer-contact img {
  height: 22px;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: -4px;
}

/* =============================== */
/*           MAIN & HERO           */
/* =============================== */
main {
  flex: 1 1 auto;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  box-sizing: border-box;
}

/* Hero Sections */
section:first-of-type .container {
  min-height: 28vh;
  justify-content: center;
  align-items: center;
}
section:first-of-type h1 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px var(--color-shadow);
}
section:first-of-type p {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
  max-width: 650px;
}

/* =============================== */
/*         TYPOGRAPHY SCALE         */
/* =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1.14;
}
h1 {
  font-size: 2.7rem;
}
h2 {
  font-size: 2.2rem;
  margin-top: 20px;
}
h3 {
  font-size: 1.45rem;
  margin-top: 14px;
}
h4 {
  font-size: 1.18rem;
}
p, li, cite {
  font-size: 1.08rem;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: 7px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 10px;
  font-size: 1.07rem;
}
li {
  margin-bottom: 8px;
}
a.cta-link {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: bold;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}
a.cta-link:after {
  content: "";
  display: block;
  height: 3px;
  background: var(--color-accent);
  width: 78%;
  border-radius: 2px;
  position: absolute;
  bottom: -4px;
  left: 0;
  opacity: 0.55;
  transition: width var(--transition), opacity var(--transition);
}
a.cta-link:hover, a.cta-link:focus {
  color: var(--color-primary);
}
a.cta-link:hover:after, a.cta-link:focus:after {
  width: 100%;
  opacity: 1;
  background: var(--color-primary);
}

/* =============================== */
/*       CARDS, TESTIMONIALS       */
/* =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 30px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover, .card:focus-within {
  transform: translateY(-5px) scale(1.028);
  box-shadow: 0 8px 24px var(--color-shadow-dark);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  color: #232c34;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 14px var(--color-shadow-dark);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 260px;
  max-width: 620px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px var(--color-shadow-dark);
  transform: scale(1.017);
}
.testimonial-card cite {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-size: 1.03rem;
  opacity: 0.7;
  margin-top: 3px;
}

/* =============================== */
/*        FLEXBOX LAYOUT PATTERNS   */
/* =============================== */
.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;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================== */
/*        TABLE STYLING            */
/* =============================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px 0;
  background: var(--color-card-bg);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-main);
  overflow: hidden;
}
thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  padding: 15px 8px;
  border-bottom: 2px solid var(--color-accent);
}
tbody td {
  padding: 13px 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  border-bottom: 1px solid var(--color-secondary);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* =============================== */
/*            BUTTONS              */
/* =============================== */
button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}
button,
.cta-btn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 14px var(--color-shadow);
  padding: 12px 28px;
  border: none;
  outline: none;
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 6px;
  margin-bottom: 10px;
}
button:hover, button:focus,
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px var(--color-shadow-dark);
  transform: translateY(-2px) scale(1.035);
}

/* =============================== */
/*         ICONS IN LISTS          */
/* =============================== */
li img,
ul li img {
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: -4px;
  border-radius: 6px;
  background: var(--color-secondary);
  box-shadow: 0 1px 2px var(--color-shadow);
}

/* =============================== */
/*        RESPONSIVE STYLES        */
/* =============================== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 820px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.55rem;
  }
  h3 {
    font-size: 1.18rem;
  }
  .footer-contact {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 30px 10px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .main-nav {
    display: none;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}
@media (max-width: 650px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .footer-contact img {
    height: 16px;
  }
  .mobile-nav a {
    font-size: 17px;
    padding: 12px 0;
  }
}
@media (max-width: 630px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* =============================== */
/*         ANIMATIONS              */
/* =============================== */
section, .testimonial-card, .card {
  transition: box-shadow 0.2s, background 0.26s, transform 0.1s;
}

/* =============================== */
/*       VIBRANT / ENERGETIC       */
/* =============================== */
h1, h2 {
  color: var(--color-primary);
  letter-spacing: 0.015em;
}
h3, h4, h5, h6 {
  color: var(--color-accent);
}
button,.cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  /* Micro-interaction pulse on focus */
  outline: none;
}
button:active, .cta-btn:active {
  background: var(--color-primary-dark);
  transform: scale(0.97);
  box-shadow: 0 1px 4px var(--color-shadow-dark);
}
.section {
  box-shadow: 0 0px 18px 0 var(--color-shadow);
  background: #fffaf7;
  border-radius: 20px;
}

/* ================================ */
/*     COOKIE CONSENT BANNER        */
/* ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffbe9;
  color: #191c27;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 26px 22px 26px 18px;
  box-shadow: 0 -3px 18px var(--color-shadow-dark);
  z-index: 7777;
  font-family: var(--font-body);
  font-size: 1.11em;
  border-radius: 16px 16px 0 0;
  animation: bannerIn 0.44s ease;
  min-height: 41px;
}
@keyframes bannerIn {
  0% { transform: translateY(100%); }
  95% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.11em;
  font-weight: bold;
  border-radius: 34px;
  margin-left: 10px;
  margin-right: 2px;
  padding: 12px 28px;
  border: none;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
  transform: scale(1.03);
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-primary);
  color: #fff;
  margin-left: 2px;
  margin-right: 2px;
  border-radius: 34px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 20px;
  transition: background var(--transition);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  left: 0;right: 0;top: 0;bottom: 0;
  background: rgba(24,33,42,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modalFIn 0.3s ease;
}
@keyframes modalFIn {
  0% { opacity: 0; }
  95% { opacity: 1; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fffbe9;
  border-radius: 22px;
  box-shadow: 0 7px 32px var(--color-shadow-dark);
  padding: 40px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: #191c27;
  font-family: var(--font-body);
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 9;
  animation: modalIn .28s cubic-bezier(.42,.29,.51,.95);
}
@keyframes modalIn {
  0% {
    transform: scale(1.1) translateY(44px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 9px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-modal .category-info {
  flex: 1 1 160px;
}
.cookie-modal .toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Styled Switch Toggle */
.cookie-modal input[type='checkbox'] {
  width: 40px;
  height: 22px;
  appearance: none;
  background: #dedede;
  border-radius: 24px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal input[type='checkbox']:checked {
  background: var(--color-primary);
}
.cookie-modal input[type='checkbox']::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 2px;
  transition: transform .2s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-modal input[type='checkbox']:checked::before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-actions .cookie-btn {
  font-size: 1em;
  padding: 12px 24px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.3em;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  z-index: 11;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition);
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-primary);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.99em;
    padding: 18px 7px 18px 9px;
  }
  .cookie-modal {
    padding: 20px 8px 12px 8px;
    min-width: 0;
  }
  .cookie-modal .cookie-modal-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* =============================== */
/*        MICRO-INTERACTIONS       */
/* =============================== */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.24s, background 0.24s, transform 0.18s, box-shadow .16s;
}
.card:active, .testimonial-card:active {
  transform: scale(.98);
  box-shadow: 0 0px 8px var(--color-shadow-dark);
}

/* =============================== */
/*        VIBRANT ENERGETIC        */
/*       Dynamic Color Accents     */
/* =============================== */
.section:nth-of-type(odd) {
  background: #ffffff;
  box-shadow: 0 1px 12px var(--color-shadow);
}
.section:nth-of-type(even) {
  background: #fff6f2;
  box-shadow: 0 0px 12px var(--color-shadow-dark);
}

a, .cta-link {
  color: var(--color-link);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-link-hover);
}

/* =============================== */
/*          ACCESSIBILITY          */
/* =============================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =============================== */
/*  MINIMUM GAPS & SPACING ENFORCEMENT! */
/* =============================== */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}
.card, .testimonial-card, .section {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ============================== */
/*    PRINT (no unwanted bg)      */
/* ============================== */
@media print {
  header, footer, .cta-btn, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
