/* === 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;
}
html {
  height: 100%;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #F6F3EE;
  color: #2D4739;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #2D4739;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C06C13;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  display: block;
}

/* === Typography === */
h1, .h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.22;
}
h2, .h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D4739;
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  color: #2D4739;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2D4739;
}
p {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: #2D4739;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid, .category-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature, .category, .team-member {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(44,71,57,.07);
  border: 1px solid #efe8db;
  border-radius: 16px;
  padding: 28px 22px 20px;
  flex: 1 1 260px;
  max-width: 330px;
  transition: box-shadow .18s, transform .18s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature:hover, .category:hover, .team-member:hover {
  box-shadow: 0 6px 24px 0 rgba(44,71,57,.25);
  transform: translateY(-4px) scale(1.015);
  border-color: #C06C13;
}
.team-grid {
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(44,71,57,0.08);
  border: 1px solid #eee3d5;
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(44,71,57,0.16);
  transform: translateY(-3px) scale(1.01);
  border-color: #C06C13;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #2D4739;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(44,71,57,.10);
  border: 1px solid #eadfc7;
  padding: 20px 32px;
  margin-bottom: 20px;
  min-width: 240px;
  transition: box-shadow .19s, border-color .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(192,108,19,0.21);
  border-color: #C06C13;
}
.testimonial-card p {
  font-style: italic;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  color: #2D4739;
}
.testimonial-card span {
  color: #555;
  font-size: .97em;
  margin-left: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.quick-tips {
  background: #f7f5f1;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  font-size: 1rem;
  color: #2D4739;
  font-family: 'Roboto', Arial, sans-serif;
}

.history-snippets {
  margin-top: 28px;
  background: #F6F3EE;
  border-radius: 12px;
  border: 1px solid #ede2cf;
  padding: 18px 20px;
  font-size: 1rem;
  color: #483d2a;
}

.social-media {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

/* === Header & Navigation === */
header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(44,71,57,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}
header nav img {
  height: 44px;
  margin-right: 20px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2D4739;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .14s, color .14s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: #F6F3EE;
  color: #C06C13;
}
.btn-primary {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.07rem;
  background: #C06C13;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 11px 32px;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(192,108,19,0.06);
  transition: background 0.19s, box-shadow 0.18s, color 0.15s;
  cursor: pointer;
  margin-left: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2D4739;
  color: #fff;
  box-shadow: 0 4px 16px #C06C1333;
  outline: none;
}

/* Hamburger mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid #C06C13;
  color: #2D4739;
  font-size: 2rem;
  padding: 2px 16px;
  border-radius: 7px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 14px;
  transition: background .21s;
  z-index: 1102;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #C06C13;
}

/* === Mobile Menu Styles === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 36px rgba(44,71,57,0.18);
  transform: translateX(-120vw);
  opacity: 0;
  transition: transform .38s cubic-bezier(.77,.04,.42,1), opacity .28s cubic-bezier(.44,0,.44,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #C06C13;
  align-self: flex-end;
  margin: 24px 32px 12px 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #2D4739;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 0 0;
  gap: 18px;
  margin: 28px 0;
}
.mobile-nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  color: #2D4739;
  background: #F6F3EE;
  border-radius: 10px;
  padding: 10px 44px;
  width: 90%;
  text-align: left;
  transition: background .13s, color .13s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #C06C13;
  color: #fff;
}

/* Hide main nav on mobile, show burger */
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu { display: none; }
}

/* === Hero Section === */
.hero {
  background: linear-gradient(120deg, #2D4739 0%, #F6F3EE 120%);
  color: #fff;
  padding: 50px 0 60px;
  margin-bottom: 48px;
  border-radius: 0 0 60px 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
  gap: 20px;
}
.hero h1, .hero h2 {
  color: #fff;
  font-size: 2.8rem;
}
.hero p {
  color: #fff;
  font-size: 1.17rem;
}
.hero .btn-primary {
  background: #C06C13;
  color: #fff;
  font-size: 1.15rem;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #C06C13 !important;
}

/* === Input (search) === */
input[type=text], input[type=search] {
  font-size: 1.1rem;
  border: 1px solid #C06C13;
  border-radius: 8px;
  padding: 11px 20px;
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
  transition: border-color 0.14s;
  background: #F6F3EE;
  color: #2D4739;
  font-family: 'Roboto', Arial, sans-serif;
}
input[type=text]:focus, input[type=search]:focus {
  border-color: #2D4739;
  outline: none;
}

/* === Footer === */
footer {
  background: #2D4739;
  color: #fff;
  padding: 52px 0 30px;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
}
footer .container {
  width: 100%;
  max-width: 1200px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 38px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 178px;
}
footer nav a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 0;
  opacity: .93;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  background: #C06C13;
  color: #fff;
}
footer .text-section {
  color: #eadfc7;
  font-size: .99em;
}
footer .social-media img {
  filter: brightness(95%) sepia(23%) hue-rotate(355deg) saturate(2.2);
  height: 26px;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #fff;
  color: #2D4739;
  border-top: 2.5px solid #C06C13;
  box-shadow: 0 -2px 16px rgba(44,71,57,.13);
  padding: 16px 20px;
  z-index: 1400;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  animation: slideUpCookie .6s cubic-bezier(.61,.17,.43,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  font-size: 1.02rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  color: #fff;
  cursor: pointer;
  background: #2D4739;
  transition: background .17s, color .17s, box-shadow .14s;
  margin-left: 0;
}
.cookie-banner .cookie-btn.accept {
  background: #C06C13;
}
.cookie-banner .cookie-btn.reject {
  background: #2D4739;
}
.cookie-banner .cookie-btn.settings {
  background: #F6F3EE;
  color: #C06C13;
  border: 1.5px solid #C06C13;
}
.cookie-banner .cookie-btn:focus {
  outline: 2px solid #C06C13;
  background: #fff;
  color: #2D4739;
}
.cookie-banner .cookie-btn:hover {
  opacity: .94;
  box-shadow: 0 2px 7px #C06C1327;
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,71,57,0.41);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInCookieModal .25s cubic-bezier(.81,0,.77,1);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  width: 92vw;
  border-radius: 18px;
  box-shadow: 0 8px 78px #2d473930;
  padding: 36px 26px 26px 26px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: scaleModalCookie .22s cubic-bezier(.41,.9,.77,1.2);
}
@keyframes scaleModalCookie {
  from { transform: scale(.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  color: #C06C13;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .close-cookie-modal:hover {
  color: #2D4739;
}
.cookie-modal h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #2D4739;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  font-size: 1.06rem;
  color: #2D4739;
}
.cookie-modal input[type=checkbox] {
  accent-color: #C06C13;
  margin-right: 8px;
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border: none;
  border-radius: 7px;
  padding: 8px 24px;
  color: #fff;
  background: #C06C13;
  font-size: 1rem;
  transition: background .13s, color .13s;
}
.cookie-modal .cookie-btn.cancel {
  background: #2D4739;
}
.cookie-modal .cookie-btn:focus {
  outline: 2px solid #2D4739;
}
.cookie-modal .cookie-btn:hover {
  background: #2D4739;
  color: #fff;
}
.cookie-modal .desc {
  font-size: .98rem;
  color: #555;
  margin-bottom: 4px;
}
/* === Main & General Spacing === */
main {
  min-height: 60vh;
  margin: 0 0 80px 0;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
}
@media (max-width: 600px) {
  section {
    padding: 28px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* === Responsive Flex & Layout Alignment === */
@media (max-width: 1024px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid,
  .category-grid,
  .team-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .category-grid, .team-grid {
    gap: 12px;
  }
  .feature, .category, .team-member {
    min-width: 180px;
    max-width: 95vw;
    flex-basis: 100%;
  }
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid, .category-grid, .team-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    gap: 15px;
    max-width: 100vw;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 9px;
  }
  .cookie-banner p {
    font-size: .98rem;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .feature, .category, .team-member {
    font-size: .96em;
    padding: 17px 8px 10px;
  }
  .testimonial-card {
    padding: 11px 7px;
    font-size: .98em;
  }
  .history-snippets {
    padding: 11px 7px;
    font-size: .95em;
  }
}

/* === Micro-interactions & Transitions === */
.btn-primary, .cookie-btn, .card, .feature, .testimonial-card {
  transition: box-shadow 0.18s, color .13s, background .14s, border-color .13s, transform .13s;
}

/* --- Miscellaneous --- */
::-webkit-input-placeholder { color: #2D473977; }
::-moz-placeholder { color: #2D473977; }
:-ms-input-placeholder { color: #2D473977; }
::placeholder { color: #2D473977; }

[tabindex]:focus { outline: 2px solid #C06C13; }

/* === Print Styles === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { color: #222; }
}
