/* ===========================================================
   CSS RESET & NORMALIZE FOR CONSISTENT BASELINE
   =========================================================== */
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,
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: #F6F4EF;
  color: #273146;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}
::selection {
  background: #A18A58;
  color: #fff;
}

/* ===========================================================
   BRAND FONT IMPORTS
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

/* ===========================================================
   COLOR VARIABLES
   =========================================================== */
:root {
  --color-primary: #273146;
  --color-secondary: #A18A58;
  --color-accent: #F6F4EF;
  --color-dark: #191F2B;
  --color-grey: #E8E5DD;
  --color-white: #fff;
  --color-focus: #d3c090;
  --shadow-md: 0 4px 24px rgba(39,49,70,0.12);
  --radius-card: 18px;
}

/* ===========================================================
   TYPOGRAPHY & HEADINGS
   =========================================================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 2.8rem;
  line-height: 1.12;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.2px;
  line-height: 1.18;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  h2, .h2 { font-size: 1.5rem; }
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.24;
  color: var(--color-dark);
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
}
p, li, blockquote, cite {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  background: var(--color-grey);
  border-left: 6px solid var(--color-secondary);
  margin: 0 0 12px 0;
  padding: 18px 24px 18px 16px;
  font-size: 1.1rem;
  border-radius: 14px;
}
cite {
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  padding-left: 10px;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-secondary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 1.5em;
  letter-spacing: 0.15em;
}
.mission-statement {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-style: italic;
  display: block;
  margin-bottom: 16px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ===========================================================
   CONTAINER STRUCTURES & SPACING (FLEXBOX ONLY)
   =========================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Cards & Flexbox Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  position: relative;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(39,49,70,0.10);
  border: 2.5px solid var(--color-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(39,49,70,0.08);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 min(280px, 100%);
  margin-bottom: 20px;
}

/* Feature grids: Always using flexbox! */
.feature-grid,
.core-values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid .feature-item,
.core-values-grid > div {
  flex: 1 1 min(260px, 100%);
  margin-bottom: 0;
}
.core-values-grid > div {
  background: var(--color-grey);
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 2.5px 9px rgba(39,49,70,0.07);
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .feature-grid, .core-values-grid {
    flex-direction: column;
  }
}

/* Card spacing pattern */
.card:not(:last-child), .feature-item:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}
/* Section spacing override for last child */
section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(39,49,70,.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  padding: 0 20px;
  min-height: 78px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
header .btn-primary {
  margin-left: 20px;
  flex-shrink: 0;
}
header img {
  height: 46px;
}

/* ====================================
   MOBILE BURGER MENU
   ==================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 2.3rem;
  border-radius: 9px;
  padding: 4px 16px 4px 12px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 61;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  box-shadow: 0 0 24px rgba(39,49,70,0.35);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.84,0,0.24,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.4rem;
  background: none;
  color: var(--color-primary);
  border: none;
  margin: 18px 22px 0 0;
  cursor: pointer;
  transition: color .18s;
  z-index: 70;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  padding: 18px 23px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  padding: 16px 0 8px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  display: block;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

@media (max-width: 1050px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Overlay when menu is open - for smooth fade in */
.mobile-menu:before {
  content: '';
  display: none;
}
.mobile-menu.open:before {
  display: none;
}

/* ===========================================================
   BUTTONS & LINKS
   =========================================================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 13px 32px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2.5px 12px rgba(39,49,70,0.14);
  letter-spacing: 2px;
  margin-top: 12px;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 25px rgba(161,138,88,0.16);
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(39,49,70,0.10);
}
.faq-link {
  color: var(--color-secondary);
  font-weight: 700;
  transition: color 0.16s;
  border-bottom: 2.5px solid var(--color-secondary);
  padding-bottom: 2px;
}
.faq-link:hover, .faq-link:focus {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===========================================================
   HERO SECTIONS & CTAs
   =========================================================== */
.hero {
  background: linear-gradient(to right, #F6F4EF 80%, #E8E5DD 120%);
  border-bottom: 5px solid var(--color-secondary);
  padding: 0 0 44px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.hero .container {
  min-height: 220px;
  justify-content: center;
  flex-direction: column;
}
.cta {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 22px rgba(161,138,88,0.12);
  margin-bottom: 48px;
}
.cta h2, .cta p {
  color: var(--color-accent) !important;
}
.cta a.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  margin-top: 16px;
}
.cta a.btn-primary:hover, .cta a.btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ===========================================================
   FEATURES, ABOUT, TESTIMONIALS, SECTIONS
   =========================================================== */
.features, .about, .testimonials, .services, .project-categories, .news-list, .app-process, .contact-info, .contact-form, .privacy-policy, .gdpr-policy, .cookie-policy, .terms, .thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.impact-list {
  padding-left: 10px;
  margin-bottom: 24px;
}
.impact-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.impact-list li:before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--color-secondary);
  border-radius: 20% 30% 40% 60% / 30% 20% 60% 40%;
  display: inline-block;
  margin-right: 10px;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 38px;
  margin-bottom: 12px;
}
.text-section p, .text-section ul, .text-section li {
  margin-bottom: 12px;
  font-size: 1.01rem;
}
.text-section ul li {
  list-style: disc inside;
}

.thank-you-message {
  background: var(--color-grey);
  border-radius: 16px;
  padding: 30px 22px 22px 22px;
  box-shadow: 0 3px 14px rgba(161,138,88,0.04);
  font-size: 1.06rem;
}
.thank-you-message a.btn-primary {
  margin-top: 14px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 46px 0 18px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-accent);
  opacity: 0.9;
  letter-spacing: 1px;
  transition: color 0.14s, opacity 0.12s;
  border-bottom: 2px solid transparent;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  opacity: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand img {
  max-height: 36px;
}
.footer-legal {
  flex: 1 1 100%;
  margin-top: 20px;
  text-align: left;
}
.footer-legal small {
  font-size: 0.89rem;
  color: var(--color-grey);
  opacity: 0.78;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-legal { text-align: left; }
}

/* ===========================================================
   RESPONSIVE LAYOUTS
   =========================================================== */
@media (max-width: 900px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section,
  .features, .about, .testimonials, .services, .project-categories, .news-list, .app-process, .contact-info, .contact-form, .privacy-policy, .gdpr-policy, .cookie-policy, .terms, .thank-you {
    padding: 32px 6px;
    margin-bottom: 44px;
  }
  .feature-grid, .core-values-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  .feature-item, .card {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
  }
}

/* ===========================================================
   ACCESSIBILITY STATES & INTERACTIONS
   =========================================================== */
a:focus, button:focus {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 7px;
}
a:active {
  outline: none;
}

/* Micro-interactions */
.card, .feature-item, .testimonial-card {
  transition: transform 0.19s, box-shadow 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.017);
  box-shadow: 0 8px 40px rgba(161,138,88,0.10);
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   =========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 18px 18px 30px;
  box-shadow: 0 -3px 34px rgba(39,49,70,.12);
  z-index: 2000;
  animation: cookiebanner-fade-in .44s cubic-bezier(.75,0,.35,1);
}
.cookie-banner p {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1.5px 10px rgba(161,138,88,0.09);
  font-size: 1rem;
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-settings-btn {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-secondary);
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--color-secondary) !important;
  color: var(--color-accent) !important;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 8px 8px 10px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
  }
}
@keyframes cookiebanner-fade-in {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; width: 100vw; height: 100vh;
  background: rgba(39,49,70,0.30);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
  animation: modal-fade-in .23s;
}
@keyframes modal-fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 6px 34px rgba(39,49,70,0.15);
  padding: 34px 32px 26px 32px;
  min-width: 285px;
  max-width: 97vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-modal p {
  color: var(--color-primary);
  margin-bottom: 14px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 17px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
}
.cookie-toggle {
  width: 38px; height: 22px;
  background: var(--color-grey);
  border-radius: 16px;
  border: 2px solid var(--color-secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  margin-left: 10px;
  margin-right: 8px;
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-toggle:before {
  position: absolute;
  content: '';
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-toggle[aria-checked="true"]:before {
  left: 18px;
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal button {
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  margin-right: 2px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  font-size: 1rem;
  box-shadow: 0 1.5px 10px rgba(161,138,88,0.09);
}
.cookie-modal button:focus,
.cookie-modal button:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 24px; right: 34px;
  background: none;
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 18px 6px 22px 6px;
    min-width: 0;
    max-width: 94vw;
  }
  .cookie-modal .cookie-modal-close {
    right: 10px; top: 8px;
  }
}

/* ===========================================================
   MISCELLANEOUS
   =========================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 10px;
}

hr {
  border: 0;
  height: 1.5px;
  background: var(--color-grey);
  margin: 32px 0;
}

/* Inline icons */
li img {
  vertical-align: middle;
  height: 21px;
  margin-right: 8px;
}

/* Spacing overrides for copy sections */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* Ensures minimum spacing between all cards */
.card + .card, .feature-item + .feature-item, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* No grid, columns, or absolute for content! Only allowed for deco shapes if used elsewhere */
