/* RESET AND 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; }
*, *:before, *:after { box-sizing: inherit; }
html {
  scroll-behavior: smooth;
  background: #222831;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #222831;
  color: #F4F4F4;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #E9C46A;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, address { color: #f0f0f0; font-size: 1rem; margin-bottom: 16px; }
strong { color: #F4A261; font-weight: bold; }
a {
  color: #29e6f6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #F4A261; text-decoration: underline; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

/* GENERAL SPACING */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
ul, ol { margin-left: 24px; }

dl, dd, dt { font-size: 1rem; }

/* HERO SECTIONS */
.hero, .thank-you-hero {
  background: linear-gradient(120deg, #264653 70%, #233345 100%);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 48px 20px 36px 20px;
  box-shadow: 0 8px 32px 0 rgba(38, 70, 83, 0.18);
}
.hero h1, .thank-you-hero h1 { color: #E9C46A; margin-bottom: 18px; }
.hero p, .thank-you-hero p { color: #fff; font-size: 1.1rem; max-width: 600px; margin-bottom: 28px; }

/* FEATURE GRID (Flexbox) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  justify-content: space-between;
}
.feature-item {
  background: #233345;
  border-radius: 16px;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 18px 0 rgba(41, 230, 246, 0.10);
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 220px;
  border: 1.5px solid #264653;
  transition: box-shadow 0.2s, border 0.2s;
  position: relative;
}
.feature-item:hover {
  box-shadow: 0 6px 20px 0 #29e6f671, 0 1.5px 0 0 #F4A261;
  border: 1.5px solid #29e6f6;
}
.feature-item img {
  width: 40px; height: 40px; filter: drop-shadow(0 0 4px #F4A261); }
.feature-item h3 { color: #F4A261; font-size: 1.12rem; margin: 0 0 8px 0; }
.feature-item p { color: #cfcfcf; margin: 0; font-size: 0.98rem; }

/* CTA BUTTON */
.cta-btn {
  background: #29e6f6;
  color: #222831;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 8px;
  padding: 14px 38px;
  font-size: 1.15rem;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 #26465332;
  margin-top: 12px;
  letter-spacing: 1px;
  transition: background 0.19s, color 0.19s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F4A261;
  color: #2a3443;
  box-shadow: 0 4px 20px 0 #E9C46A44;
  text-shadow: 0 0 4px #fff6, 0 1px 2px #f4a26155;
}


/* CARDS, CARD CONTAINERS, & FLEX STRUCTURE */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #233345;
  border: 1.5px solid #264653;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(41, 230, 246, 0.08);
  margin-bottom: 20px;
  padding: 24px;
  flex: 1 1 300px;
  min-width: 255px;
  transition: box-shadow 0.25s, border 0.2s;
}
.card:hover {
  border: 1.5px solid #29e6f6;
  box-shadow: 0 4px 24px 0 #29e6f669, 0 2px 0 0 #F4A261;
}

.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;
}

/* TESTIMONIALS */
.testimonials {
  background: #233345;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 32px 20px;
  box-shadow: 0 2px 16px 0 rgba(233, 196, 106, 0.08);
}
.testimonials h2 {
  color: #E9C46A;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f5f7fa;
  color: #23282e;
  border-radius: 14px;
  box-shadow: 0 1.5px 22px 0 #2646530c;
  margin-bottom: 20px;
  border: none;
  flex-wrap: wrap;
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #23282e;
}
.testimonial-content p {
  font-size: 1.05rem;
  color: #23282e;
  font-style: italic;
}
.testimonial-content span {
  margin-top: 10px;
  font-size: 0.97rem;
  color: #18344A;
  font-weight: 600;
}
.testimonial-content img {
  width: 18px;
  height: 18px;
  margin-right: 2px;
  vertical-align: middle;
}

/* CONTENT SECTIONS & SPACING */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features, .features-contact, .features-team, .features-step {
  padding: 40px 20px;
  margin-bottom: 60px;
}
.services, .services-detailed, .services-short {
  padding: 40px 20px;
  margin-bottom: 60px;
  background: #212d3b;
  border-radius: 12px;
}
.about, .about-company, .about-team, .about-short {
  background: #212b34;
  border-radius: 12px;
}
.contact-cta {
  background: #2D3a48;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 3px 28px 0 #2646530d;
  padding: 38px 20px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-cta h2 { color: #E9C46A; }
.contact-cta p { color: #f6f9fa; }

/******* FOOTER *******/
footer {
  background: #19202A;
  color: #f0f0f0;
  padding-top: 34px;
  padding-bottom: 0;
  border-top: 1.5px solid #264653;
  font-size: 1rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
}
.footer-logo-contact {
  min-width: 210px;
  max-width: 260px;
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo-contact img {
  width: 110px; height: auto; margin-bottom: 12px; }
.footer-logo-contact address {
  font-style: normal;
  font-size: 0.97rem;
  color: #ececec;
}
.footer-main-nav h4, .footer-legal-nav h4, .footer-social h4 {
  color: #F4A261;
  font-size: 1.1rem;
  margin-bottom: 9px;
  margin-top: 0;
}
.footer-main-nav, .footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 150px;
  margin-bottom: 12px;
}
.footer-main-nav a, .footer-legal-nav a {
  color: #f0f0f0;
  font-size: 0.97rem;
  opacity: 0.87;
  transition: color 0.15s;
}
.footer-main-nav a:hover, .footer-legal-nav a:hover {
  color: #E9C46A;
  opacity: 1;
}
.footer-social {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social a {
  display: inline-block;
  margin-right: 8px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 7px #F4A26188);
  transition: filter .18s;
}
.footer-social a:hover img {
  filter: drop-shadow(0 0 14px #29E6F6) brightness(1.25);
}
.footer-bottom {
  background: #151920;
  padding: 12px 0 10px 0;
  text-align: center;
  font-size: 0.97rem;
  color: #757a7e;
  border-radius: 0 0 10px 10px;
}

/* HEADER & NAVIGATION BAR */
header {
  background: #19202A;
  box-shadow: 0 2px 12px 0 #26465310;
  z-index: 50;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 16px;
}
header a img[alt*='Lively Foothill'] {
  width: 150px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #E9C46A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-shadow: 0 1px 4px #18344a33;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.15s, color 0.17s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #264653;
  color: #29e6f6;
  outline: none;
  text-shadow: 0 2px 8px #29e6f644;
}

/* Mobile Burger Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #E9C46A;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #264653;
  color: #29e6f6;
  outline: 2px solid #29e6f6;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 380px;
  height: 100vh;
  background: #233345;
  box-shadow: -8px 0 40px 0 #29e6f644;
  z-index: 2000;
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(.92,.08,.46,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 24px 20px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F4A261;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-bottom: 24px;
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #264653;
  color: #29e6f6;
  outline: 2px solid #29e6f6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: #E9C46A;
  padding: 14px 0;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  transition: color 0.17s, background 0.17s;
  text-align: left;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #29e6f6;
  background: #264653;
}

/* Hide main-nav and show mobile nav on mobile */
@media (max-width: 1024px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* --- Responsive Layouts & Adjustments --- */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    gap: 18px;
  }
  .feature-item, .card {
    min-width: 175px;
    padding: 18px 12px 13px 12px;
  }
  .container { padding: 0 9px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .hero, .thank-you-hero, .testimonials, .services, .about, .section, section, .features, .features-contact, .features-team, .features-step {
    padding: 24px 8px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .feature-item, .card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .container { padding: 0 3.5vw; }
}

/******* FORMS & ADDRESS ******/
address {
  display: block;
  font-style: normal;
  font-size: 0.98rem;
  color: #cfecff;
  margin-bottom: 16px;
  line-height: 1.65;
}
address a {
  color: #29e6f6;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.17s;
}
address a:hover {
  color: #F4A261;
  text-decoration: underline;
}
div.map-placeholder {
  margin-top: 14px;
  background: #264653;
  border-radius: 10px;
  padding: 12px 12px 10px 12px;
  box-shadow: 0 3px 14px #222b300a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
div.map-placeholder img {
  width: 60px;
  height: auto;
}
div.map-placeholder em { color: #E9C46A; font-size: 0.96rem; }

/* LEGAL/POLICY SECTIONS */
.legal {
  background: #233345;
  border-radius: 11px;
  box-shadow: 0 2px 20px #26465313;
}
.legal h1, .legal h2 {
  color: #F4A261;
  margin-bottom: 20px;
}
.legal p, .legal ul {
  color: #f7f7f7;
}
.legal ul { margin-left: 24px; margin-bottom: 18px; }

/* TABLES (if ever used) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
th, td {
  padding: 10px 7px;
  border-bottom: 1px solid #29e6f644;
  text-align: left;
}
th { background: #264653; color: #E9C46A; }

/* COOKIE CONSENT BANNER (fixed) */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23202A;
  color: #ececec;
  box-shadow: 0 -1.5px 18px #26465333;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px 18px 10px;
  gap: 10px;
  animation: cookieSlideIn 0.45s cubic-bezier(.37,.67,.46,1.21);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #ececec;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-consent-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn, .cookie-settings-btn {
  background: #29e6f6;
  color: #19202A;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 1.5px 6px #29e6f624;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F4A261;
  color: #222831;
}
.cookie-btn.reject {
  background: #F4A261;
  color: #222831;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #264653;
  color: #E9C46A;
}
.cookie-settings-btn {
  background: #E9C46A;
  color: #264653;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #29e6f6;
  color: #23282e;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(28,35,48,0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(.42,.32,.38,1.3);
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #19202A;
  color: #ececec;
  border-radius: 13px;
  padding: 38px 26px 18px 26px;
  box-shadow: 0 6px 42px 0 #29e6f633;
  min-width: 310px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 27px;
  animation: modalShow 0.29s cubic-bezier(.37,.67,.46,1.21);
}
@keyframes modalShow {
  from { transform: translateY(32px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal h3 { color: #F4A261; font-size: 1.21rem; margin-bottom: 9px; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: #ececec;
}
.cookie-toggle {
  width: 34px;
  height: 18px;
  background: #233345;
  border-radius: 16px;
  border: 1px solid #264653;
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
  transition: background .16s;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #E9C46A;
  transition: transform .22s cubic-bezier(.74,.02,.82,1.32), background .17s;
}
.cookie-toggle input[type='checkbox']:checked + .slider {
  transform: translateX(16px);
  background: #29e6f6;
}
.cookie-modal .close-cookie-modal {
  position: absolute; top: 10px; right: 16px;
  background: none;
  border: none;
  color: #F4A261;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-actions button {
  padding: 7px 22px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #29e6f6;
  color: #19202A;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-actions button:hover {
  background: #F4A261;
  color: #222831;
}

/* Animations/Micro-interactions */
a, .cta-btn, .cookie-btn, .cookie-settings-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.17s, border 0.2s, box-shadow 0.24s;
}

/* Visually distinct selection/focus */
a:focus, button:focus, .cta-btn:focus, input:focus, textarea:focus {
  outline: 2px solid #29e6f6;
  outline-offset: 2px;
}

/* Util classes (if needed) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/***************************************************/
/* NO CSS GRID USED. SPACING & FLEX REQUIREMENTS... */
/***************************************************/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/***************************************************/
