/* === 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDF6;
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.7, .2, .3, 1);
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* == BRIGHTTREES CODE COLORS & VARIABLES == */
:root {
  --primary: #17487A;
  --secondary: #21A179;
  --accent: #FFE171;
  --white: #FFFDF6;
  --black: #1D2532;
  --text-body: #232946;
  --text-light: #FFF;
  --bg-light: #FFFDF6;
  --bg-card: #FFF9F1;
  --shadow: 0 4px 18px 0 rgba(23,72,122,0.11);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: .24s cubic-bezier(.7,.2,.3,1);
}

/* == FONTS == */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 14px;
}
h4 {
  font-size: 1.08rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

p, ul, ol, li, table, th, td {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* == SPACING & CONTAINER == */
.container {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.text-section {
  padding: 22px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  padding: 26px 20px 20px 20px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(23,72,122,0.21);
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
}

.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: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  flex-direction: row;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 12px 42px 0 rgba(23,72,122,0.21);
  transform: scale(1.04) rotate(1.8deg);
  background: #FFF5B3;
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  flex: 1;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  margin-bottom: 18px;
}

/* === HEADER === */
header {
  background: var(--white);
  box-shadow: 0 2px 12px 0 rgba(23,72,122,.07);
  margin-bottom: 0px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 18px;
}
header img[alt="BrightTrees Code"] {
  max-height: 46px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: transparent;
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
}
nav a:hover,
nav a.active {
  color: var(--secondary);
  background: #f0faf6;
}
.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #fff;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px 0 rgba(23,72,122,0.13);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  margin-left: 18px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 18px 0 rgba(33, 161, 121,0.17);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 22px;
  z-index: 350;
  transition: color .18s cubic-bezier(.5,.24,.5,1.18);
}
.mobile-menu-toggle:hover {
  color: var(--secondary);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,72,122,0.93);
  backdrop-filter: blur(4px);
  z-index: 900;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.42,.71,.42,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.45rem;
  padding: 16px 20px 0 18px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1001;
  transition: color .2s cubic-bezier(.42,.1,.41,1.18);
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  width: 100%;
  align-items: flex-start;
  gap: 0px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  padding: 20px 36px 18px 36px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background .18s, color .18s;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* === HERO & CTA SECTIONS === */
section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 0;
  display: block;
}
section .btn-primary {
  margin-top: 16px;
}

/* === FEATURES UL === */
ul {
  padding-left: 0;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  font-size: 1.02rem;
  font-weight: 500;
}
ul li img {
  width: 28px;
  height: 28px;
}

/* === TABLES (Pricing Section) === */
table {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 1rem;
}
table th, table td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
table th {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
table tr:last-child td { border-bottom: none; }
table tbody tr:hover {
  background: #f0faf6;
}

/* == MAP PLACEHOLDER == */
.map-placeholder {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
}

/* == CONTACT DETAILS == */
.contact-details {
  margin-bottom: 18px;
}
.contact-details li {
  gap: 10px;
}

/* == FOOTER == */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 40px 0 18px 0;
  margin-top: 40px;
}
footer .container {
  gap: 20px;
}
.contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  filter: brightness(1.3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color .17s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.social-links a img {
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.17));
  transition: transform .14s;
}
.social-links a:hover img {
  transform: scale(1.2) rotate(-12deg);
}
.footer-credit {
  font-size: 0.93rem;
  opacity: .8;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe7;
  color: var(--black);
  z-index: 9999;
  box-shadow: 0 -2px 16px 0 rgba(23,72,122,.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 22px;
  font-size: 1.06rem;
  border-top: 2px solid var(--accent);
  animation: fadeInBanner .5s cubic-bezier(.4,.3,.52,1.17);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-content {
  flex: 1;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover { background: var(--primary); }
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-btn.reject:hover { background: #ffe171; color: var(--primary); }
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover { background: #fff9c1; }

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  background: rgba(33, 72, 122, .48);
  z-index: 10010;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal .32s cubic-bezier(.4,.07,.62,1.16);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbe7;
  border-radius: var(--radius);
  box-shadow: 0 8px 42px -8px rgba(23,72,122,0.21);
  max-width: 440px;
  width: 95vw;
  padding: 34px 32px 28px 32px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #e9e9e9;
  border-radius: 10px;
  position: relative;
  outline: none;
  transition: background .15s;
}
.cookie-switch:checked {
  background: var(--secondary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .19s cubic-bezier(.44,.1,.49,1.18);
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: .8;
  transition: color .17s, opacity .14s;
  z-index: 4;
}
.cookie-modal-close:hover {
  color: var(--secondary);
  opacity: 1;
}

/* == ANIMATIONS & MICRO-INTERACTIONS == */
.btn-primary, .cookie-btn {
  transition: background .18s, color .15s, box-shadow .13s, transform .14s;
}
.btn-primary:hover, .cookie-btn:active {
  box-shadow: 0 6px 18px 0 rgba(33,161,121,0.17);
  transform: scale(1.04);
}

a.btn-primary:active {
  background: var(--secondary);
  color: #fff !important;
}

/* == OVERRIDE/REFINEMENTS == */
::-webkit-input-placeholder { color: #787878; }
::-moz-placeholder { color: #787878; }
:-ms-input-placeholder { color: #787878; }
::placeholder { color: #787878; }

/* == ARTISTIC/CREATIVE TOUCHES (DIVIDERS/CARDS) == */
.card, .testimonial-card, .feature-item, .map-placeholder {
  border: 2.5px dashed var(--accent);
  background-clip: padding-box;
}
section:not(:last-child) {
  border-bottom: 3px dotted var(--primary);
  border-radius: 0 0 44px 44px / 0 0 8px 8px;
}

h1, h2, h3, h4 {
  text-shadow: 1px 2px 0 rgba(255, 225, 113, 0.10);
}

/* == RESPONSIVE DESIGN == */
@media (max-width: 1030px) {
  .container {
    max-width: 96vw;
  }
  nav {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 10px;
  }
  .btn-primary {
    padding: 10px 20px;
    margin-left: 7px;
    font-size: 0.98rem;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section {
    padding: 34px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
  .feature-item {
    padding: 14px 9px;
  }
  .content-wrapper {
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  footer .container {
    padding: 0 6px;
    gap: 10px;
  }
  .footer-links, .contact-info {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 13.5px;
  }
  h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .btn-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .cookie-modal {
    padding: 20px 7vw;
  }
}

/* === SCROLLBAR STYLE === */
body::-webkit-scrollbar {
  width: 12px;
  background: #fffbe7;
}
body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 24px;
}
body {
  scrollbar-color: var(--primary) #fffbe7;
  scrollbar-width: thin;
}

/* === SELECTION COLOR === */
::selection {
  background: var(--accent);
  color: var(--primary);
}

/* === PRINT REFINEMENTS === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  section, main, .container, body { background: #fff !important; box-shadow: none !important; color: #000 !important; }
}
