/* ===========================
   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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  min-height: 100%;
}
body {
  background: #FFF8F0;
  color: #184960;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
nav, footer, header, main, section, article, aside {
  display: block;
}
a {
  color: #184960;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.77,0,.18,1);
}
a:focus, a:hover {
  color: #196A3C;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ===============================
   CUSTOM PROPERTIES & FONTS
=============================== */
:root {
  --clr-primary: #184960;
  --clr-secondary: #FFF8F0;
  --clr-accent: #196A3C;
  --clr-accent-light: #49715C;
  --clr-bg: #FFF8F0;
  --clr-text: #184960;
  --clr-light: #ffffff;
  --clr-dark: #20313B;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 12px;
  --radius-sharp: 4px;
  --shadow-1: 0 2px 12px rgba(24,73,96,0.06);
  --shadow-2: 0 4px 20px rgba(24,73,96,0.10);
  --transition: all 0.25s cubic-bezier(0.77, 0, 0.18, 1);
}

/* =========================
   LAYOUT GLOBALS
========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
/* Cards and Grids */
.card-container,
.features-grid,
.team-grid,
.services-grid,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature, .service-card, .team-member {
  background: var(--clr-secondary);
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-sharp);
  box-shadow: var(--shadow-1);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.card:hover, .feature:hover, .service-card:hover, .team-member:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--clr-accent-light);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border: 2px solid var(--clr-accent);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  color: var(--clr-dark);
  min-width: 280px;
  max-width: 400px;
  flex: 1 1 280px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  quotes: "\201C" "\201D" "\2018" "\2019";
  position: relative;
  color: var(--clr-text);
  margin: 0 0 8px 0;
  padding: 0 8px;
}
.testimonial-card cite {
  font-size: 1rem;
  color: var(--clr-accent-light);
  font-style: normal;
  align-self: flex-end;
}

/* ===========================
   TYPOGRAPHY & HEADINGS
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--clr-primary);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  text-transform: none;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, dd, dt {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-text);
}
.subheadline {
  font-size: 1.25rem;
  color: var(--clr-accent-light);
  font-weight: 400;
}
strong, b {
  font-weight: 700;
  color: var(--clr-primary);
}
ul, ol {
  color: var(--clr-dark);
}

blockquote {
  border-left: 5px solid var(--clr-accent);
  padding-left: 16px;
  margin-left: 0;
  color: var(--clr-text);
  font-style: italic;
  margin-bottom: 8px;
}

/* ========================
   HEADER & NAVIGATION
======================== */
header {
  background: var(--clr-light);
  box-shadow: 0 2px 8px rgba(24,73,96,0.03);
  padding: 8px 0;
  z-index: 105;
  position: relative;
}
header .container {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo-link {
  padding: 6px 0;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--clr-primary);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--clr-accent-light);
  color: #FFF;
}
.btn-primary {
  background: var(--clr-accent);
  color: #FFF;
  border-radius: var(--radius-sharp);
  border: none;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 8px rgba(25,106,60,0.05);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.18s, transform 0.15s;
  display: inline-block;
  text-align: center;
  outline: none;
  margin-left: 18px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #49715C;
  color: #FFF;
  box-shadow: 0 4px 22px rgba(25,106,60,0.16);
  transform: translateY(-2px) scale(1.03);
}

/* ==========================
   HERO SECTION
========================== */
.hero {
  background: linear-gradient(120deg, #146057 0%, #184960 80%);
  color: #FFF;
  padding: 72px 0 32px 0;
  border-radius: 0 0 48px 48px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1, .hero .subheadline {
  color: #FFF;
  text-align: center;
}
.hero a.btn-primary {
  margin-top: 24px;
  background: #FFF;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
}
.hero a.btn-primary:hover,
.hero a.btn-primary:focus {
  background: var(--clr-accent);
  color: #FFF;
}

/* ========================
   SERVICES & FEATURES
======================== */
.features-grid, .services-grid {
  gap: 24px;
}
.feature, .service-card {
  border-radius: 8px;
  border: 2.5px solid var(--clr-accent-light);
  background: #FFF;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.18s, border-color 0.2s;
  flex: 1 1 270px;
}
.feature:hover, .service-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-2);
}
.feature img, .service-card img {
  width: 48px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: #F5FAF8;
  padding: 6px;
}
.feature h3, .service-card h3 {
  font-size: 1.18rem;
  font-family: var(--font-display);
}
.price {
  color: var(--clr-accent);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 10px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #FFF;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
}
.pricing-table caption {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 14px 0;
  color: var(--clr-primary);
  font-weight: 600;
}
.pricing-table th,
.pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #EEE;
  font-family: var(--font-body);
  font-size: 1rem;
}
.pricing-table th {
  background: var(--clr-accent-light);
  color: #FFF;
  font-size: 1.05rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ===========================
    CTA SECTION
=========================== */
.cta-section {
  background: var(--clr-accent);
  color: #FFF;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 50px 20px;
  box-shadow: 0 2px 18px rgba(25,106,60, 0.12);
  text-align: center;
}
.cta-section h2 { color: #FFF; }
.cta-section p { color: #F2F9F5; }
.cta-section .btn-primary {
  background: #FFF;
  color: var(--clr-accent);
  border: 2px solid #FFF;
  box-shadow: none;
}
.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus {
  background: var(--clr-accent-light);
  color: #FFF;
  border-color: var(--clr-accent-light);
}

/* ===========================
      TEAM GRID
=========================== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  background: #FFF;
  border: 2px solid var(--clr-accent-light);
  border-radius: var(--radius-sharp);
  box-shadow: var(--shadow-1);
  padding: 24px;
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ===========================
  DOWNLOADS/LINKS LISTS
=========================== */
.downloads-list,
.tips-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.downloads-list li img,
.tips-list li img {
  width: 18px;
  margin-right: 8px;
  vertical-align: bottom;
}

/* ===========================
    FAQS AND SNIPPETS
=========================== */
.faq-list, .faq-snippets {
  margin: 0 0 24px 0;
}
.faq-list dt,
.faq-snippets dt {
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 4px;
  color: var(--clr-primary);
}
.faq-list dd,
.faq-snippets dd {
  margin-bottom: 12px;
  padding-left: 18px;
  color: var(--clr-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ===========================
    CONTACT DETAILS & MAP
=========================== */
.contact-details {
  background: #F7F9FB;
  border: 1.5px solid var(--clr-accent-light);
  border-radius: 6px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-embed {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}
.map-embed img {
  min-width: 32px;
  max-width: 36px;
}
.map-embed p {
  margin: 0;
  color: #555;
}

/* ===========================
      FOOTER
=========================== */
footer {
  background: #F7FAFD;
  padding: 30px 0 10px 0;
  margin-top: 60px;
  border-top: 2px solid #E6ECF1;
  font-size: 1rem;
  color: var(--clr-primary);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--clr-primary);
  font-weight: 600;
  font-family: var(--font-display);
  padding: 2px 6px;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--clr-accent-light);
  color: #FFF;
}
.footer-info {
  text-align: center;
  color: #888;
  font-size: 0.89rem;
  letter-spacing: 0.07em;
  margin-top: 7px;
}

/* ========================
      MOBILE NAVIGATION
======================== */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-primary);
  color: #FFF;
  border: none;
  font-size: 2rem;
  border-radius: 7px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, color 0.16s;
  position: absolute;
  right: 20px;
  top: 8px;
  z-index: 300;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--clr-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  z-index: 400;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.73,0,.18,1);
  box-shadow: 0 0 32px rgba(24,73,96,0.12);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--clr-accent);
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 24px 4px 0;
  cursor: pointer;
  transition: color 0.17s;
  border-radius: 6px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--clr-primary);
  background: #F2F9F5;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--clr-primary);
  padding: 10px 14px;
  border-radius: 7px;
  width: calc(100vw - 80px);
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--clr-accent);
  color: #FFF;
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1024px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* =========================
  COOKIE CONSENT BANNER
========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--clr-dark);
  color: #FFF;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8000;
  box-shadow: 0 -5px 25px rgba(24,73,96,0.11);
  font-size: 1rem;
  gap: 14px;
  transition: transform 0.3s, opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  border-radius: 7px;
  font-size: 1rem;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .accept {
  background: var(--clr-accent);
  color: #FFF;
  border: 2px solid var(--clr-accent);
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #FFF;
  color: var(--clr-accent);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
  font-weight: 700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--clr-accent-light);
  color: #FFF;
}
.cookie-banner .settings {
  background: var(--clr-primary);
  color: #FFF;
  border: none;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #49715C;
}

/* =========================
    COOKIE MODAL
========================= */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,73,96,0.40);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  max-width: 440px;
  width: 95vw;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 8px 42px rgba(24,73,96,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 9999;
}
.cookie-modal h2 {
  margin-bottom: 12px;
  color: var(--clr-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--clr-dark);
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #E6ECF1;
  position: relative;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
}
.cookie-toggle input {
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.cookie-toggle .toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--clr-accent);
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input:checked ~ .toggle-ball {
  left: 21px;
  background: var(--clr-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal button {
  font-family: var(--font-display);
  border-radius: 7px;
  font-size: 1rem;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--clr-accent);
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 4px;
  transition: background 0.12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #F7F9FB;
}

/* =======================
     THANK YOU BUTTON
======================= */
.thank-you .btn-primary {
  margin-top: 24px;
}

/* =========================
    MEDIA QUERIES
========================= */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .features-grid, .services-grid, .team-grid, .testimonial-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
    border-radius: 8px;
  }
  .hero {
    padding: 48px 0 18px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 36px;
  }
  .container, .cta-section {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .content-grid, .features-grid, .services-grid, .card-grid, .team-grid, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature, .service-card, .team-member, .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    right: 8px;
    top: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .team-member {
    align-items: flex-start;
    max-width: 100%;
  }
  .faq-list dt, .faq-snippets dt {
    font-size: 1rem;
  }
  .pricing-table {
    font-size: 0.96rem;
  }
  .footer-info, .footer-nav {
    font-size: 0.92rem;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .hero {
    padding: 28px 0 10px 0;
    border-radius: 0 0 14px 14px;
  }
}
/* Prevent card/content overlapping on all screens */
.card, .feature, .service-card, .testimonial-card, .team-member {
  margin-bottom: 20px;
}
.section:last-child, .card:last-child {
  margin-bottom: 0 !important;
}

/* Misc geometric effects */
.card::before, .feature::before, .service-card::before, .testimonial-card::before {
  content: '';
  display: none;
}
/* Example geometric shape for emphasis may be added in SVG as decoration in HTML */

/* Hide scrollbars for cookie/modal overlays, mobile menus if necessary */
.mobile-menu, .cookie-modal-overlay {
  overflow-y: auto;
}
