/* RESET & BASELINE STYLES */
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;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f5f7fa;
  color: #233144;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
a {
  color: #27683b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #a07600;
}
blockquote {
  margin: 0;
  font-style: italic;
  color: #233144;
}

/* BRAND COLORS */
:root {
  --primary: #27683b;
  --primary-light: #37895a;
  --secondary: #e0efda;
  --accent: #a07600;
  --white: #fff;
  --black: #1b232c;
  --gray-light: #f5f7fa;
  --gray: #d7e0eb;
  --gray-dark: #7e8a9a;
  --shadow: rgba(39,104,59,0.05);
  --radius: 10px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #233144;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.17rem; }
.subheadline {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
}
p, li, ul, ol {
  font-size: 1rem;
  color: #233144;
  margin-bottom: 8px;
}
strong { font-weight: 700; }

/* LINKS & INTERACTIONS */
a:focus,
.btn-primary:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* BUTTONS */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 1.1rem;
  margin-top: 14px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(39, 104, 59, 0.13);
}

/* LAYOUT: CONTAINER & STRUCTURE */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: var(--white);
  box-shadow: 0 5px 24px var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0;
  background: none;
  box-shadow: none;
}

/* FLEX SPACING CONTAINER PATTERNS (from instruction) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  box-shadow: 0 2px 14px var(--shadow);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  margin-bottom: 20px;
  background: var(--gray-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 1px 7px var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(39,104,59,0.10);
}
.testimonial-author {
  display: block;
  font-size: 1rem;
  font-style: normal;
  color: var(--gray-dark);
  margin-top: 10px;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Featured grid for the index highlights */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 18px 0 0 0;
}
.feature-grid > div {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 28px 22px 18px 22px;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 275px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.15s, background 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  background: #d7e0eb;
  box-shadow: 0 6px 20px rgba(39,104,59,0.10);
  transform: translateY(-5px) scale(1.03);
}
.feature-grid img {
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
}

/* Service list, faq, contact list, etc. */
.service-list, .contact-list {
  margin-left: 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-list li, .contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-light);
  padding: 14px 16px;
  border-radius: 7px;
  box-shadow: 0 1px 7px var(--shadow);
}
.contact-list img {
  width: 20px;
  height: 20px;
}

/* TABLE DESIGN */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
  font-size: 1rem;
}
th, td {
  border: 1px solid var(--gray);
  padding: 13px 18px;
}
th {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
}
tr:nth-child(even) td { background: #f7faf9; }

/* HEADER & NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 20px;
}
header a img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #233144;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary {
  margin-left: 28px;
}
.mobile-menu-toggle {
  font-size: 2rem;
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  display: none;
  margin-left: 20px;
  z-index: 202;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: var(--accent);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  z-index: 201;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 15px 2px rgba(39,104,59,0.09);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.5,0.3,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  padding: 18px 24px 6px 24px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 202;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  padding: 32px 40px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #233144;
  font-weight: 600;
  padding: 12px 2px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 46px 0 22px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contact {
  color: var(--white);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact a {
  color: var(--accent);
  word-break: break-all;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.12rem;
  color: #e0efda;
  margin-top: 10px;
}
.footer-brand img {
  width: 50px;
  height: 50px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .feature-grid > div { max-width: 45vw; }
  footer .container{
    flex-direction: column;
    gap: 36px;
  }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid > div { min-width: 190px; max-width: 97vw; }
}
@media (max-width: 768px) {
  .content-wrapper { padding: 34px 0.9rem; }
  .section { padding: 24px 5.5vw; margin-bottom: 38px; }
  .feature-grid { flex-direction: column; align-items: stretch; }
  .feature-grid > div { min-width: unset; max-width: 100vw; }
  .main-nav { display: none; }
  .btn-primary {
    margin-left: 0;
    width: 100%;
    min-width: 120px;
  }
  .mobile-menu-toggle { display: block; }
  .footer-brand { flex-direction: column; gap: 6px; align-items: flex-start; }
  .content-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 24px; }
}
@media (max-width: 520px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .footer-brand img { width: 40px; height: 40px; }
  .section, .content-wrapper { padding: 12px 4vw; }
  .feature-grid > div {
    padding: 16px 8px 13px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100vw;
  left: 0;
  z-index: 210;
  background: var(--gray-light);
  color: #233144;
  box-shadow: 0 -3px 16px var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 18px;
  font-size: 1rem;
  gap: 18px;
  transition: transform 0.3s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: 28px;
}
.cookie-banner button {
  border: none;
  border-radius: 6px;
  padding: 9px 19px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.18s;
}
.cookie-accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-accept:hover {
  background: var(--primary-light);
}
.cookie-reject {
  background: #c1c7cd;
  color: #233144;
}
.cookie-reject:hover {
  background: #adb4bc;
}
.cookie-settings {
  background: var(--accent);
  color: var(--white);
}
.cookie-settings:hover {
  background: #d4ab4a;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,35,44,0.45);
  z-index: 211;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.show {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: var(--white);
  color: #233144;
  border-radius: 13px;
  box-shadow: 0 7px 38px rgba(39,104,59,0.16);
  padding: 36px 22px 22px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-size: 1rem;
  animation: cookieModalIn 0.35s cubic-bezier(0.64, 0.03, 0.18, 0.95);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal .modal-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-family: 'Montserrat','Roboto',Arial,sans-serif;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
  z-index: 99;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category strong {
  min-width: 135px;
  color: var(--primary);
}
.cookie-category input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: var(--primary);
  margin-right: 7px;
}
.cookie-category input[disabled] {
  accent-color: #acd2bb;
}
.cookie-modal .cookie-save {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 10px 27px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.16s;
  margin-top: 16px;
}
.cookie-modal .cookie-save:hover {
  background: var(--accent);
}

/* UI Micro-interactions */
.btn-primary, .btn-primary:focus, .btn-primary:active,
.cookie-banner button, .cookie-modal .cookie-save {
  transition: background 0.2s, color 0.19s, box-shadow 0.16s, transform 0.18s;
}
.feature-grid > div, .testimonial-card, .service-list li, .card {
  transition: box-shadow 0.16s, background 0.19s, border-color 0.18s, transform 0.18s;
}

/* ADDITIONAL: Accessibility & Focus Styles */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* GENERAL FORM STYLES */
input, select, textarea {
  border: 1px solid var(--gray);
  border-radius: 6px;
  background: #f5f7fa;
  color: #233144;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

/* PRINTING (Optional, for professionalism) */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #191e21; }
}
