/* === CSS RESET & NORMALIZE (safe subset) === */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9F7F1;
  color: #192128;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #A83719;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #192128;
}

/* === BRANDING FONTS === */
h1, h2, h3, h4, h5, h6, .btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
}

/* === COLORS & CUSTOM PROPERTIES (Fallbacks) === */
:root {
  --color-primary: #192128;
  --color-secondary: #A83719;
  --color-accent: #F9F7F1;
  --color-white: #fff;
  --color-dark: #1a1a20;
  --color-card-bg: #fff;
  --color-shadow: rgba(30,23,20,0.11);
  --color-shadow-strong: rgba(168,55,25,0.10);
  --radius: 24px;
  --shadow: 0 2px 20px var(--color-shadow);
  --shadow2: 0 1.5px 6px var(--color-shadow-strong);
  --ff-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ff-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === FLEXBOX CONTAINERS === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 20px var(--color-shadow-strong);
  margin-bottom: 24px;
  color: #232336;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER & MAIN NAV --- */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 12px rgba(30,23,20,0.07);
  position: sticky;
  top: 0;
  z-index: 98;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 22px;
}
.main-nav a {
  font-family: var(--ff-display);
  font-size: 16px;
  color: #192128;
  padding: 4px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #F9F7F1;
  color: #A83719;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 14px;
}
.btn-primary {
  background: #A83719;
  color: #fff !important;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 24px;
  padding: 10px 32px;
  box-shadow: 0 3px 18px rgba(168,55,25,0.11);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
  display: inline-block;
  letter-spacing: 0.025em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #192128;
  color: #fff;
  box-shadow: 0 5px 20px rgba(25,33,40,0.12);
  transform: scale(1.045);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: #A83719;
  cursor: pointer;
  padding: 16px;
  z-index: 100;
  margin-left: auto;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F9F7F1;
  border-radius: 50%;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: #192128;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.85,-0.04,0.22,0.98);
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  align-self: flex-end;
  margin: 18px 28px 0 0;
  cursor: pointer;
  z-index: 1002;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-family: var(--ff-display);
  font-weight: 600;
  padding: 11px 32px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
  width: 90vw;
  max-width: 400px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A83719;
  color: #fff;
}

/* === HERO SECTIONS (main & blog) === */
.hero {
  background: linear-gradient(120deg, #A83719 60%, #F9F7F1 100%) top left no-repeat;
  border-radius: 0 0 36px 0;
  box-shadow: 0 8px 28px var(--color-shadow-strong);
  margin-bottom: 60px;
}
.hero .container, .blog-hero .container {
  min-height: 420px;
  justify-content: center;
  align-items: center;
  display: flex;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
}
.hero h1, .blog-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  text-shadow: 0 8px 34px #19212830;
}
.hero p, .blog-hero p {
  color: #fff;
  font-size: 1.24rem;
  font-weight: 500;
}

/* === SECTION HEADERS & TITLES === */
h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #192128;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #A83719;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #192128;
  margin-bottom: 6px;
}

/* === SECTION & CARD STYLES === */
section:not(.hero):not(.blog-hero) {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section .container {
  gap: 0;
}

.card, .case-study, .featured-post, .service-grid li {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .case-study:hover, .service-grid li:hover, .featured-post:hover {
  box-shadow: 0 6px 32px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.015);
}

ul.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 12px;
}
.service-grid li {
  flex: 1 1 220px;
  min-width: 260px;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 22px;
}
.case-study {
  flex: 1 1 340px;
  min-width: 290px;
  max-width: 530px;
}

.team-bio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 6px;
}
.team-bio {
  flex: 1 1 240px;
  background: #fff8f4;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px #A8371911;
  padding: 18px 18px 14px 22px;
  min-width: 220px;
  max-width: 330px;
  color: #192128;
  font-size: 1rem;
}

.core-values-list, .resources ul, .guides ul, .next-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.core-values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.1rem;
  background: #fff6f0;
  padding: 14px 16px;
  border-radius: 18px;
  color: #192128;
}

/* --- Feature Sections, Resource lists --- */
.services ul, section > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.services ul li, section > ul li {
  flex: 1 1 230px;
  min-width: 190px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 8px #a8371911;
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.20s, transform 0.20s;
  margin-bottom: 14px;
}
.services ul li:hover, section > ul li:hover {
  box-shadow: 0 8px 32px #a8371917;
  transform: scale(1.02);
}
section ul li img {
  height: 38px; width: 38px; margin-bottom: 8px;
}

/* === CTA === */
.cta {
  background: #A83719;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 3px 20px #A8371922;
  margin-bottom: 60px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: #A83719 !important;
  font-size: 20px;
  box-shadow: 0 2px 10px #fff3;
  border: 2px solid #fff;
  margin-top: 12px;
}
.cta .btn-primary:hover {
  background: #192128;
  color: #fff !important;
}

/* === TESTIMONIALS/REVIEWS === */
.testimonials {
  background: #f7f3ee;
  border-radius: 28px;
}
.testimonials h2 {
  color: #A83719;
}
.testimonial-card {
  background: #fff;
  color: #232336;
  margin-bottom: 24px;
}
.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.45;
  color: #192128;
}
.testimonial-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: #A83719;
  font-family: var(--ff-display);
  font-weight: 600;
}

/* === BLOG PAGE === */
.blog-hero {
  background: linear-gradient(110deg, #fff 55%, #A83719 100%) top left no-repeat;
  border-radius: 0 0 28px 0;
}
.featured-post {
  background: #fff2ec;
  border-left: 6px solid #A83719;
  border-radius: 18px 28px 28px 18px;
  margin-bottom: 20px;
}
.featured-post h2 {
  color: #192128;
  font-size: 1.5rem;
  font-weight: 700;
}
.featured-post a {
  display: inline-block;
  margin-top: 14px;
  font-size: 1.1rem;
  color: #A83719;
  font-weight: 500;
}
.categories-filter {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.categories-filter a {
  padding: 7px 22px;
  border-radius: 20px;
  background: #fff;
  color: #A83719;
  box-shadow: 0 1.5px 8px #a8371910;
  font-size: 1rem;
  font-family: var(--ff-display);
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: #A83719;
  color: #fff;
}
.post-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}
.post-preview-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #A8371914;
  padding: 18px 18px 14px 20px;
  flex: 1 1 250px;
  min-width: 210px;
  max-width: 420px;
  transition: box-shadow 0.16s, transform 0.17s;
}
.post-preview-grid li:hover {
  box-shadow: 0 5px 28px #A837191a;
  transform: translateY(-2px) scale(1.017);
}
.post-preview-grid h3 {
  font-size: 1.15rem;
  color: #A83719;
  margin-bottom: 5px;
}

/* === CONTACT PAGE === */
.text-section, .map-location, .contact-info {
  background: #fff7f5;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px #a8371913;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.contact-info p, .contact-info a {
  color: #192128;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-info img {
  height: 18px;
  margin-right: 8px;
  display: inline-block;
}

/* === RESOURCE PAGE === */
.resources ul li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.3px 6px #A8371912;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.04rem;
  margin-bottom: 15px;
}
.guides ul li {
  background: #fff8f0;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 1.04rem;
}

/* === FORMS, INPUTS === */
input, select, textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  border: 2px solid #A8371920;
  border-radius: 12px;
  padding: 10px 16px;
  outline: none;
  background: #F9F7F1;
  color: #192128;
  margin-bottom: 16px;
  box-shadow: 0 1.5px 4px #A8371913;
  transition: border 0.16s, box-shadow 0.17s;
}
input:focus, select:focus, textarea:focus {
  border-color: #A83719;
  box-shadow: 0 2.5px 12px #A8371913;
}

/* === FOOTER === */
footer {
  background: #192128;
  color: #fff;
  padding: 40px 0 10px 0;
}
footer .container {
  align-items: flex-start;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 36px;
  margin-bottom: 19px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.6;
  opacity: 0.86;
  transition: color 0.18s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A83719;
  opacity: 1;
}
.footer-contact {
  color: #fff;
  font-size: 0.97rem;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.footer-contact img {
  height: 14px;
  width: 14px;
  margin-right: 8px;
}

/* === TYPOGRAPHY SCALE === */
p, li, .footer-contact, .contact-info {
  font-family: var(--ff-body);
  font-size: 1.03rem;
}
@media (min-width: 560px) {
  h1 {
    font-size: 2.9rem;
  }
  h2 {
    font-size: 2.3rem;
  }
  h3 {
    font-size: 1.18rem;
  }
}

/* === MICRO-INTERACTIONS === */
a, .btn-primary, .categories-filter a, .main-nav a, .service-grid li, .post-preview-grid li, .testimonial-card {
  transition: box-shadow 0.14s, background 0.14s, color 0.14s, transform 0.13s;
}

/* === CREATIVE/ARTISTIC ELEMENTS === */
.hero, .cta, .services, .testimonials {
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  right: -70px; top: -40px;
  width: 180px; height: 180px;
  background: #F9F7F1;
  opacity: 0.13;
  border-radius: 62% 41% 49% 69%/60% 52% 38% 50%;
  z-index: 0;
  pointer-events: none;
}
.services::before {
  content: '';
  position: absolute;
  left: -100px; bottom: -56px;
  width: 120px; height: 120px;
  background: #A83719;
  opacity: 0.11;
  border-radius: 64% 68% 49% 74%/60% 52% 35% 60%;
  z-index: 0;
  pointer-events: none;
}
.cta::before {
  content: '';
  position: absolute;
  left: -40px; bottom: -46px;
  width: 95px; height: 95px;
  background: #fff;
  opacity: 0.13;
  border-radius: 44% 68% 89% 64%/60% 82% 68% 60%;
  z-index: 0;
  pointer-events: none;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: #fff;
  color: #192128;
  padding: 32px 18px 18px 18px;
  box-shadow: 0 -3px 28px #19212811;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: 98vw;
  margin: 0 auto;
  transition: bottom 0.32s cubic-bezier(.74,0,.28,1.22), opacity 0.21s;
  opacity: 0.97;
}
.cookie-banner.hide {
  bottom: -180px;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 5px;
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  background: #A83719;
  color: #fff;
  border: none;
  border-radius: 13px;
  font-size: 1.07rem;
  font-family: var(--ff-display);
  margin-right: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1.5px 12px #A8371913;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cookie-btn.settings {
  background: #F9F7F1;
  color: #A83719;
  border: 2px solid #A83719;
  font-weight: 600;
  margin-right: 0;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #192128;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #fff6f2;
  color: #A83719;
  border: 2px solid #A83719;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #A83719;
  color: #fff;
}

/* === COOKIE MODAL POPUP === */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 13000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25, 33, 40, 0.23);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.35s cubic-bezier(.37,.01,.56,.98);
}
.cookie-modal.open {
  display: flex;
}

.cookie-modal-dialog {
  background: #fff;
  padding: 37px 32px 26px 32px;
  border-radius: 30px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 4px 36px #A8371914;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: scaleIn 0.28s cubic-bezier(.43,.19,.76,1.13);
}
.cookie-modal-dialog h2{
  color: #A83719;
  font-size: 1.5rem;
  font-family: var(--ff-display);
}
.cookie-modal-close {
  position: absolute;
  right: 21px; top: 21px;
  background: none;
  border: none;
  color: #A83719;
  font-size: 29px;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
}
.cookie-category input[type='checkbox'] {
  accent-color: #A83719;
  width: 20px; height: 20px;
}
.cookie-category .cat-title {
  font-weight: 600;
  font-family: var(--ff-display);
  color: #192128;
}
.cookie-category .essential {
  color: #A83719;
}
.cookie-modal-actions {
  margin-top: 9px;
  display: flex;
  gap: 20px;
}
@keyframes fadeIn {
  from {opacity:0;} to {opacity:1;}
}
@keyframes scaleIn {
  from {transform:scale(0.92);} to {transform:scale(1);}
}

/* === THANK YOU PAGE === */
.thank-you {
  text-align: center;
  background: #fff5ef;
  padding: 56px 16px;
  border-radius: 27px;
  box-shadow: 0 2px 26px #A8371911;
}

/* --- RESPONSIVE/MOBILE-FIRST (<= 1024px, 768px, 520px) --- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
    padding: 0 10px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .case-study-list,
  .post-preview-grid,
  .team-bio-list,
  .service-grid, section > ul, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .case-study, .service-grid li, section > ul li, .team-bio, .card {
    max-width: 96vw;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero .container, .blog-hero .container {
    min-height: 260px;
    justify-content: start;
  }
  .hero, section, .cta, .testimonials {
    border-radius: 0;
    padding: 32px 4vw !important;
  }
  .section {
    margin-bottom: 38px;
    padding: 30px 8px !important;
  }
  .content-wrapper {
    gap: 21px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .contact-info, .text-section, .map-location {
    padding: 11px 10px;
  }
}
@media (max-width: 520px) {
  .hero h1, .blog-hero h1 {font-size: 1.68rem;}
  h2 {font-size: 1.17rem;}
  .btn-primary {font-size: 1rem; padding: 8px 22px;}
  .cookie-modal-dialog {padding: 16px 7px 18px 13px; min-width: unset;}
  .cookie-banner {padding: 16px 6px 14px 6px;}
}

/* === PRINT/ACCESSIBILITY IMPROVEMENTS === */
@media print { *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; } }

/* === END OF STYLE.CSS === */
