/* ========================================================================
   Gossamer Frischelieferservice – Professional Corporate CSS (Flexbox Only)
   ======================================================================== */

/* -------------------------------
   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: #F5F7FA;
}
ol, ul, li, dl {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------
   Font Face (Google Fonts Fallback)
--------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  background-color: #F5F7FA;
  color: #2D3748;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
  color: #174425;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.3; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, dl, li, blockquote { font-size: 1rem; line-height: 1.6; }
strong { font-weight: 600; }

/* ---------------------------------------
   Layout Containers
--------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===============================
   HEADER & NAVIGATION (DESKTOP)
=============================== */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #E1E6EA;
  box-shadow: 0 2px 8px rgba(37,51,72,0.03);
  padding: 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
header img {
  height: 42px;
}
nav {
  display: flex;
  gap: 28px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  align-items: center;
}
nav a {
  color: #174425;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.25s, color 0.2s;
  font-weight: 500;
  position: relative;
}
nav a:hover,
nav a:focus {
  background: #E5F3EB;
  color: #174425;
  outline: none;
}
nav .cta-primary {
  background: #216038;
  color: #FFFFFF;
  padding: 9px 22px;
  font-weight: 700;
  margin-left: 10px;
  border-radius: 8px;
  transition: background 0.22s, box-shadow 0.22s, color 0.15s;
  box-shadow: 0 2px 8px 0 rgba(33,96,56,0.07);
  border: none;
  letter-spacing: 0.02em;
}
nav .cta-primary:hover, nav .cta-primary:focus {
  background: #174425;
  color: #fff4e6;
  box-shadow: 0 6px 16px 0 rgba(33,96,56,0.13);
}

/* ===============================
   MOBILE NAVIGATION
=============================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #174425;
  cursor: pointer;
  padding: 8px;
  margin-left: 18px;
  transition: background 0.15s;
  border-radius: 4px;
  z-index: 1021;
}
.mobile-menu-toggle:focus {
  background: #E5F3EB;
  outline: none;
}
.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #216038;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 6px 48px 0 rgba(23,68,37,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  color: #fff;
  font-size: 2.3rem;
  cursor: pointer;
  padding: 20px 24px 14px 18px;
  align-self: flex-end;
  margin-right: 6px;
  margin-top: 12px;
  z-index: 2010;
  transition: background 0.2s;
  border-radius: 4px;
}
.mobile-menu-close:focus {
  background: #E5F3EB;
  color: #174425;
  outline: none;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 26px 34px 18px 34px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  padding: 14px 0;
  width: 100%;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5F3EB;
  color: #174425;
}

/* Hamburger visible only on mobile */
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
  background: #F5F3EE;
  border-bottom: 1px solid #E1E6EA;
  min-height: 370px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 650px;
  padding: 24px 0 32px 0;
}
.hero h1 {
  margin-bottom: 20px;
  color: #174425;
}
.hero p {
  font-size: 1.18rem;
  color: #2D3748;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero .cta-primary {
  display: inline-block;
}

/* ===============================
   GENERIC SECTIONS
=============================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(32,96,56,0.06);
  /* Proper spacing always */
}

/* Default for main > section if not .section */
main > section {
  margin-bottom: 60px;
  padding: 40px 0; 
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* Responsive Section for Mobile */
@media (max-width: 768px) {
  .section,
  main > section {
    padding: 28px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* ===============================
   FLEXBOX LAYOUTS
=============================== */

.card-container, .features-grid, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 2px 9px rgba(40,60,100,0.08);
  position: relative;
  padding: 24px 20px 20px 20px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(23,68,37,0.12);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #F5F3EE;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(32,96,56,0.06);
  border-left: 5px solid #216038;
  min-width: 0;
  max-width: 600px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 12px 32px rgba(23,68,37,0.15);
  background: #fff;
}
.testimonial-header span {
  color: #CE8432;
  font-size: 1.32rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
}
.testimonial-author {
  color: #174425;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 18px;
  background: #FFFFFF;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(40,60,100,0.08);
}

/* Features/Icons alignment */
.features-grid > div, .features-grid .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 230px;
  background: #fff;
  padding: 24px 20px 18px 20px;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(40,60,100,0.06);
  min-width: 0;
  transition: box-shadow 0.19s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 18px rgba(23,68,37,0.10);
}
.features-grid img {
  width: 36px;
  height: 36px;
}
.features-grid h3 {
  margin-bottom: 4px;
  color: #174425;
  font-size: 1.08rem;
  font-weight: 700;
}
.features-grid p {
  font-size: 1rem;
  color: #2D3748;
}

@media (max-width: 768px) {
  .card-container,
  .features-grid,
  .content-grid,
  .card-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .features-grid > div {
    width: 100%;
    padding: 18px 10px 14px 10px;
  }
}

/* ===============================
   FORMS, TABLES, OLs, ULs, DLs
=============================== */
input, select, textarea {
  border-radius: 5px;
  border: 1px solid #E1E6EA;
  padding: 8px 12px;
  margin-bottom: 16px;
  background: #fff;
  transition: border 0.14s;
  font-size: 1rem;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border: 1.5px solid #216038;
  outline: none;
}
label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #174425;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 1px 7px rgba(32,96,56,0.06);
  border-radius: 11px;
  overflow: hidden;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  color: #2D3748;
}
th {
  background: #F5F3EE;
  color: #174425;
  font-weight: 700;
}
tr:nth-child(even) {
  background: #F5F7FA;
}
tr {
  border-bottom: 1px solid #e8e8e8;
}

ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
ol li {
  margin-bottom: 9px;
  position: relative;
  color: #174425;
  font-weight: 500;
  /* Add flex if containing icon img */
  display: flex;
  align-items: center;
  gap: 12px;
}
ol li img {
  width: 26px;
  height: 26px;
}
ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
ul li {
  margin-bottom: 7px;
  color: #2D3748;
  position: relative;
  padding-left: 0;
}
dt {
  font-weight: 700;
  color: #174425;
  margin-top: 12px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #2D3748;
}

/* ===============================
   BUTTONS & LINKS
=============================== */
.cta-primary, button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #216038;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(33,96,56,0.08);
  transition: background 0.18s, color 0.19s, box-shadow 0.18s, border 0.15s;
  text-decoration: none;
  margin: 6px 0;
  outline: none;
  letter-spacing: 0.015em;
}
.cta-primary:hover,
.cta-primary:focus,
button:hover,
button:focus,
.btn:hover,
.btn:focus {
  background: #174425;
  color: #fff4e6;
  box-shadow: 0 6px 24px rgba(33,96,56,0.14);
}

a {
  color: #216038;
  transition: color 0.2s, border-bottom 0.15s;
}
a:hover, a:focus {
  color: #A05A00;
  text-decoration: underline;
  outline: none;
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #174425;
  color: #fff;
  padding: 48px 0 30px 0;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  width: 68px;
  height: auto;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #E3F4E7;
  font-size: 1rem;
  font-weight: 500;
  padding: 3px 0;
  border-radius: 2px;
  transition: background 0.15s, color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff4e6;
  color: #174425;
  outline: none;
}
.footer-contact {
  font-size: 0.97rem;
  margin-top: 6px;
  line-height: 1.6;
  color: #D9FFE5;
}
@media (max-width: 992px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ===============================
   RESPONSIVE UTILITIES
=============================== */
@media (max-width: 1460px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .hero {
    min-height: 270px;
    padding: 0;
  }
  .footer-brand img {
    width: 52px;
  }
}

/* ===============================
   COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: #fff;
  border-top: 2.5px solid #216038;
  box-shadow: 0 -2px 24px rgba(33,96,56,0.09);
  padding: 22px 28px 18px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  color: #174425;
  animation: cookie-banner-in 0.42s cubic-bezier(.73,0,.41,1);
}
@keyframes cookie-banner-in {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: #174425;
  margin: 0 24px 0 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  background: #216038;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #174425;
  color: #fff4e6;
}
.cookie-banner .settings-btn {
  background: #fff;
  color: #216038;
  border: 1.4px solid #216038;
  margin-left: 10px;
  transition: background 0.17s, color 0.15s, border 0.13s;
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: #E5F3EB;
  color: #174425;
  border-color: #174425;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 10px 12px 10px;
    font-size: 0.96rem;
  }
  .cookie-banner p {
    margin: 0 0 8px 0;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,68,37, 0.23);
  z-index: 2550;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-cookie-modal 0.3s cubic-bezier(.58,0,.41,1);
}
@keyframes fade-in-cookie-modal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(23,68,37,0.16);
  max-width: 360px;
  width: 90vw;
  padding: 28px 28px 26px 28px;
  z-index: 2560;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.32s cubic-bezier(.63,0,.37,1);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.9) translateY(39px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.21rem;
  margin-bottom: 12px;
  color: #174425;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E5F3EB;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-size: 1.05rem;
  font-weight: 500;
  color: #216038;
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-category input[type=checkbox]:disabled + span {
  color: #A0AEC0;
  font-style: italic;
}
.cookie-category input[type=checkbox] {
  accent-color: #216038;
  width: 18px; height: 18px;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-actions button {
  padding: 8px 18px;
  border-radius: 6px;
  background: #216038;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.cookie-modal-actions .modal-cancel {
  background: #fff;
  color: #216038;
  border: 1px solid #216038;
  transition: background 0.12s, color 0.11s;
}
.cookie-modal-actions .modal-cancel:hover,
.cookie-modal-actions .modal-cancel:focus {
  background: #E5F3EB;
  color: #174425;
}

/* ===============================
   MISC
=============================== */
blockquote {
  border-left: 5px solid #216038;
  background: #F5F3EE;
  color: #2D3748;
  padding: 18px 24px;
  margin: 18px 0 24px 0;
  border-radius: 11px;
}

code, pre {
  background: #F5F3EE;
  color: #A05A00;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.98rem;
}

::-webkit-input-placeholder { color: #A0AEC0; }
::-moz-placeholder          { color: #A0AEC0; }
:-ms-input-placeholder      { color: #A0AEC0; }
::placeholder              { color: #A0AEC0; }

/* Table scroll for small screens */
@media (max-width: 600px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  thead { display: none; }
  tr { margin-bottom: 14px; }
  td {
    padding: 12px 12px;
    position: relative;
  }
  td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: #174425;
    margin-bottom: 5px;
  }
}

/* ===============================
   ANIMATIONS & EFFECTS
=============================== */
.card, .features-grid > div, .testimonial-card,
.cta-primary, button, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, background 0.13s, color 0.14s, border 0.16s;
}

/* ===============================
   UTILITIES
=============================== */
.d-none { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; clip: rect(0,0,0,0);
  overflow: hidden;
}
.text-center { text-align: center; }
.mt-3  { margin-top: 24px !important; }
.mt-4  { margin-top: 36px !important; }
.mb-3  { margin-bottom: 24px !important; }
.mb-4  { margin-bottom: 36px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }
.gap-4 { gap: 36px !important; }

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