/*
===============
 CSS RESET
===============
*/
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;
}
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;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 6%;
  height: auto;
  display: block;
}
*:focus-visible {
  outline: 2px solid #2a6746;
}

/* ===============
  CSS VARIABLES
=============== */
:root {
  --color-primary: #13476D;
  --color-secondary: #F4A236;
  --color-accent: #F5F5F1;
  --color-forest: #2a6746;
  --color-sage: #e1ecdd;
  --color-earth: #b49a7a;
  --color-moss: #6d8878;
  --color-shadow: rgba(44, 60, 46, 0.08);
  --text-dark: #283620;
  --text-body: #384534;
  --text-light: #fff;
  --radius-card: 20px;
  --radius-btn: 32px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ===============
  BASE STYLES
=============== */
html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--color-accent);
  min-height: 100vh;
  background-image: url('../assets/bg-texture.png');
  background-size: contain;
  background-repeat: repeat;
  transition: background 0.3s;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.main {
  flex: 1 1 0%;
}

/* ===============
  TYPOGRAPHY
=============== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
p, li, td, th {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.75;
}
blockquote {
  font-style: italic;
  background: var(--color-sage);
  color: var(--color-forest);
  padding: 20px 28px;
  border-left: 6px solid var(--color-earth);
  border-radius: 16px;
  font-size: 1.1rem;
  margin-bottom: 20px;
  margin-top: 12px;
}
strong {
  font-weight: bold;
}

/*  ===============
    HEADER STYLES
=============== */
header {
  background: var(--color-accent);
  border-bottom: 1px solid var(--color-sage);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px var(--color-shadow);
}
header .container {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo,
.logo-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.25s, color 0.25s;
}
header nav a:hover {
  background: var(--color-sage);
  color: var(--color-forest);
}
.cta.primary {
  background: var(--color-secondary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 13px 34px;
  margin-left: 24px;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.27s, color 0.25s, transform 0.1s;
  display: inline-block;
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-forest);
  color: var(--text-light);
  transform: translateY(-2px) scale(1.03);
}

/****** MOBILE NAVIGATION STYLES ******/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-btn);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-left: 14px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1012;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-forest);
  color: var(--text-light);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 8px 40px var(--color-shadow);
  z-index: 1300;
  transform: translateX(-105vw);
  transition: transform 0.32s cubic-bezier(0.74, 0.22, 0.33, 1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-primary);
  font-size: 2.3rem;
  border: none;
  margin: 26px 0 20px 28px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1004;
  transition: color 0.24s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-forest);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 0 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--color-sage);
  color: var(--color-forest);
}

/********* HERO SECTION *********/
.hero {
  background: linear-gradient(100deg, var(--color-sage) 0%, var(--color-accent) 100%);
  border-radius: 0 0 40px 40px / 0 0 60px 60px;
  margin-bottom: 60px;
}
.hero .container {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  padding-top: 40px;
}
.hero h1 {
  color: var(--color-forest);
}
.hero .cta.primary {
  margin-left: 0;
  margin-top: 14px;
}

/********* FEATURES/CARDS STYLES *********/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.features-grid > div {
  background: var(--color-sage);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 26px 24px 20px 24px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.25s, transform 0.17s;
  border-left: 6px solid var(--color-moss);
}
.features-grid > div:hover {
  background: var(--color-earth);
  transform: translateY(-3px) scale(1.025);
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.features-grid h3 {
  color: var(--color-forest);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

/********* SERVICE CARDS *********/
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--color-accent);
  border-radius: 24px 24px 32px 16px / 16px 32px 24px 24px;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 260px;
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 30px 28px 22px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 5px solid var(--color-secondary);
  position: relative;
  transition: box-shadow 0.21s, transform 0.13s;
}
.service-card:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
  transform: translateY(-5px) scale(1.037);
}
.service-card h3 {
  color: var(--color-forest);
  font-size: 1.18rem;
}
.service-card .price {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.19rem;
  font-weight: 700;
  margin-top: 8px;
}

/********* TESTIMONIAL CARDS *********/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 30px;
  background: var(--color-sage);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px var(--color-shadow);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-forest);
  flex: 2 1 220px;
  margin-right: 14px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-family: var(--font-display);
}
.testimonial-card .user-rating {
  font-family: var(--font-display);
  color: #eacc3b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.04rem;
}
.testimonial-card .user-rating img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}
.testimonial-card strong {
  color: var(--color-forest);
}

/********* FOOTER *********/
footer {
  background: var(--color-forest);
  color: var(--text-light);
  border-radius: 40px 40px 0 0 / 90px 90px 0 0;
  box-shadow: 0 -3px 20px var(--color-shadow);
  margin-top: 48px;
  padding: 0 0 22px 0;
}
footer .container {
  padding: 32px 16px 0 16px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.logo-footer {
  margin-bottom: 20px;
}
footer nav {
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  padding: 2px 0;
  margin-bottom: 4px;
  border-radius: 0;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
}
.footer-contact div, .footer-contact a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}

/* ===============
   GENERIC CLASSES
=============== */
.text-section {
  margin-bottom: 26px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.text-section ul, .text-section ol {
  padding-left: 18px;
  margin-bottom: 10px;
}
.text-section ul li {
  list-style: disc;
}
.text-section h2 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cta {
  background: var(--color-primary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  border: none;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: inline-block;
  transition: background 0.23s, color 0.23s, transform 0.1s;
  font-weight: 600;
}
.cta:hover, .cta:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-1.5px) scale(1.035);
}
.cta.primary {
  margin-top: 6px;
}

/***** TABLES *****/
table.text-section {
  width: 100%;
  background: var(--color-sage);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 24px;
  overflow: auto;
}
table.text-section th, table.text-section td {
  padding: 14px 12px;
  vertical-align: top;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}
table.text-section th {
  background: var(--color-earth);
  color: var(--color-accent);
  text-align: left;
  font-weight: 600;
}
table.text-section tbody tr {
  border-top: 1px solid var(--color-moss);
}
table.text-section tr:nth-child(even) td {
  background: var(--color-sage);
}

/***** MAP PLACEHOLDER *****/
.map {
  background: var(--color-sage);
  color: var(--color-forest);
  padding: 22px;
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  box-shadow: 0 1px 5px var(--color-shadow);
  margin-top: 8px;
}

/***** SPECIAL TEXTS *****/
.cta-text {
  background: var(--color-moss);
  color: var(--color-accent);
  font-family: var(--font-display);
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin: 12px 0 14px 0;
}

/* ===============
   SPACING CONTAINERS
=============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 240px;
  background: var(--color-sage);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px;
}
.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;
}

/***** FORMS & INPUTS (If needed) *****/
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1rem;
}
input[type="text"], input[type="email"], textarea {
  background: var(--color-accent);
  border: 1.5px solid var(--color-moss);
  border-radius: 10px;
  padding: 13px 12px;
  margin-bottom: 12px;
  transition: border-color 0.21s;
}
input:focus, textarea:focus {
  border-color: var(--color-forest);
}

/***** VISIBILITY & LAYOUT HELPERS *****/
.hide-on-mobile {
  display: block;
}
.hide-on-desktop {
  display: none;
}

/***** RESPONSIVE DESIGN *****/
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
  .features-grid, .services-list, .content-grid, .card-container, .footer .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 740px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    height: 52px;
    padding: 0 10px;
  }
  nav {
    display: none;
  }
  .logo {
    min-width: 100px;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .services-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .service-card, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  footer .container {
    padding: 22px 8px 0 8px;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 14px;
  }
  .section, .hero .container {
    padding: 17px 4px;
  }
}

/***** HOVER & INTERACTION EFFECTS *****/
.card,
.features-grid > div,
.service-card,
.testimonial-card {
  transition: box-shadow 0.15s, transform 0.12s, background 0.2s;
}
.card:hover,
.features-grid > div:hover,
.service-card:hover {
  box-shadow: 0 8px 34px rgba(44, 60, 46, 0.2);
  background: var(--color-earth);
  transform: translateY(-4px) scale(1.025);
}

button,
.cta,
.cta.primary,
.mobile-menu-toggle,
.mobile-menu-close {
  transition: background 0.22s, color 0.19s, box-shadow 0.13s, transform 0.16s;
}

/***** COOKIE CONSENT STYLES *****/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-moss);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 -2px 24px var(--color-shadow);
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 28px 16px 18px 16px;
  border-radius: 32px 32px 0 0 / 60px 60px 0 0;
  animation: cookieShow 0.48s cubic-bezier(0.81, 0.21, 0.29, 1.09);
}
@keyframes cookieShow {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 10px 18px;
  font-family: var(--font-display);
  border-radius: var(--radius-btn);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.21s, color 0.17s, transform 0.09s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-forest);
  color: var(--color-accent);
  transform: translateY(-1px) scale(1.027);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-forest);
  border-color: var(--color-forest);
}

/***** COOKIE MODAL *****/
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,60,46,0.31);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-accent);
  min-width: 300px;
  max-width: 94vw;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 38px var(--color-shadow);
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalShow 0.33s cubic-bezier(.82,.13,.25,.99);
  position: relative;
}
@keyframes modalShow {
  from { transform: scale(0.91) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-bottom: 9px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--color-forest);
  width: 19px; height: 19px;
}
.cookie-option.essential label {
  color: var(--color-moss);
  font-style: italic;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 15px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-modal:hover {
  color: var(--color-forest);
}

/* ===============
   MISCELLANEOUS
=============== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-earth);
}

/***** PRINT & SELECTION *****/
::selection {
  background: var(--color-moss);
  color: var(--color-accent);
}

/* ===============
   FINE TUNING - ALL COMPONENTS
=============== */
.content-wrapper, .text-section, .footer-contact, .card-container, .services-list,
.features-grid, .content-grid, .testimonial-card, .feature-item, .section {
  gap: 20px;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container, .features-grid, .services-list, .content-grid {
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
}
.testimonial-card {
  gap: 20px !important;
  padding: 20px !important;
}
.text-image-section, .feature-item {
  gap: 15px !important;
}

/* ===============
   ACCESSIBILITY IMPROVEMENTS
=============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
