/* =======================================================
   CSS Reset + Normalize  (mobile-first)   
======================================================= */
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F5F5F5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #34495E;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  padding-left: 1.2em;
}
a {
  color: #34495E;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E0A96D;
  outline-offset: 2px;
}
img, svg {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* =======================================================
   Brand Variables & General
======================================================= */
:root {
  --primary: #34495E;
  --secondary: #E0A96D;
  --accent: #F5F5F5;
  --text-dark: #222C3C;
  --text-light: #FFF;
  --gradient-main: linear-gradient(90deg, #E0A96D 0%, #34495E 100%);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius: 16px;
  --shadow-md: 0 2px 12px rgba(52,73,94,0.08);
  --shadow-lg: 0 4px 24px rgba(52,73,94,0.10);
  --transition-fast: 0.18s cubic-bezier(.65,.05,.36,1);
  --transition-med: 0.36s cubic-bezier(.65,.05,.36,1);
}
/* Fallback for custom properties on older browsers */
body {
  background: #F5F5F5;
}


/* =======================================================
   Typography
======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: .02em;
  margin-bottom: 0.66em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.15rem;
  font-weight: 500;
}
p, li {
  font-family: var(--font-body);
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
}
.subheadline {
  color: var(--primary);
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 24px;
}
strong {
  font-weight: bold;
  color: var(--primary);
}
.category {
  display: inline-block;
  font-size: 0.92rem;
  border-radius: 2em;
  background: var(--secondary);
  color: #fff;
  padding: 2px 14px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* =======================================================
   Layout Containers
======================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 20px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* CTA Banner Container */
.cta-banner {
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: var(--text-light) !important;
  box-shadow: var(--shadow-lg);
  text-align: center;
  gap: 24px;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 8px;
}
.cta-banner .cta-primary {
  margin: 0 auto;
}

/* Spacing utility for sections */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* Card & Grid Patterns */
.card-container, .card-grid, .features-grid, .blog-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card, .service, .case-study, .project-description, .blog-list article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5em 1.2em;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover, .service:hover, .case-study:hover, .blog-list article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.018);
}
.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: flex-start;
  gap: 12px;
  background: #FAFAFA;
  color: var(--primary);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 550px;
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}
.testimonial-card:hover {
  background: #f2e6da;
  box-shadow: var(--shadow-lg);
}
.testimonial-text {
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
}
.testimonial-author {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.05rem;
}
.testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Blog List Article */
.blog-list article {
  border-left: 6px solid var(--secondary);
}
.blog-list article h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* Footer Sections */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-contact, .footer-newsletter {
  margin-bottom: 18px;
  max-width: 320px;
}
.footer-brand {
  margin-bottom: 18px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 32px;
  padding-top: 32px;
}
footer {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  color: var(--primary);
  margin-top: 60px;
}

/* Newsletter Sign-Up (Blog CTA Banner) */
.newsletter-signup {
  margin-top: 12px;
  text-align: center;
}

/* Cookie Consent Banner ===================== */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 24px rgba(52,73,94,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 22px 16px;
  animation: slideUpCookie 0.6s cubic-bezier(.4,1.6,.4,1) 1;
}
@keyframes slideUpCookie {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-consent p {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 20px;
  border-radius: 2em;
  border: none;
  outline: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast); 
  cursor: pointer;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #dce1e6;
  color: var(--primary);
}
.cookie-settings-btn {
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  filter: brightness(1.05);
  box-shadow: 0 2px 8px rgba(52,73,94,0.07);
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,54,74,0.38);
  z-index: 2100;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.28s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  min-width: 270px;
  max-width: 98vw;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: dropInModal 0.35s cubic-bezier(.46,2.2,.41,1.1);
}
@keyframes dropInModal {
  0% { transform: translateY(-25px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  margin-bottom: 3px; color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
/* Cookie Toggle Switch */
.cookie-switch {
  position: relative;
  width: 36px; height: 20px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #eee;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px #bbb;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =======================================================
   Buttons & Links
======================================================= */
.cta-primary {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  border-radius: 2em;
  padding: 12px 32px;
  margin-top: 12px;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  letter-spacing: .04em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ce9556;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px) scale(1.03);
  color: #fff;
}
.cta-link {
  display: inline-block;
  color: var(--primary);
  background: transparent;
  border-bottom: 2px solid var(--secondary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 10px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.cta-link:hover, .cta-link:focus {
  color: var(--secondary);
  border-color: var(--primary);
}
nav a {
  padding: 8px 12px;
  font-family: var(--font-display);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-bottom: 2px;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: #fff;
}
nav a.cta-primary {
  background: var(--secondary);
  color: #fff;
  margin-left: 7px;
  padding: 10px 20px;
}

/* =======================================================
   Header, Navigation, Mobile Menu
======================================================= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 24px rgba(52,73,94,0.07);
  position: sticky;
  top: 0; left: 0; z-index: 1100;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
  padding: 12px 16px 8px 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}
header a img, .footer-brand img {
  width: 127px;
  height: auto;
}

.mobile-menu-toggle {
  background: none;
  color: var(--primary);
  font-size: 2.4rem;
  border: none;
  margin-left: 18px;
  border-radius: 9px;
  padding: 2px 11px 0 9px;
  display: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #eee;
}

.mobile-menu {
  position: fixed;
  z-index: 3010;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 2px 32px rgba(52,73,94,0.16);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.47,.76,.67,1);  
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}

.mobile-menu-close {
  color: var(--primary);
  background: none;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 28px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 3110;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 50px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid #eee;
  width: 100%;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

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

/* =======================================================
   Services, Features, Key Benefits & Price
======================================================= */
.features-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div, .service {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 230px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.features-grid > div:hover, .service:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.015);
}
.features-grid img, .service img {
  height: 44px;
  width: 44px;
  margin-bottom: 8px;
}
.service-price {
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 6px;
}
.key-benefits {
  margin-top: 20px;
}
.key-benefits h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* =======================================================
   Custom Layout Patterns
======================================================= */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thank-you-steps ul, .content-wrapper ul {
  list-style: disc;
  padding-left: 1.3em;
}
.case-study {
  min-width: 260px;
  flex: 1 1 320px;
}
.project-description {
  min-width: 200px;
  flex: 1 1 260px;
}

/* Contact Details */
.contact-details, .contact-note {
  margin-bottom: 18px;
  font-size: 1rem;
}
.contact-details strong {
  color: var(--secondary);
}

/* =======================================================
   Visual Details
======================================================= */
input, textarea, select {
  font-family: var(--font-body);
  border: 1px solid #ddd;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fafafa;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

/* Shadows and surfaces */
.boxed {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 18px;
}

/* =======================================================
   Responsive & Adaptive Patterns
======================================================= */
@media (max-width: 1024px) {
  .features-grid > div, .service {
    min-width: 200px; flex: 1 1 300px;
  }
  .card, .case-study, .project-description { min-width: 180px; }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 0; padding-right: 0;
  }
  .content-wrapper {
    padding: 28px 7vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .section, .content-wrapper {
    padding: 28px 7vw;
    margin-bottom: 42px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .card, .case-study, .project-description, .service, .blog-list article {
    min-width: 140px;
    flex: 1 1 150px;
    padding: 1em 0.7em;
  }
  .features-grid, .services-list, .card-container, .card-grid, .blog-list {
    gap: 16px;
  }
  .card {
    margin-bottom: 14px;
  }
  .testimonial-card { padding: 14px; }
  .cta-banner {
    padding: 22px 14px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .footer-links {
    flex-direction: column;
    gap: 7px;
  }
  .footer-contact, .footer-newsletter {
    max-width: 98vw;
  }
  .footer-brand {
    margin-bottom: 7px;
  }
  .testimonial-slider {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .section, .content-wrapper { padding: 15px 2vw; }
  .testimonial-card, .card, .service,
  .case-study, .blog-list article {
    padding: 10px 7px;
    font-size: 0.97rem;
  }
  .footer-brand img { width: 92px; }
}

/* General micro-interactions */
.card, .service, .case-study, .blog-list article, .testimonial-card, .features-grid > div {
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

/* Hide focus outline for mouse users, show for keyboard nav only */
:focus:not(:focus-visible) {
  outline: none;
}

/* =======================================================
   Utility Classes
======================================================= */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* Accessibility: High contrast for important text in testimonials */
.testimonial-text, .testimonial-author {
  color: var(--primary) !important;
}

/* End of Styles */
