/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2EFEA;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
:root {
  /* Brand Colors */
  --primary: #223046;
  --secondary: #8CB4D1;
  --accent: #F2EFEA;

  /* Organic Nature Palette */
  --earth-brown: #6c584c;
  --deep-green: #34553a;
  --sage: #CFE0D6;
  --olive: #85977b;
  --sand: #ede6d8;
  --nature-green: #58a75c;
  --nature-orange: #efb244;
  --nature-shadow: rgba(52,85,58,0.07);
  --nature-shadow-strong: rgba(52,85,58,0.12);

  /* Typography */
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  /* Border Radius */
  --radius-large: 22px;
  --radius-medium: 14px;
  --radius-card: 13px;
  --radius-btn: 28px;
  --radius-pill: 999px;
}

body, html {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--accent);
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--deep-green);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.05rem;
}
p, li {
  font-size: 1rem;
  color: var(--earth-brown);
  margin-bottom: 10px;
  line-height: 1.7;
}
strong {
  color: var(--deep-green);
  font-weight: 700;
}
em {
  color: var(--olive);
}
a {
  color: var(--nature-green);
  text-decoration: none;
  transition: color 0.22s;
}
a:hover,
a:focus {
  color: var(--nature-orange);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
header {
  background: var(--sand);
  box-shadow: 0 2px 14px var(--nature-shadow);
  border-bottom-left-radius: var(--radius-large);
  border-bottom-right-radius: var(--radius-large);
  padding: 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 40;
}
header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
header img[alt="Horizon Surge"] {
  height: 54px;
  width: auto;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.025rem;
}
nav.main-nav a {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  color: var(--primary);
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--sage);
  color: var(--deep-green);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nature-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  box-shadow: 0 3px 11px var(--nature-shadow);
  transition: background 0.18s, transform 0.18s, box-shadow 0.17s;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
  letter-spacing: 0.01em;
  position: relative;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--deep-green);
  color: #fff;
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 7px 18px var(--nature-shadow-strong);
}

/* Section Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px var(--nature-shadow);
}
.hero {
  background: linear-gradient(120deg,var(--sage) 48%,var(--sand) 100%);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  box-shadow: 0 3px 22px var(--nature-shadow);
  margin-bottom: 48px;
  min-height: 290px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  padding: 54px 0 40px 0;
  align-items: flex-start;
}
.hero h1 {
  color: var(--deep-green);
}

.features, .feature-grid {
  margin-bottom: 60px;
}
.features .content-wrapper > h2 {
  margin-bottom: 14px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  flex: 1 1 220px;
  min-width: 230px;
  max-width: 275px;
  padding: 26px 22px 18px 22px;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px var(--nature-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.15s;
  border: 1px solid var(--sage);
  margin-bottom: 20px;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 24px var(--nature-shadow-strong);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  height: 37px;
  width: 37px;
  filter: contrast(93%) brightness(0.93) drop-shadow(0 1px 4px var(--sage));
  border-radius: 12px;
  background: var(--sage);
  margin-bottom: 0;
}

.about.section, .services.section {
  background: var(--sage);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 18px var(--nature-shadow-strong);
  color: var(--earth-brown);
}

/* Spacing & Alternate Backgrounds */
.about, .services, .contact, .legal, .thank-you, .cta {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 10px var(--nature-shadow);
}
.cta {
  display: flex;
  align-items: center;
  background: var(--nature-green);
  border-radius: var(--radius-large);
  color: #fff;
  justify-content: space-between;
  box-shadow: 0 8px 22px var(--nature-shadow-strong);
}
.cta .content-wrapper {
  align-items: flex-start;
}
.cta h2 {
  color: #fff;
}
.cta .cta-btn {
  background: #fff;
  color: var(--nature-green);
  font-weight: 700;
  box-shadow: 0 2px 14px var(--nature-shadow-strong);
}
.cta .cta-btn:hover,
.cta .cta-btn:focus {
  background: var(--sage);
  color: var(--deep-green);
}

/* Card and Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px var(--nature-shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}
.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: #fff;
  color: var(--primary);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 12px var(--nature-shadow);
  min-width: 280px;
}
.testimonial-card .avatar {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  background: var(--sage);
  overflow: hidden;
}
.testimonial-card .text {
  flex: 1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Legal/Thank You Sections */
.legal, .thank-you {
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 12px var(--nature-shadow);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.legal h1, .legal h2, .thank-you h1 {
  margin-bottom: 22px;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.08rem;
  color: var(--primary);
}
.contact-details img {
  width: 22px;
  margin-right: 10px;
  vertical-align: middle;
}
.contact-details div {
  display: flex;
  align-items: center;
}

/* Footer */
footer {
  background: var(--sand);
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  box-shadow: 0 -2px 10px var(--nature-shadow);
  padding: 38px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img[alt="Horizon Surge"] {
  height: 40px;
  margin-bottom: 4px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: var(--earth-brown);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.15s;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.footer-nav a:hover {
  background: var(--sage);
  color: var(--deep-green);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--olive);
}
.footer-contact img {
  width: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* MOBILE BURGER NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px;
  top: 17px;
  z-index: 101;
  background: var(--nature-green);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: var(--radius-btn);
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--nature-shadow);
  transition: background 0.14s, transform 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--deep-green);
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--sand);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(0.6,0.12,0.25,1.05);
  box-shadow: 0 4px 22px var(--nature-shadow-strong);
  padding: 28px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--deep-green);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 1px 6px var(--nature-shadow);
  transition: background 0.14s;
  z-index: 1;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--nature-orange);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 24px 0 24px;
  width: 90vw;
  max-width: 350px;
}
.mobile-nav a {
  color: var(--primary);
  background: var(--sage);
  border-radius: var(--radius-btn);
  padding: 13px 18px;
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--font-display);
  margin-bottom: 6px;
  transition: background 0.10s, color 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--nature-green);
  color: #fff;
}

/* Show/hide nav on mobile */
@media (max-width: 950px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 700px) {
  header .container {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .mobile-menu-close {
    margin-left: 6px;
  }
}

/* Responsive Typography */
@media (max-width: 700px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* FLEXBOX SECTION FALLBACKS AND RESPONSIVE ALIGNMENTS */
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; gap: 24px; }
  .feature-grid > div { min-width: 90vw; max-width: 100vw; }
}
@media (max-width: 768px) {
  .section, .about, .services, .contact, .legal, .thank-you, .cta {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .card {
    min-width: unset;
    width: 100%;
    padding: 16px 8px;
  }
  .contact-details {
    font-size: 0.98rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Text-Image Section Responsiveness */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Cards responsive */
@media (max-width: 600px) {
  .feature-grid > div, .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* GENERAL INTERACTION EFFECTS */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.11s, transform 0.13s, box-shadow 0.19s;
}

/* List style for legal and service lists */
.services ul, .features ul, .about ul, .legal ul {
  list-style: disc inside;
  margin-left: 18px;
  font-size: 1.04rem;
  color: var(--earth-brown);
}
.services ul li, .features ul li, .about ul li, .legal ul li {
  margin-bottom: 10px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #fff;
  box-shadow: 0 -5px 22px var(--nature-shadow-strong);
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 535px;
  margin: 0 auto;
  left: 0;
  right: 0;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  text-align: center;
  font-size: 1rem;
}
.cookie-banner button {
  margin: 0 6px;
  font-size: 1rem;
}
.cookie-btn {
  background: var(--nature-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-family: var(--font-display);
  padding: 8px 22px;
  cursor: pointer;
  margin-right: 10px;
  box-shadow: 0 2px 7px var(--nature-shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--deep-green);
  color: #fff;
}
.cookie-btn.cookie-reject {
  background: var(--earth-brown);
  color: #fff;
}
.cookie-btn.cookie-reject:hover {
  background: var(--nature-orange);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: var(--sage);
  color: var(--deep-green);
  border: 1px solid var(--deep-green);
}
.cookie-btn.cookie-settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,48,70, 0.48);
  z-index: 505;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 44px var(--nature-shadow-strong);
  width: 96vw;
  max-width: 450px;
  padding: 36px 30px 26px 30px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in 0.31s cubic-bezier(0.65,0,0.42,1.24);
}
@keyframes modal-in {
  0% {transform: translateY(32px) scale(0.93); opacity: 0;}
  90% {transform: translateY(-3px) scale(1.01); opacity: 0.88;}
  100% {transform: none; opacity: 1;}
}
.cookie-modal h2 {
  color: var(--deep-green);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--sage);
  font-size: 1.02rem;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--sage);
  border-radius: var(--radius-pill);
  position: relative;
  outline: none;
  transition: background 0.15s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--nature-green);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px var(--nature-shadow);
  transition: transform 0.16s;
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-info {
  font-size: 0.97rem;
  margin-bottom: 4px;
  color: var(--olive);
}
.cookie-modal .cookie-switch-label {
  font-weight: 500;
  color: var(--deep-green);
}
.cookie-modal .cookie-btns {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 20px 7px 18px 7px;
    width: 98vw;
    max-width: 97vw;
  }
}

/* ORGAINC SHAPES DECORATIVE ELEMENTS */
.hero, .cta, .features, .card, .about, .services, .section {
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: '';
  display: block;
  position: absolute;
  bottom: -45px; left: 0;
  width: 110px; height: 84px;
  background: var(--nature-green);
  border-radius: 100px 100px 120px 70px;
  opacity: 0.06;
  z-index: 0;
}
.cta:after {
  content: '';
  display: block;
  position: absolute;
  top: -28px; right: -63px;
  width: 140px; height: 90px;
  background: var(--nature-orange);
  border-radius: 110px 100px 140px 160px;
  opacity: 0.08;
  z-index: 0;
}
.card:after {
  content: '';
  position: absolute;
  bottom: -14px; right: -16px;
  width: 44px; height: 44px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.14;
  z-index: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  background: var(--sage);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb {
  background: var(--nature-green);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--deep-green);
}

/* Focus Outline for Accessibility */
:focus-visible {
  outline: 2px solid var(--nature-orange);
  outline-offset: 2px;
}

/* Miscellaneous Minor Styles */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--sage);
  padding: 8px 14px;
  background: #fff;
  margin-bottom: 14px;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--deep-green);
}

/* Success state for thank-you pages */
.thank-you h1 {
  color: var(--nature-green);
}

/* Utility Padding/Margin */
.pt-0 {padding-top: 0 !important;}
.pb-0 {padding-bottom: 0 !important;}
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}

/* Hide visually but accessible (for accessibility warnings if needed) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------- END --------- */
