/* ===========================================================
   CSS RESET & BASE STYLES (Normalize + Reset)
============================================================ */
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, main, menu,
nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}
html {
  line-height: 1.5;
  font-size: 16px;
}
body {
  min-height: 100vh;
  background: #f8f9fa;
  color: #181818;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

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

:root {
  --color-bg: #ffffff;
  --color-bg-dark: #181818;
  --color-surface: #f8f9fa;
  --color-on-surface: #181818;
  --color-primary: #181818;
  --color-secondary: #222222;
  --color-accent: #7c6429;
  --color-shadow: rgba(0,0,0,0.08);
  --color-border: #d3d3d8;
  --color-grey-light: #f4f4f6;
  --color-grey-mid: #dedede;
  --color-grey-dark: #343338;
  --color-footer: #232323;
  --color-success: #224A23;
  --color-error: #c52c2c;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0.1,0.2,1);
  --radius: 12px;
  --radius-sm: 8px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
}

/*******************************
  TYPOGRAPHY & HEADINGS
*******************************/
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
p, li{
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-grey-light);
  border-radius: var(--radius-sm);
}
blockquote span {
  display: block;
  margin-top: var(--spacing-xs);
  color: var(--color-accent);
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95em;
}

/******************************
  GLOBAL LAYOUTS & CONTAINER
******************************/
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
section {
  background: var(--color-bg);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .section {
    padding: 56px 32px;
    margin-bottom: 85px;
  }
}

/*******************************
  HEADER 
*******************************/
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
  box-shadow: 0 2px 14px -10px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
@media (max-width: 450px) {
  .logo img {
    height: 34px;
  }
}

.main-navigation {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-navigation a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  padding: 5px 2px;
  border-radius: 3px;
  transition: color .2s, background .2s;
  position: relative;
}
.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--color-accent);
  background: var(--color-grey-light);
}

.cta-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: var(--radius);
  box-shadow: 0px 2px 8px -4px var(--color-shadow);
  letter-spacing: 0.02em;
  margin-left: 12px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.cta-link {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  transition: color .18s;
  margin-top: var(--spacing-xs);
}
.cta-link:hover,
.cta-link:focus {
  color: var(--color-primary);
}

/******************
 MOBILE MENU BUTTON
*******************/
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1101;
  background: var(--color-primary);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  border: none;
  margin-left: 18px;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 980px) {
  .main-navigation, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/********************
  MOBILE MENU (DRAWER)
**********************/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 30, 0.95);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.68,-0.03,0.32,1.07);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  margin: 26px 26px 0 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, color .14s;
  cursor: pointer;
  border: none;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-grey-mid);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 32px;
  margin-top: 44px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 18px 0 18px 6px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  margin-bottom: 4px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #fff;
  color: var(--color-accent);
}
@media (max-width: 600px) {
  .mobile-nav {
    padding: 0 11vw;
  }
}

/********************************************
   MAIN & SECTION SPACING / LAYOUT PATTERNS
*********************************************/
main {
  flex: 1 1 auto;
  width: 100%;
}
section {
  width: 100%;
  margin-bottom: 44px;
}
/***** Spacing as required by mission *****/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px -5px var(--color-shadow);
  padding: var(--spacing-lg);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .19s;
  border: 1px solid var(--color-grey-mid);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 22px -4px var(--color-shadow);
  border-color: var(--color-accent);
}
.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;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px -8px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  max-width: 520px;
  transition: box-shadow .16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px -8px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-grey-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px -8px var(--color-shadow);
  padding: 36px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 330px;
  border: 1px solid var(--color-border);
  transition: box-shadow .18s, border-color .18s;
  margin-bottom: 20px;
}
.feature-item h3 {
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 8px 20px -5px var(--color-shadow);
  border-color: var(--color-accent);
}
/***** List Layouts *****/
.feature-grid,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--spacing-sm);
  justify-content: flex-start;
}
.feature-list {
  gap: 20px;
}
/***** TESTIMONIALS *****/
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/***** Contact Info *****/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}
.contact-info img {
  vertical-align: middle;
  margin-right: 8px;
  height: 20px;
  width: 20px;
}
.contact-cta {
  margin-top: var(--spacing-sm);
}

/******************************************
  BUTTONS
******************************************/
button, .button {
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  outline: none;
  transition: background .17s, color .17s;
  cursor: pointer;
}
.button--secondary {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 10px 24px;
  font-weight: 600;
}
.button--secondary:hover,
.button--secondary:focus {
  background: var(--color-accent);
  color: #fff;
}
.button--text {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 600;
  padding: 0 2px;
}
.button--text:hover,
.button--text:focus {
  text-decoration: underline;
  color: var(--color-primary);
}

/***** UTILITY GAPS FOR FLEXBOX *****/
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 32px; }

/******************************************
  FOOTER
******************************************/
footer {
  background: var(--color-footer);
  color: #fff;
  padding: 44px 0 18px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.footer-logo img {
  height: 40px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-menu a {
  color: #fff;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.18s;
  margin-bottom: 2px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.99em;
  color: #eee;
  font-family: var(--font-body);
  max-width: 300px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  height: 19px;
  width: 19px;
  opacity: 0.95;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
}
.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  background: var(--color-bg-dark);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background .16s;
}
.footer-social a:hover {
  background: var(--color-accent);
}
.footer-social img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%) contrast(150%);
  transition: filter .17s;
}
.footer-social a:hover img {
  filter: none;
}

/******************************************
  RESPONSIVE
******************************************/
@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid, .feature-list, .testimonial-list, .content-grid {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 820px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 14px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.05rem; }
  .section { padding: 28px 9px; margin-bottom: 36px; }
  .feature-item { padding: 22px 11px; }
}
@media (max-width: 768px) {
  .feature-grid, .feature-list, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-social {
    margin-top: 16px;
  }
}
@media (max-width: 550px) {
  h1, .h1 { font-size: 1.3rem; }
  h2, .h2 { font-size: 1.075rem; }
  .feature-item, .testimonial-card { padding: 14px 6px; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 6px;
  }
}
/*******************************************
 MICRO-INTERACTIONS
*******************************************/
.feature-item, .testimonial-card, .card, .footer-social a {
  will-change: box-shadow, transform;
  transition: box-shadow .20s, transform .13s, border-color .15s;
}
.feature-item:hover, .testimonial-card:hover, .card:hover {
  box-shadow: 0 12px 32px -10px var(--color-shadow);
  transform: translateY(-3px) scale(1.012);
}
.footer-social a:active {
  transform: scale(0.95);
}

/*******************************************
  COOKIE CONSENT BANNER
*******************************************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  color: #222;
  box-shadow: 0 -2px 48px -18px var(--color-shadow);
  border-top: 1px solid var(--color-grey-mid);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 32px 6vw 24px 6vw;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform .3s cubic-bezier(.73,-0.14,.56,1.09), opacity .15s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 2 1 270px;
  color: var(--color-secondary);
}
.cookie-banner__actions {
  flex: 1 1 110px;
  display: flex;
  gap: 16px;
  min-width: 0;
}
.cookie-btn {
  min-width: 120px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-right: 4px;
  transition: background .14s, color .14s, box-shadow .14s;
}
.cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
  box-shadow: 0 2px 10px -6px var(--color-shadow);
}
.cookie-btn.accept:hover {
  background: var(--color-accent);
}
.cookie-btn.reject {
  background: #e4e4e7;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.reject:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) scale(1);
  z-index: 10020;
  background: #fff;
  color: #181818;
  width: 96vw;
  max-width: 410px;
  box-shadow: 0 6px 36px -10px var(--color-shadow);
  border-radius: var(--radius);
  padding: 42px 22px 32px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .26s cubic-bezier(.66,.04,.28,1.08);
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translateX(-50%) scale(1.04);
  pointer-events: auto;
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 400;
}
.cookie-toggle input[type=checkbox] {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-accent);
  accent-color: var(--color-accent);
  border-radius: 4px;
  margin-right: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
}
.cookie-modal .close-modal {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-grey-dark);
  padding: 9px 19px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .13s, color .13s;
}
.cookie-modal .close-modal:hover {
  background: var(--color-grey-mid);
  color: var(--color-accent);
}

/******************************************
  MISC & FORMATTING
******************************************/
ul, li {
  margin-bottom: 7px;
  list-style: disc inside;
}
ul {
  padding-left: 17px;
}
li {
  padding-left: 8px;
}

hr {
  margin: 40px 0 30px;
  border: none;
  border-top: 1px solid var(--color-border);
}

/******************************************
    ACCESSIBILITY OUTLINE
******************************************/
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/******************************************
    SPECIAL FORMS, etc (if needed)
******************************************/
input, textarea {
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  padding: 10px 13px;
  background: #fff;
  color: var(--color-primary);
  font-size: 1em;
  margin-bottom: 14px;
  box-sizing: border-box;
  transition: border-color .15s;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

/********************************************
 Z-INDEX STANDARD STACKING
********************************************/
header { z-index: 1040; }
.mobile-menu { z-index: 1100; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10020; }

