/* =====================
   CSS RESET & NORMALIZE
 ===================== */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F9ECCC;
  color: #1F3558;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.5,1.8,.3,.7), background 0.24s cubic-bezier(.39,1.47,.79,.98);
}
ul, ol {
  padding-left: 1.5em;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
}

/* =====================
     BRAND COLORS & FONTS
 ===================== */
:root {
  --primary: #1F3558;
  --secondary: #F9ECCC;
  --accent: #C98033;
  --accent-dark: #9A5A20;
  --white: #FFFFFF;
  --black: #131A28;
  --gray: #E5E6EC;
  --text-color: #1F3558;
  --text-light: #FFFFFF;
  --card-bg: #FFFFFF;
  --shadow: 0 2px 12px 0 rgba(31,53,88,0.10);
  --border-radius: 16px;
  --font-display: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ================================
   TYPOGRAPHY (MODERN BOLD STYLE)
 ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--text-color);
  margin-bottom: 16px;
}
blockquote {
  padding: 0 16px;
  border-left: 4px solid var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 10px;
  background: var(--secondary);
}
cite {
  font-size: 0.95rem;
  opacity: 0.7;
  font-family: var(--font-body);
  margin-left: 8px;
}
strong, b {
  font-weight: 800;
  color: var(--accent-dark);
}

/* Typography scale for responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.11rem; }
}

/* =====================
      LAYOUT CONTAINERS
 ===================== */
.container {
  width: 100%;
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--border-radius);
}

/* Grid using Flexbox only */
.feature-grid, .articles-grid, .service-cards, .testimonial-list, .testimonial-carousel, .client-logos-row, .project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.feature-grid > div,
.articles-grid > div,
.service-cards > div,
.testimonial-list > div,
.project-highlights > div {
  flex: 1 1 240px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  min-height: 180px;
}
.featured-article-card, .testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.client-logos-row {
  gap: 32px;
  align-items: center;
}
.client-logos-row img {
  width: 56px;
  height: auto;
  opacity: 0.90;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 24px;
  min-width: 220px;
}

.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: 1024px) {
  .feature-grid > div,
  .articles-grid > div,
  .service-cards > div { flex-basis: 48%; }
}
@media (max-width: 768px) {
  .feature-grid,
  .articles-grid, 
  .service-cards,
  .testimonial-list,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div,
  .articles-grid > div,
  .service-cards > div {
    flex-basis: 100%;
    min-width: 0;
    padding: 22px 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* =============================
   HEADER & NAV (DESKTOP & MOBILE)
 ============================= */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1192px;
  margin: 0 auto;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
}
header nav a {
  color: var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.17s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--text-light);
}
header nav a.cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 32px;
  margin-left: auto;
  transition: box-shadow 0.22s, background 0.17s;
  box-shadow: 0 4px 24px rgba(185,138,55,0.08);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--primary);
  color: var(--white);
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 18px;
  border-radius: 10px;
  background: var(--secondary);
  box-shadow: 0 2px 12px rgba(31,53,88,0.08);
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 2.1rem;
  padding: 6px 16px;
  border-radius: 12px;
  margin: 8px 16px;
  z-index: 101;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: background 0.23s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--white);
}

.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,53,88,0.70);
  z-index: 200;
  animation: menuFadeIn 0.35s cubic-bezier(.6,1.5,.3,.87);
}
@keyframes menuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu .mobile-nav {
  background: var(--white);
  padding: 64px 36px 32px 36px;
  border-radius: 0 0 0 var(--border-radius);
  box-shadow: 0 16px 44px rgba(31,53,88,0.14);
  width: 90vw;
  max-width: 350px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  animation: slideInMenu 0.34s cubic-bezier(.8,1.71,.2,.81) forwards;
}
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu .mobile-nav a {
  padding: 14px 0;
  font-size: 1.15rem;
  color: var(--primary);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.16s, color 0.18s;
  margin-bottom: 2px;
}
.mobile-menu .mobile-nav a:hover, .mobile-menu .mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 22px;
  font-size: 2.0rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  z-index: 201;
  transition: background 0.19s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 992px) {
  header nav {
    gap: 16px;
    padding-right: 64px;
    font-size: 1rem;
  }
  header nav a.cta { padding: 10px 14px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================
   FOOTER
 ===================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--font-display);
  padding: 0;
}
footer .container {
  padding-top: 24px;
  padding-bottom: 20px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav a {
  color: var(--secondary);
  margin-right: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.18s;
  border-radius: 6px;
  padding: 4px 8px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  background: rgba(249,236,204,0.07);
}
.footer-legal-links {
  font-size: 0.96rem;
  color: var(--secondary);
  opacity: 0.79;
}
.footer-legal-links a {
  color: var(--secondary);
  text-decoration: underline;
  margin-right: 7px;
  transition: color 0.17s;
}
.footer-legal-links a:hover { color: var(--accent); }
.branding-badge {
  margin-top: 16px;
  align-self: flex-start;
}
.branding-badge img {
  height: 38px;
  border-radius: 10px;
  filter: drop-shadow(0 1px 5px #0002);
  background: var(--secondary);
  padding: 4px;
}

/* ========================
     CALL TO ACTION BUTTONS
 ======================== */
.cta, .persistent-cta a {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 6px 28px -4px rgba(201,128,51,0.13);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 6px;
  transition: background 0.22s, color 0.12s, box-shadow 0.19s, transform 0.18s;
}
.cta:hover, .cta:focus, .persistent-cta a:hover, .persistent-cta a:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 42px -6px rgba(31,53,88,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* ============
   TABLES
 ============ */
table {
  width: 100%;
  background: var(--card-bg);
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 30px 0 24px 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
table caption {
  font-size: 1.13rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}
thead, th {
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
}
th, td {
  padding: 10px 16px;
}
tr {
  border-bottom: 1px solid var(--gray);
}
tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) {
  background: #f5f4f1;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td { padding: 8px 7px; }
}

/* =======================
     TESTIMONIALS CARDS
 ======================= */
.testimonial-list, .testimonial-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-width: 240px;
  max-width: 400px;
  color: var(--text-color);
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.15s;
}
.testimonial-card blockquote {
  color: var(--primary);
  background: #f9f5e5;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.07rem;
  padding-left: 10px;
  padding-right: 0;
  margin-bottom: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px 0 rgba(31,53,88,0.30);
  transform: translateY(-3px) scale(1.021);
}
.testimonial-card p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 800px) {
  .testimonial-list, .testimonial-carousel {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* =============================
     UTILITY & COMMON CLASSES
 ============================= */
.profile-badge img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: var(--secondary);
  box-shadow: var(--shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.quick-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.company-info, .business-hours, .contact-info {
  margin-bottom: 12px;
}
.map-embed {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.featured-service {
  background: var(--secondary);
  padding: 24px;
  border-radius: 11px;
  box-shadow: 0 2px 14px -4px var(--primary)10;
  margin-bottom: 10px;
}
.editor-note {
  font-style: italic;
  background: #fff6e9;
  color: var(--accent-dark);
  padding: 10px 18px;
  border-radius: 8px;
}

/* =====================
   RESPONSIVE LAYOUT
 ===================== */
@media (max-width: 600px) {
  body, .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .section {
    padding: 32px 8px;
  }
  .card, .testimonial-card, .featured-article-card {
    padding: 18px 6px;
  }
}

/* =====================
    HOVER/MICRO-EFFECTS
 ===================== */
a, button, .cta, .card, .testimonial-card, .articles-grid > div, .feature-grid > div, .service-cards > div {
  transition: background 0.18s, color 0.11s, box-shadow 0.19s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover, .articles-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 16px 36px -6px rgba(31,53,88,0.14);
  transform: translateY(-3px) scale(1.015);
  z-index: 3;
}

/* =============
   COOKIE CONSENT
   ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 22px 22px 20px;
  z-index: 999;
  box-shadow: 0 -2px 16px var(--primary)22;
  animation: cookieBannerAppear 0.32s cubic-bezier(.3,3.1,.3,1) forwards;
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 3px;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--white);
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
}
.cookie-modal.active {
  display: flex;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(31,53,88,0.85);
  animation: fadeInModal 0.32s cubic-bezier(.42,1.33,.34,0.97);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(31,53,88,0.24);
  padding: 44px 38px 24px 38px;
  max-width: 420px;
  width: 90vw;
  font-family: var(--font-body);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: popupCookie 0.29s cubic-bezier(.4,2.9,.2,.99) backwards;
}
@keyframes popupCookie {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal-content ul {
  list-style: inside disc;
  margin-bottom: 12px;
  padding-left: 0;
}
.cookie-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.cookie-toggle {
  width: 48px;
  height: 24px;
  border-radius: 20px;
  background: #D1D9EC;
  position: relative;
  transition: background 0.17s;
}
.cookie-toggle[data-active="true"] {
  background: var(--accent);
}
.cookie-toggle-inner {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px #0001;
  transition: left 0.18s;
}
.cookie-toggle[data-active="true"] .cookie-toggle-inner {
  left: 26px;
  background: var(--primary);
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.8rem;
  background: transparent;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 24px 8px 14px 8px;
  }
}
section {
  padding: 15px;
}
/* ===================
    MISC
 =================== */
::-webkit-scrollbar { width: 10px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }

/* ===================
   ENSURE FLEX ONLY
 =================== */
/* No grid, no columns, all gaps/margins handled via flex and margin as above */