/* ===================================================================
   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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {line-height: 1.15; -webkit-text-size-adjust: 100%;}
body {line-height: 1;}
ol, ul {list-style: none;}
strong, b {font-weight: bold;}
a {text-decoration: none; color: inherit;}
img {max-width: 100%; display: block;}
button, input, select, textarea {font: inherit;}

/* ===================================================================
   VARIABLES (STATIC Fallbacks for Custom Properties)
   =================================================================== */
:root {
  --color-primary: #464A4F;
  --color-secondary: #A8B3A6;
  --color-accent: #E6DFD5;
  --color-bg: #fff;
  --color-light-bg: #FAFAFA;
  --color-dark: #232529;
  --color-link: #2837B9;
  --color-error: #D8433D;
  --color-success: #37AE7C;
  --color-card-bg: #FFF;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ===================================================================
   BASE TYPOGRAPHY & BODY
   =================================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background: var(--color-bg);
  min-height: 100vh;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h4, h5, h6 {font-weight: 700; font-size: 1.1rem;}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
  color: var(--color-primary);
}
strong {font-weight: 700;}

/* ===================================================================
   LAYOUT CONTAINERS & SPACING
   =================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section, 
.hero-section, 
.features-section, 
.about-section, 
.services-section, 
.cta-section, 
.about-preview-section, 
.services-preview-section, 
.testimonials-section, 
.process-section, 
.quality-section, 
.policy-section, 
.thank-you-section, 
.quick-contact-section, 
.help-section, 
.blog-list-section, 
.newsletter-section, 
.work-benefits-section,
.project-types-section,
.client-feedback-section
{
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--color-bg);
}

/* ===================================================================
   MAIN NAVIGATION (DESKTOP & MOBILE)
   =================================================================== */
header {
  background: var(--color-bg);
  box-shadow: 0 4px 18px rgba(70,74,79,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding: 16px 0;
}
.main-nav img {
  height: 42px;
  margin-right: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 0;
  transition: color 0.2s;
  position: relative;
}
.main-nav a.cta-button {
  margin-left: auto;
  background: var(--color-secondary);
  color: var(--color-bg);
  font-weight: 900;
  border-radius: 28px;
  padding: 12px 32px;
  box-shadow: 0 4px 22px 0 rgba(70,74,79,0.08);
  transition: background .2s, box-shadow .2s, color .2s;
}
.main-nav a.cta-button:hover,
.main-nav a.cta-button:focus {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 2px 16px rgba(168,179,166,0.27);
}
.main-nav a:not(.cta-button):hover,
.main-nav a:not(.cta-button):focus {
  color: var(--color-secondary);
}
/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 101;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus { outline: 3px solid var(--color-secondary); }
.mobile-menu-toggle:hover { background: var(--color-secondary); color: var(--color-bg); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(70,74,79,.94);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.7,0,.4,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  margin: 24px 38px 0 0;
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 42px;
  padding: 0 36px;
  gap: 22px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(230,223,213,.15);
  width: 100%;
  transition: color 0.19s, background 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(230,223,213,.11);
}

/* ===================================================================
   HERO SECTIONS, CTA BUTTONS, AND LINK ARROWS
   =================================================================== */
.hero-section {
  background: var(--color-accent);
  min-height: 340px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  padding: 64px 0 64px 0;
  box-shadow: 0 8px 40px 0 rgba(168,179,166,0.08);
}
.hero-section h1, .hero-section p {
  color: var(--color-primary);
}
.cta-button {
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: 900;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border: none;
  border-radius: 36px;
  padding: 15px 38px;
  margin-top: 12px;
  box-shadow: 0 4px 18px rgba(70,74,79,.15);
  letter-spacing: 0.05em;
  transition: background .18s, color .18s, transform .13s, box-shadow .19s;
  cursor: pointer;
  outline: none;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 32px rgba(70,74,79,0.20);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  gap: 6px;
  transition: color 0.19s;
  position: relative;
}
.link-arrow::after {
  content: '→';
  margin-left: 7px;
  font-weight: 800;
  font-size: 1.19em;
  color: var(--color-secondary);
  transition: margin-left 0.18s, color .18s;
}
.link-arrow:hover, .link-arrow:focus {
  color: var(--color-secondary);
}
.link-arrow:hover::after, .link-arrow:focus::after {
  margin-left: 17px;
  color: var(--color-primary);
}

/* ===================================================================
   FLEX LAYOUTS, CARDS, FEATURES, SERVICES
   =================================================================== */
.feature-grid, .service-list, .service-categories, .team-bios, .testimonials, .blog-list, .client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-item, .service-item, .team-member, .expertise-highlights, .blog-post {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(70,74,79,0.03);
  padding: 30px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 240px;
  position: relative;
  border: 2px solid var(--color-accent);
  transition: box-shadow .21s, border-color .2s, transform .18s;
}
.feature-item:hover, .service-item:hover, .blog-post:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 36px rgba(70,74,79,0.10);
  transform: translateY(-2px) scale(1.02);
}
.feature-item img, .service-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
}
.service-list, .service-categories {
  gap: 24px;
}

/* Team bios and expertise */
.team-member {
  flex: 1 1 320px;
}
.expertise-highlights {
  flex: 1 1 100%;
  margin-top: 16px;
  background: var(--color-accent);
  border: none;
  box-shadow: none;
}
.expertise-highlights ul {
  padding-left: 10px;
}
.expertise-highlights li {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 7px;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 30px 18px 30px;
  background: #FAFAFA;
  box-shadow: 0 6px 40px 0 rgba(168,179,166,.08);
  border-radius: 18px;
  border: 2px solid var(--color-accent);
  margin-bottom: 20px;
  min-width: 270px;
  flex: 1 1 270px;
  position: relative;
  transition: box-shadow .21s, border-color .2s;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 12px 50px rgba(168,179,166,0.18);
}
.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--color-dark);
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
}
.client-logos {
  margin-top: 18px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.client-logos img {
  height: 38px;
  opacity: 0.68;
  transition: opacity 0.2s, transform .16s;
}
.client-logos img:hover {
  opacity: 1;
  transform: scale(1.07);
}

/* Cards/general layout helpers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(70,74,79,0.09);
}
.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;
}

/* Contact and info blocks */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 210px;
}
.contact-details img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}
.contact-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Blog */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post {
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 4px 18px 0 rgba(70,74,79,.07);
  padding: 30px 22px 23px 22px;
  min-width: 230px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.blog-categories {
  margin-top: 34px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-categories li {
  font-size: 0.97rem;
  background: var(--color-secondary);
  color: var(--color-bg);
  padding: 5px 16px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Newsletter/CTA sections */
.newsletter-section, .cta-section {
  background: var(--color-secondary);
  color: var(--color-bg);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(70,74,79,0.13);
  margin-bottom: 65px;
  text-align: center;
}
.newsletter-section h2, .cta-section h2,
.newsletter-section p, .cta-section p {
  color: var(--color-accent);
}

/**** POLICY SECTIONS ***/
.policy-section {
  background: #f6f6f5;
  border-radius: 16px;
  box-shadow: 0 4px 22px 0 rgba(168,179,166,.07);
}
.policy-section h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
}
.policy-section h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-top: 24px;
}
.policy-section p, .policy-section li {
  color: var(--color-primary);
}

/**** THANK YOU SECTION ***/
.thank-you-section .next-steps {
  margin-top: 20px;
  background: var(--color-accent);
  border-radius: 13px;
  padding: 24px 18px;
  box-shadow: 0 4px 20px 0 rgba(168,179,166,.11);
}
.thank-you-section .cta-button {
  margin-top: 24px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 34px 0 24px 0;
  box-shadow: 0 -2px 10px 0 rgba(70,74,79,0.07);
  position: relative;
  z-index: 10;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-menu a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: bold;
  text-decoration: underline;
  opacity: .93;
  font-size: 1rem;
  padding: 3px 12px;
  transition: color 0.17s, background 0.17s;
}
.footer-menu a:hover{ color: var(--color-secondary); background: rgba(168,179,166,.14);}
.footer-contact {
  font-size: 0.98rem;
  text-align: center;
  color: var(--color-accent);
  opacity: 0.88;
}

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
   =================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -6px 32px 0 rgba(70,74,79,0.18);
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 24px 28px;
  font-size: 1rem;
  transition: transform .33s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__text {
  flex: 2 1 340px;
  font-size: 1rem;
  color: var(--color-accent);
}
.cookie-banner__actions {
  flex: 1 1 180px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  border-radius: 26px;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  margin: 0;
  transition: background .16s, color .13s, transform .11s;
  box-shadow: 0 2px 10px rgba(168,179,166,0.06);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-bg);
}
.cookie-btn.reject {
  background: #D8433D;
  color: var(--color-bg);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.accept:hover {background: var(--color-accent); color: var(--color-primary);}
.cookie-btn.reject:hover {background: #BC342C;}
.cookie-btn.settings:hover {background: var(--color-secondary); color: var(--color-bg);}

.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(70,74,79, 0.70);
}
.cookie-modal-backdrop.open {display: block;}
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  min-width: 320px;
  max-width: 95vw;
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 17px;
  box-shadow: 0 10px 58px 0 rgba(70,74,79,.18);
  padding: 36px 30px 24px 30px;
  text-align: left;
  opacity: 0;
  transition: opacity .23s, transform .23s;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.cookie-modal__categories {
  margin: 0 0 22px 0;
  padding: 0;
}
.cookie-modal__categories label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal__categories input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 19px;
  height: 19px;
}
.cookie-modal__categories .essential {
  font-style: italic;
  color: var(--color-secondary);
}
.cookie-modal__actions {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}
.cookie-modal__close {
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 1.4rem;
  position: absolute;
  top: 13px;
  right: 20px;
  cursor: pointer;
}
.cookie-modal__close:hover {color: var(--color-secondary);}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   =================================================================== */
@media (max-width: 1080px) {
  .main-nav {gap: 18px;}
  .container {max-width: 95vw;}
}
@media (max-width: 900px) {
  .main-nav {gap: 9px;}
  .feature-grid, .service-list, .testimonials, .blog-list, .content-grid, .client-logos {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-menu, .client-logos {
    flex-direction: column;
    gap: 10px;
  }
  .feature-grid, .service-list, .content-grid, .team-bios, .testimonials, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .about-preview-section, .services-preview-section {
    padding: 40px 6px;
  }
  .card-container, .card {
    flex-direction: column;
    min-width: 100%;
  }
  .text-image-section, .contact-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .container {padding: 0 6px;}
  .hero-section {padding: 46px 0;}
  .section, .hero-section, .features-section, .about-section, .services-section, .process-section, .policy-section, .thank-you-section, .work-benefits-section, .about-preview-section, .services-preview-section, .quality-section, .quick-contact-section, .help-section, .blog-list-section, .newsletter-section, .cta-section, .client-feedback-section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.25rem;}
  .policy-section h1 {font-size: 1.5rem;}
  .policy-section h2 {font-size: 1rem;}
  .feature-item, .service-item, .team-member, .blog-post, .testimonial-card {
    padding: 18px 5px 18px 11px;
    min-width: unset;
  }
  .cta-button {font-size: 0.97rem; padding: 12px 18px;}
}

/* ===================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   =================================================================== */
.cta-button, .cookie-btn, .main-nav a, .footer-menu a {
  transition: background .19s, color .19s, box-shadow .17s, transform .14s;
}
@media (hover: hover) {
  .cta-button:hover, .link-arrow:hover, .feature-item:hover, .service-item:hover, .testimonial-card:hover, .blog-post:hover {
    box-shadow: 0 4px 32px rgba(168,179,166,0.16);
    transform: scale(1.025);
  }
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.hide {display: none !important;}
.flex {display: flex;}
.flex-col {flex-direction: column;}
.flex-row {flex-direction: row;}

/* ===================================================================
   ACCESSIBILITY FOCUS STATES
   =================================================================== */
:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

