/* ================================================================
   CSS RESET & BASE STYLES (Normalize + reset)
================================================================ */
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%;
  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: #FCFCFC;
  color: #273746;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
aud,
canvas,
progress,
video {
  display: inline-block;
}

/* ================================================================
   BRAND FONTS (Fallbacks for "elegant_classic" serif) 
   (Please use Google Fonts or locally if web-safe. Fallbacks provided.)
================================================================ */
:root {
  --color-primary: #273746;
  --color-secondary: #D6E4ED;
  --color-accent: #FFB236;
  --color-white: #fff;
  --color-dark: #273746;
  --color-light: #F8F9FA;
  --color-muted: #A1A7AD;
  --color-border: #E1E5EA;
  --shadow-card: 0 6px 32px 0 rgba(30, 38, 54, 0.07);
  --shadow-elevated: 0 2px 16px rgba(30, 38, 54, 0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.23s cubic-bezier(.3, .72, .48, .99);
  --font-display: 'Georgia', 'Times New Roman', Times, serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--color-muted); font-weight:500;}

p, li {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}
strong, b {
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===================
   HEADER & NAVIGATION
=================== */
header {
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 14px;
}
header a img {
  height: 38px;
  margin-right: 22px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border 0.18s;
}
nav a.cta {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  border: none;
  margin-left: 16px;
  box-shadow: 0 1px 3px rgba(30,38,54,0.04);
  transition: var(--transition);
  letter-spacing: .025em;
}
nav a.cta:hover, nav a.cta:focus {
  background: #ffcd63;
  color: var(--color-primary);
}
nav a:hover, nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* ===============
   MOBILE NAVIGATION
================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 10px;
  z-index: 1201;
  transition: var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(39, 55, 70, 0.94);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.54, .04, .11, 1);
}
.mobile-menu.active {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2010;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 90px;
  align-items: flex-start;
  padding: 32px 38px 34px 38px;
  background: none;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.4rem;
  font-family: var(--font-display);
  letter-spacing: .015em;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  transition: background .19s, color .16s;
  min-width: 150px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding-left: 16px;
}
@media (max-width: 980px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===========================================================
   SECTIONS, GRIDS & FLEXBOX LAYOUTS  (No Grid! Always Flexbox)
=========================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 370px;
  padding: 30px 26px 26px 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .22s, transform .23s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(39,55,70,0.13);
  transform: translateY(-4px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 22px 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--color-light);
  box-shadow: 0 2px 14px 0 rgba(30, 38, 54, 0.09);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  font-style: italic;
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: var(--color-dark);
  margin-right: 10px;
}
.testimonial-card strong {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  margin-left: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.team-values ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
/* Blog/Project special blocks */
.blog-categories, .project-categories {
  margin: 14px 0 10px 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}
.blog-featured {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 18px;
}
.project-stats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--color-primary);
  margin: 18px 0 10px 0;
  font-size: 1rem;
}
.next-steps {
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  margin: 20px 0 18px 0;
  padding: 18px 22px;
  font-size: 1.03rem;
}

.cta-banner {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

/* =====================
   BUTTONS & CALL-TO-ACTIONS
====================== */
.cta, .feature-grid .cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  font-size: 1.13rem;
  box-shadow: 0 2px 12px 0 rgba(255, 178, 54, 0.10);
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.01em;
  transition: background .23s, box-shadow .22s, color .16s, transform .19s;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: #FFD882;
  color: var(--color-primary);
  box-shadow: 0 3px 18px 0 rgba(255, 178, 54, 0.15);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
button:focus, a:focus {
  outline: 2px solid var(--color-accent);
}

/* ============================
   FORMS (Contact/Newsletter, etc)
============================= */
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
input[type=email], input[type=text], textarea {
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ===================
   FOOTER
=================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding-top: 32px;
  padding-bottom: 16px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #fff;
  opacity: 0.92;
  font-size: 1rem;
  border-bottom: 1px dashed transparent;
  transition: color 0.19s, border 0.14s;
  padding: 3px 0;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
  border-bottom: 1px dashed var(--color-accent);
}
.address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #fff;
  opacity: 0.85;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a img {
  height: 30px;
  filter: brightness(0) invert(1) grayscale(0.6) opacity(0.8);
  transition: filter .18s;
}
.social-links a:hover img {
  filter: brightness(1) invert(0.7) sepia(1) saturate(2) hue-rotate(-12deg);
}

/* ==========================================
   COOKIE CONSENT BANNER & PREFERENCES MODAL
============================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 24px 20px 16px 20px;
  z-index: 3000;
  box-shadow: 0 -4px 32px 0 rgba(30,38,54,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: slideInUp 600ms cubic-bezier(.25, .8, .25, 1);
}
.cookie-banner__text {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  margin: 0 1px;
  font-size: 1rem;
  transition: background .19s, color .16s, transform .18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd882;
  transform: translateY(-2px) scale(1.02);
}
.cookie-btn.cookie-reject {
  background: var(--color-muted);
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  padding: 9px 20px;
}
.cookie-btn.cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
@keyframes slideInUp {
  0% { transform: translateY(90px); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39,55,70,0.72);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 36px 24px 26px 24px;
  max-width: 410px;
  width: 92vw;
  box-shadow: 0 14px 44px 0 rgba(30,38,54,0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInZoom 300ms cubic-bezier(.37, .68, .43, 1);
}
@keyframes fadeInZoom {
  0% { opacity: 0; transform: scale(.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--color-border);
}
.cookie-modal-category label {
  font-size: 1.06rem;
}
.cookie-modal-category input[type=checkbox],
.cookie-modal-category input[type=radio] {
  accent-color: var(--color-accent);
  transform: scale(1.14);
  margin-left: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 8px;
  font-size: 1.7rem;
  border: none;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ========================================
   RESPONSIVE DESIGN ! (Mobile First - Flex Only)
========================================= */
@media (max-width: 980px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section {
    margin-bottom: 30px;
    padding: 28px 6px 32px 6px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div {
    max-width: none;
    min-width: 0;
    padding: 22px 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    padding: 20px 10px;
    margin-bottom: 12px;
  }
  .cta-banner {
    padding: 18px 9px;
    gap: 10px;
    margin-bottom: 15px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 18px;
  }
}
/* Super narrow screens */
@media (max-width: 540px) {
  .cookie-modal {
    padding: 14px 3vw 18px 3vw;
    min-width: unset;
    max-width: 97vw;
  }
}

/* Hide scroll on modal open */
.body--modal-open {
  overflow: hidden;
}

/* Extra Spacing and Microinteractions */
.card:hover, .feature-grid > div:focus-within {
  box-shadow: 0 7px 28px 0 rgba(39, 55, 70,0.15);
  z-index: 2;
}
.cta-banner .cta {
  margin-top: 10px;
}

/* Minor utilities */
.text-section ul {
  margin-bottom: 10px;
}
.map {
  margin-top: 8px;
}

/* Ensure no CSS grid properties or columns! Flexbox only used above. */
