/* ===== 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: #FAFAF9;
  color: #21394A;
}
ol, ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==== FONTS & TYPOGRAPHY ==== */
:root {
  --brand-primary: #21394A;
  --brand-secondary: #E5E7EA;
  --brand-accent: #156940;
  --brand-accent-muted: #4A8265;
  --bg-muted: #FAFAF9;
  --bg-card: #FFFFFF;
  --text-main: #21394A;
  --text-muted: #5A6880;
  --border: #D5D9DE;
  --focus: #AFC1D6;
  --shadow-light: 0 1px 6px rgba(33,57,74,0.07);
  --shadow-medium: 0 2px 16px rgba(33,57,74,0.11);
  --radius: 12px;
}

body {
  font-family: 'Georgia', "Times New Roman", Times, serif;
  font-size: 16px;
  background: var(--bg-muted);
  color: var(--text-main);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--brand-primary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 32px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-weight: 400;
}
p, ul, ol, li, table, blockquote, .text-section {
  font-family: 'Georgia', "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-main);
}
.subtitle {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

strong, b {
  font-weight: 600;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 24px;
  min-width: 280px;
  flex: 1 1 300px;
}
.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: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  position: relative;
  min-width: 300px;
  max-width: 540px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Flex pattern for common feature grid (index, services) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}
.feature-grid li {
  background: var(--bg-card);
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  flex: 1 1 285px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow 0.22s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: var(--shadow-medium);
}
.feature-grid img {
  width: 48px;
  margin-bottom: 18px;
  filter: grayscale(0.3) contrast(1.2);
}

.usp-list {
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 0;
}
.usp-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--brand-primary);
  font-size: 1.07rem;
}
.usp-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: bold;
}

/* ====== HEADER ====== */
header {
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-light);
  z-index: 111;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.logo img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.02rem;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--text-main);
  transition: background 0.18s;
  position: relative;
}
nav a:focus, nav a:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  text-decoration: underline;
}
.btn-primary {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 28px;
  border: none;
  border-radius: 7px;
  margin-left: 8px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(33,57,74,0.07);
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #21394A;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(21,105,64,0.10);
}
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #21394A;
  color: #fff;
}

/* ==== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33, 57, 74, 0.96);
  z-index: 9999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  position: absolute;
  top: 22px;
  right: 26px;
  cursor: pointer;
  z-index: 11000;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 80px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  padding: 12px 0;
  border-radius: 4px;
  font-weight: 400;
  transition: background 0.17s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(21, 105, 64, 0.15);
  color: var(--brand-accent);
  text-decoration: underline;
}

@media (max-width: 1020px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    padding-bottom: 20px;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(98deg, #f8fafc 78%, #e5e7ea 100%);
  padding: 55px 0 65px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 700px;
  align-items: flex-start;
}

/* ========== FEATURES/USP/CTA STYLES ========== */
.features {
  background: var(--bg-muted);
}

.cta {
  background: var(--brand-accent);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 60px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta a.btn-primary {
  background: #fff;
  color: var(--brand-accent);
  border: 2px solid #fff;
  margin-bottom: 10px;
}
.cta a.btn-primary:hover, .cta a.btn-primary:focus {
  background: var(--brand-primary);
  color: #fff;
  border: 2px solid #fff;
}
.cta p {
  color: #e0efea;
}

.trust {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 40px 20px;
  margin-bottom: 48px;
}
.trust h2 {
  margin-bottom: 14px;
}

/* ========== TESTIMONIALS & CARD STYLES ========== */
.testimonials {
  background: #fff;
}
.testimonial-card {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  border: 1.5px solid var(--brand-secondary);
}
.testimonial-text {
  font-size: 1.16rem;
  font-style: italic;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.testimonial-details {
  color: var(--brand-accent);
  font-size: 1rem;
}
.star-rating {
  color: #efb707;
  font-size: 1.13rem;
  letter-spacing: 1px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.project-list .text-section {
  background: #fff;
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  flex: 1 1 300px;
  min-width: 260px;
  padding: 20px 18px;
}

/* ========== SERVICE STYLES ========== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.service-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 24px 22px;
  flex: 1 1 280px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  gap: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: var(--shadow-medium);
}
.service-meta {
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 1rem;
}

/* ======= PRICING TABLE ======= */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  box-shadow: var(--shadow-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 1.08rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.pricing-table th {
  font-weight: 700;
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ========= FAQ LIST ========= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 18px 18px 13px 18px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--brand-secondary);
  margin-bottom: 8px;
}
.faq-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--brand-accent);
}
.faq-item div {
  font-size: 0.96rem;
  color: var(--brand-primary);
}

/* ========== CONTACT INFO BLOCK ======= */
.contact-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.contact-info-block .text-section {
  min-width: 220px;
  flex: 1 1 300px;
}
.contact-info-block a {
  color: var(--brand-accent);
  word-break: break-all;
  text-decoration: underline;
  transition: color 0.16s;
}
.contact-info-block a:hover, .contact-info-block a:focus {
  color: var(--brand-primary);
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0px -2px 8px 0px rgba(33,57,74,0.03);
  padding: 32px 0 18px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer nav a {
  font-size: 0.98rem;
  padding: 6px 10px;
  color: var(--brand-primary);
  border-radius: 4px;
  transition: background 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.footer-brand img {
  height: 32px;
  width: auto;
}

/* ====== GENERAL UTILITIES/OVERRIDES ====== */
.text-section {
  margin-bottom: 12px;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 24px;
  margin-bottom: 10px;
}

ol, ul {
  padding-left: 18px;
  margin-bottom: 15px;
}

ul li {
  margin-bottom: 11px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ====== RESPONSIVENESS (MOBILE-FIRST) ====== */
@media (max-width: 850px) {
  .feature-grid, .project-list, .service-list, .content-grid, .contact-info-block {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li, .project-list .text-section, .service-item {
    max-width: 100%;
    flex: unset;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 22px;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }
  .section,
  section {
    padding: 22px 4vw;
    margin-bottom: 34px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .hero {
    padding: 33px 0 40px;
  }
}
@media (max-width: 520px) {
  .btn-primary {
    font-size: 1rem;
    padding: 10px 12px;
  }
  .testimonial-card, .feature-grid li, .service-item, .project-list .text-section {
    padding: 16px 12px;
  }
  .hero h1 {
    font-size: 1.38rem;
  }
}

.text-image-section {
  flex-direction: column;
}
@media (min-width: 769px) {
  .text-image-section {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========= FOCUS STATES (WCAG) ========= */
a:focus, button:focus, .btn-primary:focus {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  z-index: 20;
}

/* ==== TABLE STYLING ==== */
table {
  width: 100%;
  margin-bottom: 24px;
  font-size: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  border: 0.5px solid var(--border);
}
th, td {
  border: 1px solid var(--brand-secondary);
  padding: 12px;
}
th {
  background: #f3f7fa;
  color: var(--brand-primary);
}

/* ==== BUTTON MICRO-INTERACTIONS ==== */
.btn-primary {
  transition: background 0.18s, color 0.18s, transform 0.13s, box-shadow 0.17s;
}
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px 0 rgba(33,57,74,0.10);
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.section, .hero, .testimonial-card, .card, .cta, .service-item {
  animation: fade-in 0.7s cubic-bezier(.62,.2,.32,1.02);
}

@media (max-width: 580px) {
  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }
  .footer-brand img {
    height: 26px;
  }
  .feature-grid {
    gap: 14px;
  }
  .project-list, .service-list {
    gap: 12px;
  }
  .testimonial-card {
    margin-bottom: 14px;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--brand-primary);
  border-top: 1.5px solid var(--brand-secondary);
  box-shadow: 0 -6px 36px -18px rgba(33,57,74,.09);
  z-index: 33000;
  padding: 23px 16px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 1.05rem;
  animation: fade-in 0.7s;
  opacity: 1;
  transition: opacity .5s;
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.92rem;
  }
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border: none;
  box-shadow: 0 1px 3px rgba(33,57,74,0.07);
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-banner .cookie-btn:hover,.cookie-banner .cookie-btn:focus {
  background: #fff;
  color: var(--brand-accent);
  border: 1.5px solid var(--brand-accent);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 42px rgba(33,57,74,0.18);
  border: 1.5px solid var(--brand-secondary);
  width: 94vw;
  max-width: 440px;
  z-index: 40000;
  padding: 34px 30px 28px 30px;
  animation: fade-in 0.55s;
  display: none;
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  font-size: 1.23rem;
  margin: 0 0 18px 0;
  color: var(--brand-primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--brand-accent);
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--brand-accent);
  width: 18px; height: 18px;
}
.cookie-modal .consent-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  background: var(--brand-accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border: none;
  box-shadow: 0 1px 3px rgba(33,57,74,0.07);
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .cookie-btn:hover,.cookie-modal .cookie-btn:focus {
  background: #fff;
  color: var(--brand-accent);
  border: 1.5px solid var(--brand-accent);
}

/* ===== VISUAL HIERARCHY ENHANCEMENTS ===== */
.section h1, .section h2, .section h3,
.content-wrapper > h1, .content-wrapper > h2 {
  margin-bottom: 16px;
  margin-top: 0;
}
.text-section h2, .text-section h3 {
  margin-top: 16px;
}

/* ===== Z-INDEX MANAGEMENT ===== */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 999;
}

/* ==== PRINT (OPTIONAL) ==== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body, section, .container {
    background: #fff !important;
    color: #21394A !important;
  }
}
