/* ---- 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-size: 16px;
  background: #F5F6FA;
  color: #21242b;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin: 0 0 1em 1.5em;
}
a {
  color: #1C4670;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #CFB164;
  outline-offset: 1px;
}

/* ---- BRAND FONTS ---- */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: local('Open Sans'), url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
  font-display: swap;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #192034;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.18; }
h2 { font-size: 2rem; margin-top: 16px; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, li, ul, ol, strong, td {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #21242b;
}
strong { font-weight: 700; color: #1C4670; }

/* ---- COLOR PALETTE ---- */
:root {
  --color-primary: #1C4670;
  --color-secondary: #35985A;
  --color-accent: #F5F6FA;
  --color-gold: #CFB164;
  --color-bg-dark: #181A1E;
  --color-text: #21242b;
  --color-white: #fff;
}

/* ---- GLOBAL SPACING SYSTEM ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(136, 120, 78, 0.07);
  /* luxury subtle shadow */
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(31, 30, 21, 0.08);
  position: relative;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 28px rgba(207, 177, 100,0.13);
  border-color: var(--color-gold);
}

.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: center;
  gap: 20px;
  padding: 28px 24px 18px 24px;
  background: #fffdf6;
  border-radius: 16px;
  margin-right: 24px;
  box-shadow: 0 2px 14px rgba(207, 177, 100, .12);
  border: 1px solid #eddbc3;
  min-width: 290px;
  max-width: 420px;
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #3c3b38;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-primary);
  margin-top: 9px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 18px 22px 18px;
  background: var(--color-accent);
  border-radius: 14px;
  border-left: 4px solid var(--color-gold);
  min-width: 230px;
  transition: border 0.22s, background 0.22s;
}
.feature-item h3 {
  color: var(--color-primary);
  font-size: 1.18rem;
  margin-bottom: 5px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
}
.feature-item:hover {
  background: #f8eee0;
  border-left: 4px solid var(--color-secondary);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(110deg, #fffdfa 0%, #f5ede3 100%);
  border-bottom: 1px solid #eddbc3;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 28px rgba(31,30,21,.04);
  padding: 64px 0 52px 0;
  margin-bottom: 64px;
}
.hero .content-wrapper {
  gap: 18px;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.8rem;
}
.hero p {
  font-size: 1.23rem;
  max-width: 684px;
  color: #3f443f;
  margin-bottom: 10px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 1.17rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(207,177,100,0.08);
  text-decoration: none !important;
  transition: background 0.22s, color 0.19s, box-shadow 0.19s, transform 0.13s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.btn-primary:after {
  content: '';
  position: absolute;
  left: 7px; right: 7px; top: 7px; bottom: 7px;
  border-radius: 18px;
  border: 2px solid var(--color-gold);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.13s;
}
.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(31,30,21,0.08);
  transform: translateY(-2px) scale(1.025);
}
.btn-primary:hover:after, .btn-primary:focus:after {
  opacity: 1;
}
.btn-primary:focus {
  outline: 2px solid var(--color-gold);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 20px;
  border: 2px solid var(--color-gold);
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: background 0.22s, color 0.18s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--color-gold);
  color: #fff;
}

/* ---- HEADER NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 3px 24px rgba(207, 177, 100, .03);
  border-bottom: 2px solid #f3f1e8;
  position: sticky;
  top: 0;
  z-index: 51;
}
header .container {
  display: flex;
  align-items: center;
  height: 84px;
  justify-content: space-between;
  gap: 30px;
}
.logo img {
  height: 48px;
  width: auto;
  margin-right: 18px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
nav a {
  color: var(--color-primary);
  font-weight: 500;
  border-radius: 10px;
  padding: 3px 10px;
  transition: background 0.16s, color 0.17s;
}
nav a:hover, nav a:focus {
  background: #fffaf2;
  color: var(--color-gold);
}
nav .btn-primary {
  margin-left: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 100;
}
/* ---- MOBILE NAV ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,241,218, 0.97);
  transition: transform 0.38s cubic-bezier(0.75,0.01,0.38,0.89);
  will-change: transform;
  z-index: 990;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu:not(.active) {
  transform: translateX(-120vw);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-gold);
  margin: 24px 22px 10px 0;
  cursor: pointer;
  transition: color 0.16s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
  transform: scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 28px 20px 40px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 7px 10px;
  border-radius: 10px;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fffaf2;
  color: var(--color-gold);
}

/* ---- FOOTER ---- */
footer {
  background: #fffdfa;
  border-top: 1px solid #e7dbbe;
  padding: 32px 0 18px 0;
  font-size: 1rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-logo img {
  width: 128px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: #60615c;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--color-gold); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #5a554d;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  vertical-align: text-bottom;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  gap: 18px;
}
.footer-social a img {
  width: 28px;
  filter: grayscale(0.2) brightness(0.91);
  transition: filter 0.15s;
}
.footer-social a:hover img {
  filter: none;
}
.footer-legal {
  font-size: 0.95em;
  color: #918d7a;
  flex-basis: 100%;
  margin-top: 12px;
  margin-left: 1px;
}

/* ---- FLEX UTILS AND LAYOUTS ---- */
.feature-grid, .feature-list, .benefit-grid, .service-list, .blog-list, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.benefit-item, .service-item, .blog-preview, .team-bios .text-section {
  background: #fbfaf7;
  border-radius: 12px;
  padding: 17px 12px 15px 17px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px rgba(207,177,100,0.053);
}
.benefit-item img, .service-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.blog-list {
  gap: 20px;
}
.blog-preview:hover {
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 4px 16px rgba(207,177,100,0.07);
}

/* --- Special Lists & Timelines --- */
.company-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  border-left: 3px solid var(--color-gold);
  padding-left: 20px;
  margin-top: 24px;
  margin-bottom: 0;
}
.company-timeline li {
  position: relative;
  padding-left: 8px;
}
.company-timeline li:before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--color-gold);
  border-radius: 50%;
  margin-right: 7px;
  position: absolute;
  left: -22px;
  top: 5px;
}
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}
.industry-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.industry-list img {
  width: 34px;
  height: 34px;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #f8f5ec;
  border-radius: 12px;
  padding: 16px 22px 12px 16px;
  box-shadow: 0 1px 7px rgba(207,177,100,0.06);
  cursor: pointer;
  margin-bottom: 8px;
  border-left: 3px solid var(--color-gold);
}
.faq-item h3 {
  margin-bottom: 7px;
  font-size: 1.13rem;
  color: var(--color-primary);
}
.faq-item .text-section {
  font-size: 1rem;
}

/* --- Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfa;
}
.pricing-table th, .pricing-table td {
  padding: 15px 18px;
  border: 1px solid #f1e8d2;
  text-align: left;
}
.pricing-table thead th {
  background: #f8ede1;
  color: var(--color-gold);
  font-weight: 700;
}
.pricing-table tbody td {
  color: #5a554d;
}

/* --- Case Study --- */
.case-study {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fffef9;
  border: 1px solid #efe2cb;
  border-radius: 12px;
  padding: 21px 24px 12px 20px;
  margin-bottom: 10px;
}
.success-metrics {
  margin-top: 8px;
}
.success-metrics ul {
  list-style: disc inside;
  color: var(--color-secondary);
}

/* --- Newsletter CTA --- */
.newsletter-signup {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
  margin-bottom: 18px;
}

/* --- Contact --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}
.contact-details img {
  width: 22px;
  margin-right: 7px;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 16px;
  background: #f9f7f0;
  border-radius: 14px;
  padding: 12px;
}

/* --- Utility: Text Section --- */
.text-section {
  font-size: 1.06rem;
  color: #37362e;
  line-height: 1.7;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.text-section ul, .text-section ol {
  margin: 4px 0 0 24px;
}
.text-section li {
  margin-bottom: 6px;
  color: #3b3b36;
}

/* --- Utility: spacing+ --- */
.mt-32 { margin-top: 32px; }
.mb-36 { margin-bottom: 36px; }

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2002;
  background: #fffdfa;
  color: #232019;
  box-shadow: 0 0 18px rgba(207,177,100,0.12);
  border-top: 2px solid var(--color-gold);
  padding: 20px 24px 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  animation: slideInBottom 0.6s cubic-bezier(.25,.75,.53,1) both;
}
@keyframes slideInBottom {
  from { transform: translateY(160px); opacity: 0; } 
  to {transform: none; opacity: 1;}
}
.cookie-banner-message {
  flex: 1 1 270px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 1rem;
  padding: 9px 21px;
  border-radius: 22px;
}
.cookie-banner .btn-secondary {
  border: 2px solid var(--color-secondary);
}
/* --- COOKIE MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,26,30,0.38);
  z-index: 2100;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s both;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fffaf1;
  border-radius: 16px;
  max-width: 410px;
  width: 88vw;
  padding: 38px 28px 32px 28px;
  box-shadow: 0 3px 40px rgba(207,177,100,0.13);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 19px;
  position: relative;
  animation: modalPopIn 0.24s cubic-bezier(.55,.12,.59,1.1) both;
}
@keyframes modalPopIn {
  from {transform: scale(0.90); opacity:0;}
  to {transform: none; opacity:1;}
}
.cookie-modal-header {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.24rem;
  color: var(--color-gold);
  margin-bottom: 7px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 32px; height: 16px;
  background: #e5ddb6;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:disabled {
  background: #c7c6bc;
  cursor: not-allowed;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(31,30,21,0.09);
  position: absolute;
  left: -1px; top: -1px;
  transition: left 0.15s;
}
.cookie-toggle:checked:before {
  left: 15px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-gold);
  cursor: pointer;
  transition: color 0.14s, transform 0.14s;
  z-index: 10;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
  transform: scale(1.12);
}

.cookie-modal-footer {
  display: flex;
  gap: 13px;
  margin-top: 13px;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  font-size: 1rem;
  border-radius: 20px;
  padding: 7px 14px;
  min-width: 0;
}

/* --- Testimonial slider (horizontal flex scroll, no grid) --- */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-left: -6px;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  header .container,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: auto;
  }
  nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .card-container, .feature-grid, .feature-list, .benefit-grid, .service-list, .team-bios, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 30px 5px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 32px 0 35px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 40px;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero .content-wrapper { gap: 12px; }
  nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-content {
    gap: 18px;
  }
  .feature-grid, .feature-list, .benefit-grid, .service-list, .blog-list, .team-bios {
    flex-direction: column;
    gap: 16px;
  }
  .map-location {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container {
    padding: 0 4vw;
  }
  .section { padding: 17px 1px; }
  .hero { padding: 17px 0 16px 0; }
  .hero h1 { font-size: 1.13rem; }
  .btn-primary { font-size: 1rem; padding: 10px 18px; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1rem;margin-bottom:7px; }
  .testimonial-card { min-width: 180px; max-width: 95vw; }
  .footer-nav {
    gap: 4px;
  }
  .footer-logo img {
    width: 105px;
  }
}
@media (max-width: 420px) {
  .container { padding: 0 3vw; }
  .btn-primary { font-size: 0.97rem; padding: 7px 9px; }
  .footer-logo img { width: 90px; }
}

@media (max-width: 768px) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ===== OTHER FLEX MOBILE-RESPONSIVE LAYOUTS ===== */
.team-bios,
.benefit-grid,
.blog-list,
.service-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 800px) {
  .team-bios,
  .benefit-grid,
  .service-list,
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* === Utility classes for micro-interactions and effects === */
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
button:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid var(--color-gold) !important;
}

/* Subtle Card Outline on Focus */
.card:focus-within, .feature-item:focus-within {
  border: 2px solid var(--color-gold) !important;
}

/* ---- End of CSS ---- */
