/* =============================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #1F2937;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
*, *:before, *:after {
  box-sizing: border-box;
}

/* =============================================================
   BRAND COLORS & TYPOGRAPHY
   ============================================================= */
:root {
  --color-primary: #1F2937;
  --color-secondary: #FFFFFF;
  --color-accent: #AD7A24;
  --color-neutral: #F9F9F6;
  --color-border: #ECECEC;
  --color-muted: #BFC4CA;
  --typo-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --typo-body: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--typo-display);
  color: var(--color-primary);
  margin-bottom: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol {
  font-family: var(--typo-body);
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--color-primary);
}
strong, b {
  font-weight: 600;
  color: var(--color-primary);
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
  font-family: var(--typo-body);
  line-height: 1.6;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =============================================================
   LAYOUT: CONTAINER, PAGES, SPACING RULES
   ============================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.text-section {
  align-items: flex-start;
  margin: 0 auto;
  width: 100%;
}
/* Feature Grid (used for icon features on index, opportunities) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  align-items: stretch;
  width: 100%;
}
.feature-grid > div {
  background: var(--color-neutral);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  box-shadow: 0 2px 14px rgba(40,40,51,0.04);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div img {
  width: 32px;
  margin-bottom: 10px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px rgba(30,30,40,0.10);
  transform: translateY(-4px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-neutral);
  box-shadow: 0 2px 10px rgba(40,40,51,0.04);
  border-radius: 15px;
  position: relative;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(30,30,40,0.09);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonials {
  background: var(--color-neutral);
  padding-bottom: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(80,80,60,0.08);
  padding: 24px 26px;
  margin-bottom: 20px;
  color: var(--color-primary);
  max-width: 580px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.0625rem;
}
.testimonial-card span {
  font-size: 1rem;
  font-family: var(--typo-body);
  color: #6C6C7A;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 10px 28px rgba(120,110,74,0.10);
  border-color: var(--color-accent);
}
.as-seen-on {
  margin-top: 14px;
  font-size: 0.97rem;
  color: #86888b;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.map-location {
  color: #86888b;
  font-style: italic;
  font-size: 0.96rem;
}

/* Footer styles */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 48px 0 10px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-logo img {
  width: 52px;
  height: auto;
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: var(--typo-body);
  font-size: 1rem;
  opacity: 0.9;
  transition: opacity 0.18s, color 0.18s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 0.97rem;
  opacity: 0.9;
}
.footer-contact img {
  width: 16px;
  vertical-align: middle;
  margin-right: 7px;
}
.copyright {
  font-size: 0.88rem;
  color: #bdbdbd;
  opacity: 0.8;
  text-align: center;
  margin-top: 10px;
}

/* =============================================================
   BUTTONS & LINKS
   ============================================================= */
.button-primary,
.button-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-family: var(--typo-display);
  font-size: 1.09rem;
  font-weight: 600;
  border-radius: 40px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(180,150,80,0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
  margin-top: 8px;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #8E652D;
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(120,110,74,0.13);
}
.button-primary:active {
  background: #7D5722;
  transform: scale(0.98);
}

/* Button variants for cookie consent */
.button-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 13px 27px;
  border-radius: 40px;
  font-family: var(--typo-display);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 6px rgba(150,150,150,0.05);
  outline: none;
}
.button-secondary:hover, .button-secondary:focus {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.button-plain {
  background: none;
  border: none;
  box-shadow: none;
  color: var(--color-accent);
  font-family: var(--typo-display);
  font-weight: 500;
  padding: 0;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
}
.button-plain:hover, .button-plain:focus {
  color: var(--color-primary);
}

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 8px rgba(50, 50, 60, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
  padding-top: 9px;
  padding-bottom: 9px;
}
header a img {
  width: 132px;
  height: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  margin-left: 38px;
  margin-right: 18px;
}
.main-nav a {
  font-family: var(--typo-body);
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.87;
  padding: 4px 1px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.14s, color 0.14s, opacity 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
  border-bottom: 2px solid var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 20px;
  line-height: 1;
  z-index: 105;
  padding: 2px 16px;
  transition: background 0.13s;
  border-radius: 8px;
}
.mobile-menu-toggle:focus {
  background: #F3E9DC;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31,41,55, 0.98);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77,.12,.24,1.03);
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 24px;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
  opacity: 1;
  transition: transform 0.33s cubic-bezier(.77,.12,.24,1.03), opacity 0.18s 0.02s;
}
.mobile-menu-close {
  font-size: 2.25rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 0 30px 30px 0;
  align-self: flex-end;
  padding: 8px 12px;
  transition: background 0.1s;
  border-radius: 7px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #434b5d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 0 0 0 56px;
}
.mobile-nav a {
  font-family: var(--typo-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  padding: 10px 10px 8px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, background 0.14s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.03);
}

/* Hide nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .footer-contact span {
    text-align: center;
    font-size: 0.97em;
  }
}

/* =============================================================
   FLEX LAYOUTS & RESPONSIVE PATTERNS
   ============================================================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .text-section {
    max-width: 100%;
    padding: 0;
  }
}
@media (max-width: 768px) {
  .section, main section {
    padding: 28px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    padding: 20px 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .container {
    padding: 0 4px;
  }
  .footer-nav {
    gap: 13px;
    flex-wrap: wrap;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  .button-primary, .button-secondary {
    padding: 11px 16px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 15px 10px;
  }
  .footer-logo img {
    width: 41px;
  }
}

/* =============================================================
   FLEXBOX COMPONENTS FOR FAQ, FEATURES, ETC.
   ============================================================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Align cards, FAQ, etc, using flex */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* =============================================================
   MICROINTERACTIONS & TRANSITIONS
   ============================================================= */
a, button, .button-primary, .button-secondary, .card, .feature-grid > div {
  transition: box-shadow 0.14s, background 0.13s, color 0.14s, border 0.14s, transform 0.14s;
}

/* Subtle section shadow and hierarchy */
.section, main section {
  box-shadow: 0 1px 5px rgba(30,30,60,0.025);
  border-radius: 16px;
}

/* =============================================================
   COOKIE CONSENT BANNER (FIXED BOTTOM, ANIMATIONS)
   ============================================================= */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #F4F2EE;
  color: var(--color-primary);
  box-shadow: 0 -4px 22px rgba(60,60,80,0.10);
  z-index: 3000;
  padding: 22px 7vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  font-size: 1rem;
  opacity: 1;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(.98,.05,.17,1);
}
@keyframes cookieBannerFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.18s;
  transform: translateY(35px);
}
#cookie-consent-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
}
#cookie-consent-banner p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-primary);
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 16px 4vw;
    font-size: 0.94rem;
  }
  #cookie-consent-banner .cookie-banner-actions {
    gap: 11px;
    width: 100%;
    flex-wrap: wrap;
  }
}

/* COOKIE CONSENT MODAL */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3500;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(42,31,19, 0.36);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 0;
}
#cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
#cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 19px;
  padding: 32px 21px 26px 21px;
  box-shadow: 0 7px 40px rgba(55,45,15,0.18);
  min-width: 320px;
  max-width: 97vw;
  width: 400px;
  position: relative;
  animation: cookieModalPop 0.33s cubic-bezier(.86,0,.07,1.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes cookieModalPop {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-family: var(--typo-display);
  font-weight: 600;
}
#cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 5px;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  background: #f0e2c6;
  color: var(--color-accent);
}
.cookie-modal-category {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.cookie-modal-category label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.03rem;
  font-family: var(--typo-body);
  margin-bottom: 7px;
  color: var(--color-primary);
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  margin-right: 8px;
  width: 17px;
  height: 17px;
}
.cookie-modal-category .category-description {
  font-size: 0.95rem;
  color: #888;
  margin-left: 27px;
  margin-bottom: 4px;
}
.cookie-modal-category input:disabled + span {
  opacity: 0.6;
}
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 480px) {
  #cookie-modal {
    width: 94vw;
    min-width: 0;
    padding: 17px 4vw;
  }
}

/* =============================================================
   UTILITY & STATE CLASSES
   ============================================================= */
.hide, .is-hidden { display: none !important; }
.center { text-align: center; justify-content: center; }

/* For accessibility: focus highlights */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =============================================================
   MISCELLANEOUS
   ============================================================= */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 34px 0;
}

/* Secondary muted color blocks */
.bg-neutral {
  background: var(--color-neutral);
}

/* Icons in content */
.content-wrapper img, .content-wrapper svg {
  vertical-align: middle;
}

/* Remove vertical overlap and ensure generous spacing */
section > .container + .container {
  margin-top: 24px;
}
.section > *, main section > * {
  margin-bottom: 20px;
}

/* Ensure all cards and testimonial cards are spaced */
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.card + .card {
  margin-top: 20px;
}
.card-container > .card {
  margin-bottom: 20px;
}

/* For about, contact page - details grid */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* =============================================================
   PRINT STYLES
   ============================================================= */
@media print {
  *, *:before, *:after { background: #fff !important; color: #212121 !important; box-shadow: none !important; }
  .main-nav, .mobile-menu-toggle, .button-primary, .button-secondary, .footer-nav, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { position: static !important; box-shadow:none !important; }
}
