/* =====================
   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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8f8f7;
  color: #1a1a1a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.39,.58,.57,1);
}
ul, ol {
  padding-left: 24px;
}
strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #111217;
  letter-spacing: 0.01em;
}

/* ================
   COLOR PALETTE
   ================ */
:root {
  --primary: #222E38;
  --secondary: #B98C5E;
  --accent: #F3F3F2;
  --white: #fff;
  --gray-900: #111217;
  --gray-700: #23272B;
  --gray-200: #ebebea;
  --gray-100: #f8f8f7;
  --text-dark: #161818;
  --text-medium: #434542;
  --border: #e0e0e0;
}

/* ================================
   TYPOGRAPHY SCALE & MONOCHROME STYLE
   ================================ */
h1 {
  font-size: 2.75rem;
  line-height: 1.14;
  margin-bottom: 24px;
  color: var(--gray-900);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gray-900);
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--gray-900);
}
h4 { font-size: 1.125rem; }
p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.content-wrapper > p:last-child {
  margin-bottom: 0;
}
small, .footer-contact {
  font-size: 0.93rem;
  color: var(--text-medium);
}

/* Monochrome Sophisticated Button Style */
.cta-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(17,18,23,0.06);
  cursor: pointer;
  transition: background 0.28s, color 0.28s, box-shadow 0.2s;
  display: inline-block;
  margin-top: 24px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #222E38;
  box-shadow: 0 4px 16px rgba(17,18,23,0.12);
}

/* ==============
   GENERAL LAYOUT
   ============== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(34,46,56,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(34,46,56,0.07);
  position: relative;
  padding: 24px;
  min-width: 270px;
  flex: 1 1 300px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(34,46,56,0.12);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px 20px 24px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(34,46,56,0.05);
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 300px;
  border: 1px solid var(--gray-200);
  font-size: 1.05rem;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(34,46,56,0.13);
}
.stars {
  color: var(--secondary);
  font-size: 1.3em;
  margin-bottom: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 2px;
  font-size: 1.06em;
}

.feature-grid,.testimonial-list,.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(34,46,56,0.04);
  padding: 24px 18px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.19s, border-color 0.19s;
}
.feature-item:hover {
  box-shadow: 0 6px 20px rgba(34,46,56,0.14);
  border-color: var(--secondary);
}
.feature-item img {
  width: 36px;
  height: 36px;
  filter: grayscale(100%) brightness(60%);
}
.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 3px;
}

/* ==============
   HEADER STYLES
   ============= */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(34,46,56,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
  margin-right: 32px;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary);
  padding: 9px 14px;
  position: relative;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--gray-200);
}
header .cta-btn {
  margin-top: 0;
  margin-left: 10px;
  font-size: 1rem;
  padding: 11px 28px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: none;
  background: var(--gray-200);
}

/* =======
   MOBILE MENU
   ======= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,18,23,0.92);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.65,.05,.36,1); /* slide-in */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  position: absolute;
  top: 30px;
  right: 28px;
  cursor: pointer;
  z-index: 130;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.09);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 80px;
  width: 100%;
  padding: 0 32px;
  gap: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 14px 4px;
  width: 100%;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 4px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ============== HERO SECTIONS ============== */
.hero {
  background: linear-gradient(120deg, #fff 60%, #ececec 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--gray-200);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  margin-top: 0;
  margin-bottom: 0;
}
.hero h1 {
  margin-bottom: 16px;
  color: var(--primary);
}
.hero p {
  color: var(--gray-700);
}
.hero .cta-btn {
  margin-top: 32px;
}

/* ============== FEATURES, SERVICES, CARDS ============== */
.features,.services,.process,.about-preview,.about-story,.services-preview,.case-studies,.contact,.confirmation,.legal,.team {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper,.services .content-wrapper,.about-preview .content-wrapper,.services-preview .content-wrapper,
.team .content-wrapper,.about-story .content-wrapper,.process .content-wrapper,
.case-studies .content-wrapper,.contact .content-wrapper,.confirmation .content-wrapper,.legal .content-wrapper {
  max-width: 820px;
}

/* ============== TESTIMONIALS ============== */
.testimonials {
  background: var(--gray-100);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  align-items: flex-start;
  max-width: 900px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card p {
  color: var(--gray-700);
  font-size: 1.09rem;
}

/* === CASE STUDIES === */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.case-study {
  flex: 1 1 340px;
  padding: 28px 22px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(34,46,56,0.07);
  border: 1px solid var(--gray-200);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.case-study:hover {
  box-shadow: 0 6px 20px rgba(34,46,56,0.16);
  border-color: var(--secondary);
}
.case-study h3 {
  color: var(--primary);
  font-size: 1.19rem;
}

/* === CONTACT DETAILS STYLES === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--primary);
}
.contact-details img {
  margin-right: 11px;
  vertical-align: middle;
  width: 22px; height: 22px;
  filter: grayscale(100%) brightness(40%);
  display: inline-block;
}
.contact-details div{
  display: flex;
  align-items: center;
}
.business-hours {
  margin: 18px 0 14px 0;
  color: var(--secondary);
}

/* === MAP EMBED / INFO SECTIONS === */
.map-embed {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 0 0 0;
}
.text-section {
  flex: 1 1 0;
  color: var(--gray-700);
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(103deg, #fff, #f3f3f2 100%);
  text-align: left;
  padding: 40px 0 54px 0;
  border-radius: 24px;
  width: 100%;
}
.cta .content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  align-items: flex-start;
}
.cta h2 {
  margin-bottom: 12px;
  color: var(--primary);
}

/* ==============
   FOOTER
   ============== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 20px 0;
  width: 100%;
  border-top: 4px solid var(--secondary);
  margin-top: 48px;
}
footer .container {
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  opacity: 0.92;
  transition: color 0.15s, opacity 0.22s;
}
.footer-nav a:hover,.footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.8;
}
.footer-contact img {
  width: 18px; height: 18px;
  filter: brightness(2) grayscale(70%);
  margin-right: 3px;
}
footer small { color: var(--gray-200); opacity: 0.72; }

/* =================
   RESPONSIVE DESIGN
   ================= */
@media (max-width: 1024px) {
  .container {
    max-width: 93vw;
  }
  .feature-grid, .testimonial-list, .case-study-list {
    gap: 20px;
  }
}
@media (max-width: 820px) {
  .feature-item,.testimonial-card,.card {
    flex: 1 1 220px;
  }
  .content-grid,.feature-grid,.testimonial-list,
  .case-study-list,.footer-contact {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .section {
    padding: 32px 6px;
    margin-bottom: 32px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 64px;
    padding: 0 5px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-contact {
    gap: 13px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-btn {
    padding: 13px 16px;
    font-size: 1em;
  }
  .feature-grid,.testimonial-list,.case-study-list
  {.flex-direction: column;}
  .case-study, .testimonial-card, .feature-item, .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .map-embed{
    flex-direction: column;
    padding-top: 0;
  }
  .content-wrapper, .hero .content-wrapper {
    padding-left: 0; padding-right: 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 15px;
  }
  .hero, .cta, .testimonials, .section, .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  header img {
    height: 30px;
  }
  .footer-contact span { font-size: 0.965em; }
}

/* ============================
   COOKIE CONSENT BANNER STYLES
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--gray-900);
  color: var(--accent);
  padding: 26px 12px 20px 12px;
  z-index: 3000;
  box-shadow: 0 -4px 28px rgba(34,46,56,0.14);
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: transform 0.45s, opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150px);
}
.cookie-banner .cookie-text {
  max-width: 560px;
  font-size: 1rem;
  color: var(--accent);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  border-radius: 24px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.21s, color 0.21s;
}
.cookie-accept {
  background: var(--secondary);
  color: var(--gray-900);
}
.cookie-accept:hover{ background: #8c663b; color: #fff; }
.cookie-reject {
  background: var(--gray-200);
  color: var(--gray-900);
}
.cookie-reject:hover{ background: var(--gray-100); color: var(--primary); }
.cookie-settings {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-settings:hover {
  background: var(--gray-900);
  color: var(--secondary);
  border-color: var(--secondary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 6px;
  }
  .cookie-banner .cookie-actions{
    gap: 7px;
  }
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,46,56,0.76);
  z-index: 3100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.29s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  color: var(--gray-900);
  max-width: 430px;
  width: 92vw;
  border-radius: 20px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 4px 36px rgba(34,46,56,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeInUp .37s cubic-bezier(.37,.6,.38,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: var(--gray-900);
  letter-spacing: 0.01em;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
  margin-right: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .modal-actions button {
  padding: 9px 20px;
  font-size: 1rem;
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  position: absolute;
  top: 20px; right: 18px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 7px;
  transition: background 0.11s;
}
.cookie-modal-close:hover{
  background: var(--gray-200);
  color: var(--secondary);
  opacity: 1;
}

/* ===========
   FORMS (future proof)
   =========== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--accent);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
}
label { font-weight: 500; margin-bottom: 7px; display: block; color: var(--primary); }

/* ==============
   MICRO-INTERACTIONS & ANIMATION
   ============== */
a, .cta-btn, .case-study, .feature-item, .mobile-nav a, .main-nav a, .testimonial-card, .card {
  transition: color 0.18s, background 0.19s, box-shadow 0.19s, border 0.16s;
}
nav a:active, .cta-btn:active { filter: brightness(90%); }

/* Custom scrollbar for sophistication */
::-webkit-scrollbar {
  width: 10px;
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 19px;
}

/* ===============
   UTILITY CLASSES
   =============== */
.d-none { display: none!important; }
.text-center { text-align: center!important; }
.text-left { text-align: left!important; }
.text-right { text-align: right!important; }

/* ===============
   PRINT SUPPORT (for legal pages)
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none!important; }
  .container, .section, main { max-width: 100%!important; padding: 0!important; background: #fff!important; }
  body { background: #fff!important; color: #111217!important; }
}
