/* 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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #E9EEF4;
  color: #1E2639;
}

/* BRAND VARIABLES (with fallbacks for older browsers) */
:root {
  --primary: #1E2639;
  --secondary: #E9EEF4;
  --accent: #C59065;
  --gray-100: #F5F7FA;
  --gray-200: #D4D8DD;
  --gray-300: #B0B7C3;
  --gray-400: #7B8597;
  --shadow: 0 4px 24px rgba(30, 38, 57, 0.09);
  --radius: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--secondary);
  color: var(--primary);
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}
blockquote {
  font-style: italic;
  color: var(--primary);
  background: var(--gray-100);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
cite {
  font-size: 0.9rem;
  color: var(--gray-400);
  display: block;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
em {
  color: var(--accent);
}

/* LINKS */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(30,38,57,0.09);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  flex-wrap: wrap;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
  position: absolute;
  bottom: -2px;
  left: 0;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px 28px;
  box-shadow: 0 2px 8px rgba(30,38,57,0.08);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.07s;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(30,38,57,0.10);
  transform: translateY(-1px) scale(1.02);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  padding: 6px 12px;
  cursor: pointer;
  z-index: 1021;
  transition: color .2s;
}
.mobile-menu-toggle:hover {
  color: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,38,57,0.91);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 30px;
  padding-left: 0;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.84,-0.01,.08,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  align-self: flex-end;
  margin: 0 28px 20px 0;
  cursor: pointer;
  z-index: 1101;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100vw;
  padding: 26px 40px 20px 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  padding: 10px 0;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* Hide main-nav on mobile, show toggle */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* LAYOUT & SECTION STRUCTURE */
main {
  min-height: 55vh;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* CARDS, CARDS CONTAINERS, CONTENT LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 40px rgba(30,38,57,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* Features grid for .features-section */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  list-style: none;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  max-width: 270px;
  min-width: 220px;
  padding: 24px 18px 30px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .22s;
}
.feature-grid li img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}
.feature-grid li:hover {
  box-shadow: 0 6px 32px rgba(30,38,57,0.14);
  transform: translateY(-3px) scale(1.03);
}

/* .service-cards for /, .services-list for services.html */
.service-cards, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.service-card, .services-list li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 21px 24px 21px;
  flex: 1 1 240px;
  max-width: 330px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .22s;
}
.service-card:hover, .services-list li:hover {
  box-shadow: 0 6px 32px rgba(30,38,57,0.13);
}
.services-list li strong {
  color: var(--accent);
  font-size: 1.01rem;
  margin-top: 5px;
  font-weight: 700;
}

/* BLOG TEASERS */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teaser {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  max-width: 350px;
  min-width: 210px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 12px;
  transition: box-shadow .2s, transform .15s;
}
.blog-teaser:hover {
  box-shadow: 0 8px 40px rgba(30,38,57,0.13);
  transform: translateY(-2px) scale(1.015);
}
.read-more {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  text-decoration: underline;
  margin-top: auto;
  align-self: flex-end;
  transition: color .17s;
}
.read-more:hover {
  color: var(--primary);
}

/* Content grid and text-image-section classes */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* FAQ accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px 16px 22px;
  transition: box-shadow 0.19s;
  margin-bottom: 20px;
}
.faq-item h3 {
  cursor: pointer;
  color: var(--accent);
  font-size: 1.15rem;
}
.faq-item .answer {
  margin-top: 8px;
  color: var(--primary);
  font-size: 1rem;
}
.faq-item.active {
  box-shadow: 0 6px 22px rgba(30,38,57,0.13);
}

/* Testimonials styling */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  gap: 20px;
  padding: 20px 24px 20px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
  color: var(--primary);
  max-width: 650px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(30,38,57,0.17);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card blockquote {
  border-left: 4px solid var(--accent);
  background: var(--gray-100);
  color: #1E2639;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1.09rem;
}
.testimonial-card .stars {
  color: #FFD463;
  font-size: 1.22rem;
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: 1.2px;
}
.testimonial-card cite {
  color: var(--gray-400);
  font-style: normal;
}

/* CTA Section */
.cta-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-section h2 {
  color: var(--primary);
  font-size: 2rem;
}

/* FEATURE ITEM (for future extensibility) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NEWSLETTER/BENEFITS LIST */
.benefits-list {
  margin-bottom: 16px;
}
.benefits-list li {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 1rem;
}

/* CASE STUDY LIST */
.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* LOCATION MAP */
.location-map {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}
.location-map img {
  height: 120px;
  width: auto;
}

/* FOOTER */
footer {
  background: #1E2639;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-300);
}
.footer-logo img {
  height: 34px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--accent);
}
.contact-summary {
  font-size: 0.95rem;
  color: var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-summary a {
  color: var(--accent);
  text-decoration: underline;
}
.footer-bottom {
  padding: 24px 0 18px 0;
  color: var(--gray-300);
  font-size: 0.97rem;
  text-align: center;
}

/* CATEGORIES FILTER */
.categories-filter {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.categories-filter a {
  color: var(--primary);
  background: var(--gray-100);
  border-radius: 6px;
  padding: 2px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.99rem;
  transition: box-shadow 0.17s, background 0.18s;
}
.categories-filter a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,38,57,0.09);
}
.categories-filter span {
  color: var(--gray-400);
  font-size: 1rem;
}

/* THANK YOU SECTION */
.thank-you-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 68px 0 80px 0;
  padding: 60px 0;
}
.thank-you-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1999;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(30,38,57,0.07);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  animation: cookieSlideIn 0.7s cubic-bezier(.84,-0.01,.08,1);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-message {
  color: var(--primary);
  font-size: 1.01rem;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  border: none;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background 0.19s, color 0.16s, transform 0.09s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-1px) scale(1.02);
}
.cookie-btn.reject {
  background: var(--gray-300);
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: #ffede4;
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--gray-100);
  color: var(--accent);
  border: 1px solid var(--gray-300);
}
.cookie-btn.settings:hover {
  background: var(--accent);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  z-index: 2000;
  background: rgba(30,38,57,0.73);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(30,38,57,.18);
  min-width: 330px;
  max-width: 99vw;
  padding: 38px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: scaleModal .27s cubic-bezier(.37,.01,.56,1.26);
  position: relative;
}
@keyframes scaleModal {
  from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 10px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--primary);
}
.cookie-modal .cookie-category label {
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  display: inline-block;
  position: relative;
}
.cookie-modal .cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-300);
  border-radius: 15px;
  transition: background 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .cookie-toggle input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-category.essential label {
  opacity: 0.7;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 2001;
  transition: color .2s;
}
.cookie-modal-close:hover {
  color: var(--accent);
}

.cookie-modal .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  .container {
    max-width: 90vw;
  }
  .main-nav a, .footer-nav a {
    font-size: 0.97rem;
  }
  .service-cards, .blog-list, .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 22px 0 22px 0;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }
  .feature-grid, .service-cards, .blog-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-grid li, .service-card, .blog-teaser, .services-list li {
    min-width: 0;
    max-width: 99vw;
  }
  .footer-main {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 18px;
  }
  .footer-nav {
    gap: 7px;
  }
  .cta-section, .thank-you-section {
    padding: 18px 0;
  }
  .testimonial-card {
    padding: 15px 12px;
    max-width: 100%;
  }
  .newsletter-signup .content-wrapper {
    gap: 11px;
  }
}
@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .logo img {
    height: 30px;
    margin-bottom: 0;
  }
  .cta-btn {
    padding: 9px 14px;
    font-size: .97rem;
  }
  .footer-main {
    gap: 13px;
  }
}

/* UTILITIES */
.hide {
  display: none!important;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
