/* =====================
   CSS RESET & NORMALIZE
   ===================== */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
html,
body {
  width: 100%;
  min-height: 100vh;
  font-size: 16px;
  background: #f5f0e6;
  color: #222f2a;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}
img,
picture {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
ul,
ol {
  margin-left: 1.6em;
}
li {
  margin-bottom: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(49, 71, 58, 0.04);
  border-radius: 8px;
  overflow: hidden;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
}
th {
  background: #e6eee9;
  font-weight: 600;
  letter-spacing: 0.01em;
}
tr:not(:last-child) {
  border-bottom: 1px solid #e0e4e1;
}
/* =====================
   FONT IMPORT
   ===================== */
@import url("https://fonts.googleapis.com/css?family=Montserrat:700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap");

/* =====================
   VARIABLES (WITH FALLBACKS)
   ===================== */
:root {
  --color-primary: #31473a;
  --color-secondary: #d97452;
  --color-accent: #f5f0e6;
  --color-dark: #222f2a;
  --color-gray: #495552;
  --color-light-gray: #e6eee9;
  --color-white: #fff;
  --color-error: #d97452;
  --color-success: #1a9e67;
  --font-display: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --shadow: 0 4px 20px rgba(49, 71, 58, 0.08),
    0 1.5px 8px rgba(49, 71, 58, 0.06);
  --radius: 12px;
  --transition: 0.2s cubic-bezier(0.57, 0.44, 0.35, 1.24);
}

/* =====================
   GENERAL LAYOUT CLASSES
   ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  min-height: 70vh;
  background: var(--color-accent);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* General Flex Utilities */
.card-container,
.feature-grid,
.service-grid,
.team-list,
.card-grid,
.content-grid,
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 30px rgba(49, 71, 58, 0.13);
  transform: translateY(-4px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
/* =====================
   TYPOGRAPHY
   ===================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
h4 {
  font-size: 1.15rem;
}
p,
ul,
ol,
li,
table,
th,
td {
  font-size: 1rem;
  color: var(--color-gray);
}
p {
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  margin-top: -8px;
}
.notice {
  color: var(--color-error);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(49, 71, 58, 0.04);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-light-gray);
  color: var(--color-secondary);
}
.cta-button {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  background: var(--color-secondary);
  color: #fff;
  padding: 13px 32px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(49, 71, 58, 0.07);
  transition: background var(--transition), box-shadow var(--transition),
    transform var(--transition);
  display: inline-block;
  margin-left: 18px;
  outline: none;
  text-align: center;
}
.cta-button:hover,
.cta-button:focus {
  background: #bf593b;
  box-shadow: 0 4px 20px rgba(217, 116, 82, 0.13);
  transform: translateY(-2px) scale(1.03);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 68px 0 48px 0;
  margin-bottom: 0;
  box-shadow: 0 5px 30px rgba(49, 71, 58, 0.09);
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1,
.hero .subheadline {
  color: var(--color-accent);
}
.hero .cta-button {
  background: var(--color-secondary);
  color: #fff;
  margin-left: 0;
  margin-top: 22px;
}
.hero .cta-button:hover,
.hero .cta-button:focus {
  background: #bf593b;
}

/* =====================
   FLEXBOX SECTION & CARD PATTERNS
   ===================== */
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div,
.service-grid > div {
  flex: 1 1 280px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover,
.service-grid > div:hover {
  box-shadow: 0 8px 30px rgba(49, 71, 58, 0.13);
  transform: translateY(-2px);
}
.feature-grid img,
.service-grid img {
  width: 38px;
  height: 38px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  flex: 1 1 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-section {
  margin-bottom: 24px;
  margin-top: 6px;
  background: none;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.benefit-list,
.value-list {
  list-style-type: disc;
  padding-left: 1.6em;
  margin-bottom: 10px;
}
.benefit-list img,
.value-list img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.updates-list,
.news-list,
.event-list,
.step-list {
  list-style: none;
}
.updates-list li,
.news-list li,
.event-list li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 1.02rem;
  color: var(--color-dark);
}
.updates-list img,
.news-list img,
.event-list img {
  width: 25px;
  height: 25px;
}

.quick-alerts {
  margin-top: 20px;
}
.quick-alerts span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-error);
  background: #ffe2d6;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.05rem;
}

.faq-snippet {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-top: 18px;
}
.faq-snippet h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

/* =====================
   CTA SECTION
   ===================== */
.cta {
  color: var(--color-accent);
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 50px 20px 46px 20px;
}
.cta .cta-button {
  margin-left: 0;
  margin-top: 18px;
  background: var(--color-secondary);
}
.cta .cta-button:hover,
.cta .cta-button:focus {
  background: #bf593b;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.03rem;
  margin-bottom: 0;
  color: var(--color-primary);
  flex: 1 1 auto;
}
.testimonial-card img {
  width: 38px;
  height: 38px;
  filter: grayscale(0.6);
}
.testimonial-card span {
  color: var(--color-gray);
  font-size: 0.98rem;
  font-weight: 500;
  margin-left: 7px;
}

/* =====================
   CONTACT INFO BOXES
   ===================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #253028;
  color: #ffffff;
  position: relative;
  padding: 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 20px 38px 20px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #2b3832;
  padding-bottom: 12px;
}
.footer-top a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.96rem;
  margin-right: 4px;
}
.footer-top a:hover,
.footer-top a:focus {
  color: var(--color-secondary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  padding-top: 20px;
}
.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.98rem;
}
.footer-bottom img {
  width: 19px;
  height: 19px;
  filter: grayscale(0.9) brightness(1.3);
}

/* =====================
   MOBILE NAVIGATION
   ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(49, 71, 58, 0.07);
  transition: background var(--transition), filter var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49, 71, 58, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 2000;
  padding-top: 28px;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.57, 0.44, 0.35, 1.24);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin: 18px 0 24px 22px;
  align-self: flex-start;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 0;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: none;
  text-decoration: underline;
}

/* =====================
   RESPONSIVE STYLES
   ===================== */
@media (max-width: 1040px) {
  .container {
    max-width: 97vw;
  }
  header .container,
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .card-container,
  .feature-grid,
  .service-grid,
  .content-grid,
  .team-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 820px) {
  main > section,
  .section {
    padding: 30px 8px;
  }
  .cta {
    padding: 36px 8px 33px 8px;
  }
}
@media (max-width: 768px) {
  header nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section,
  main > section {
    margin-bottom: 44px;
    padding: 20px 5px;
  }
  .hero {
    padding: 48px 0 28px 0;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .feature-grid > div,
  .service-grid > div,
  .team-member {
    padding: 16px 8px;
  }
  .content-wrapper,
  .card-container,
  .content-grid,
  .card,
  .event-list {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  header .container {
    padding: 0 8px;
    min-height: 62px;
  }
  .footer-top,
  .footer-bottom {
    padding: 0 5px;
  }
  .footer-top a,
  .footer-bottom span,
  .footer-bottom div {
    font-size: 0.9rem;
  }
  .faq-snippet {
    padding: 8px 6px;
  }
}

/* =====================
   TABLET/MOBILE TABLES
   ===================== */
@media (max-width: 680px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    background: #fff;
  }
  td {
    border-bottom: 1px solid #e6eee9;
    position: relative;
    padding: 12px 32px 12px 16px;
    font-size: 1rem;
  }
  td:last-child {
    border-bottom: 0;
  }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(49, 71, 58, 0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  padding: 18px 12px 20px 12px;
  animation: bannerIn 0.4s cubic-bezier(0.57, 0.44, 0.35, 1.24) 1;
}
@keyframes bannerIn {
  from {
    transform: translateY(120px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner p {
  color: var(--color-gray);
  font-size: 0.98rem;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 7px;
}
.cookie-banner button {
  padding: 9px 20px;
  border-radius: 99px;
  border: none;
  font-size: 1rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition),
    color var(--transition);
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--color-secondary);
}
.cookie-banner .reject {
  background: #e6eee9;
  color: var(--color-primary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #dabeb3;
}
.cookie-banner .settings {
  background: none;
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 9px 18px;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -52%) scale(1);
  background: #fff;
  min-width: 350px;
  max-width: 98vw;
  box-shadow: 0 8px 36px rgba(49, 71, 58, 0.15);
  border-radius: var(--radius);
  z-index: 4000;
  padding: 33px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn 0.42s cubic-bezier(0.57, 0.44, 0.35, 1.24) 1;
}
@keyframes modalIn {
  from {
    transform: translate(-50%, 60%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -52%) scale(1);
    opacity: 1;
  }
}
.cookie-modal h2 {
  font-size: 1.19rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-modal .category-label {
  font-size: 1.01rem;
  font-weight: 500;
  color: var(--color-dark);
}
.cookie-modal input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--color-secondary);
}
.cookie-modal .category-essential {
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 99px;
  padding: 7px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal .save-modal {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 8px 23px;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal .save-modal:hover,
.cookie-modal .save-modal:focus {
  background: #bf593b;
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49, 71, 58, 0.49);
  z-index: 3990;
  animation: overlayIn 0.18s cubic-bezier(0.57, 0.44, 0.35, 1.24) 1;
}
@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 14px 4vw 8px 4vw;
  }
}

/* =====================
   ANIMATIONS & EFFECTS
   ===================== */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.57, 0.44, 0.35, 1.24) 1;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Smooth link underline effect */
a:not([class]) {
  box-shadow: inset 0 -2px 0 0 var(--color-secondary);
  padding-bottom: 1px;
  transition: box-shadow 0.17s;
}
a:not([class]):hover,
a:not([class]):focus {
  box-shadow: inset 0 -10px 0 0 #dabeb3;
}

/* =====================
   UTILITY CLASSES
   ===================== */
.hide {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.mt-2 {
  margin-top: 12px;
}
.mb-2 {
  margin-bottom: 12px;
}
.mt-4 {
  margin-top: 36px;
}
.mb-4 {
  margin-bottom: 36px;
}

/* =====================
   VISUAL HIERARCHY & SPACING (for conversion-driven design)
   ===================== */
.section > *:not(:last-child) {
  margin-bottom: 24px;
}
.card-container > *:not(:last-child),
.feature-grid > *:not(:last-child),
.team-list > *:not(:last-child),
.service-grid > *:not(:last-child),
.content-grid > *:not(:last-child),
.card-grid > *:not(:last-child),
.event-list > *:not(:last-child) {
  margin-right: 0;
}

/* =====================
   ACCESSIBILITY FOCUS INDICATORS
   ===================== */
a:focus,
button:focus,
.cta-button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =====================
   END OF CSS
   ===================== */
