/* === CSS RESET & NORMALIZATION === */
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #174059;
  background-color: #F9F8F4;
  min-height: 100vh;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #174059;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem;   margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

p, li, td, th, span { font-size: 1rem; line-height: 1.6; color: #174059; font-family: 'Roboto', Arial, sans-serif; }
strong { font-weight: bold; }

/* === BRAND COLORS === */
:root {
  --primary: #174059;
  --secondary: #26A69A;
  --accent: #F9F8F4;
  --white: #fff;
  --dark: #132733;
  --gray-light: #ecf2f5;
  --gray: #888;
  --shadow: rgba(23,64,89,0.11);
  --radius: 1rem;
  --transition: 0.29s cubic-bezier(.5,.05,.41,.99);
}

/* === COMMON LAYOUTS & SPACING (FLEXBOX ONLY) === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, section { padding: 32px 8px; margin-bottom: 40px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 24px;
  min-width: 260px;
}

.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: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 1rem;
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 24px;
  max-width: 520px;
}
.testimonial-card p {
  color: #174059;
  font-size: 1.1rem;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, .feature-list, .service-list, .review-highlights ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
ul li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* === HERO & HEADERS === */
.hero {
  background: linear-gradient(120deg, #174059 0%, #26a69a 100%);
  color: var(--white);
  border-radius: 0 0 32px 32px;
  position: relative;
  box-shadow: 0 2px 24px 0 #17405911;
  padding-top: 72px;
  padding-bottom: 56px;
  margin-bottom: 48px;
}
.hero h1, .hero p {
  color: var(--white);
}
.hero .cta-btn {
  background: var(--white);
  color: var(--primary);
  font-weight: bold;
}

/* === HEADER (NAV) === */
header {
  position: relative;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #e1eaed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  z-index: 40;
}
header > a img {
  width: 175px;
  height: auto;
  margin-right: 36px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: color var(--transition);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 6px 8px;
  border-radius: 0.5rem;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  background: linear-gradient(120deg, #26a69a 0%, #174059 100%);
  color: var(--white);
  border: none;
  border-radius: 1.5rem;
  padding: 11px 34px;
  margin-left: 34px;
  box-shadow: 0 3px 14px 0 #17405927;
  transition: background var(--transition), transform 0.17s;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(120deg, #174059 0%, #26a69a 100%);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 103;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

@media (max-width: 1020px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--secondary);
  border: none;
  font-size: 2.6rem;
  align-self: flex-end;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 1003;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--white);
  background: var(--secondary);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 38px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 12px 10px;
  border-radius: 0.7rem;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--dark);
}

/* === SERVICES & CARDS === */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 30px 20px 22px 20px;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.service-card h3, .service-card h2 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 700;
}
.service-card p {
  color: var(--dark);
  margin-bottom: 7px;
}
.service-price {
  display: inline-block;
  font-size: 1.09rem;
  margin-top: 4px;
  font-weight: 700;
  color: var(--primary);
  background: #ecf6f5;
  border-radius: 1rem;
  padding: 4px 14px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .service-cards, .service-list { flex-direction: column; gap: 20px; }
  .service-card { max-width: 100%; padding: 24px; }
}

/* === PRICING TABLE === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 18px 0;
  background: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
}
thead {
  background: var(--secondary);
  color: var(--white);
}
th, td {
  padding: 14px 13px;
  text-align: left;
}
thead th {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
tbody tr {
  border-bottom: 1px solid #e3eaea;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:nth-child(odd) {
  background: #f5fbfa;
}
td {
  color: #174059;
}
@media (max-width: 600px) {
  table,
  thead,
  tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  tr { margin-bottom: 18px; }
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(115deg, #26a69a 0%, #174059 100%);
  color: var(--white);
  border-radius: 24px;
  margin-bottom: 32px;
  box-shadow: 0 3px 30px #1740591a;
}
.cta-banner h2, .cta-banner p {
  color: var(--white);
}
.cta-banner .cta-btn {
  background: var(--white);
  color: var(--secondary);
  margin-left: 0;
  margin-top: 8px;
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: var(--secondary);
  color: var(--white);
}

/* === TESTIMONIALS & REVIEWS === */
.rating-summary {
  margin-top: 18px;
  font-size: 1.1rem;
  background: #eef6f5;
  padding: 12px 24px;
  border-radius: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1px 8px var(--shadow);
  width: fit-content;
}
.review-highlights ul {
  gap: 10px;
  margin: 10px 0;
}
.review-highlights li {
  color: var(--secondary);
  font-weight: 500;
}

/* === CASE STUDIES & TEXT SECTIONS === */
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section h2, .text-section h3 {
  margin-top: 14px;
  color: var(--secondary);
}

.map-embed {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  color: var(--dark);
  font-weight: 500;
}
.map-embed img { width: 32px; height: 32px; }

/* === FAQ STYLES === */
.faq ul {
  gap: 14px;
}
.faq-preview ul li {
  color: var(--primary);
  font-size: 1rem;
}
.faq-preview ul li strong {
  color: var(--secondary);
}

/* === LEGAL SECTIONS === */
.legal {
  background: var(--gray-light);
  border-radius: 1.5rem;
}

/* === CONFIRMATION (THANK YOU) STYLES === */
.confirmation h1 {
  color: var(--secondary);
  margin-bottom: 12px;
}
.confirmation .cta-btn {
  margin-top: 24px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Roboto', Arial, sans-serif;
  padding-top: 36px;
  margin-top: 16px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid #ecf6f5;
  margin-bottom: 18px;
}
.footer-top nav {
  display: flex;
  gap: 18px;
}
.footer-top nav a {
  color: var(--accent);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-top nav a:hover, .footer-top nav a:focus {
  color: var(--secondary);
}
.footer-contact-short {
  font-size: 0.99rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: box-shadow 0.21s;
  box-shadow: 0 0 0 #17405900;
  background: #174059;
}
.footer-social a:hover img {
  box-shadow: 0 2px 8px #21bafc44;
}
.footer-bottom {
  text-align: center;
  padding: 18px 0 12px 0;
  font-size: 0.97rem;
  color: var(--gray-light);
}
@media (max-width: 780px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 0 15px 0;
  }
  .footer-contact-short { margin-bottom: 6px; }
}

/* === BUTTONS & LINKS === */
button, .cta-btn {
  outline: none;
  border: none;
  cursor: pointer;
}

button:active, .cta-btn:active {
  transform: scale(0.97);
}
a {
  transition: color var(--transition), background var(--transition);
}
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === MICRO-INTERACTIONS === */
.card, .testimonial-card, .service-card, .cta-banner, .rating-summary {
  transition: box-shadow var(--transition), background-color var(--transition);
}
.card:hover, .service-card:hover {
  box-shadow: 0 8px 24px 0 #17405933;
  z-index: 2;
}

.testimonial-card:hover {
  background: #e6faf8;
  box-shadow: 0 4px 24px 0 #1740592d;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 10px 16px 10px;
  z-index: 1050;
  box-shadow: 0 -2px 20px #13273329;
  animation: banner-fade-in 0.6s;
}
@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--white);
  color: var(--secondary);
  border: none;
  border-radius: 2rem;
  padding: 8px 22px;
  font-size: 1rem;
  margin-left: 6px;
  box-shadow: 0 2px 8px #17405921;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
  outline: none;
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1051;
  top: 0; left:0; right:0; bottom: 0;
  background: rgba(23, 64, 89, 0.67);
  justify-content: center;
  align-items: center;
  animation: modal-slide-in 0.38s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes modal-slide-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  border-radius: 1.3rem;
  max-width: 400px;
  width: 95vw;
  padding: 32px 20px 24px 20px;
  box-shadow: 0 10px 48px #17405955;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-modal .switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e1eaed;
  border-radius: 22px;
  transition: background var(--transition);
}
.cookie-modal .switch input:checked + .slider {
  background: var(--secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  left: 3px; bottom: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-modal .cookie-btn.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--secondary);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  .cta-banner { border-radius: 12px; }
}

/* === UTILITY CLASSES === */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* === HIDE SCROLLBAR FOR MOBILE NAV === */
.mobile-menu,
.mobile-menu * {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar { display:none; }

/* === ANIMATIONS FOR BURGER MENU === */
.mobile-menu {
  will-change: transform;
}

/* === ACCESSIBILITY FOCUS HANDLING === */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* === OVERRIDE AUTOFILL BG IN INPUTS (if present in future) === */
input:-webkit-autofill, input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #F9F8F4 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #F9F8F4 inset !important;
  -webkit-text-fill-color: #174059 !important;
}

/* === MODERN GRADIENT MODERN EFFECTS === */
.section, .content-wrapper, .footer-top, .testimonial-card, .service-card, .card {
  /* Use accent background and white for ultra clean look */

}

/* === HIGHLIGHT TEXT COLOR FOR CONTRAST IN TESTIMONIALS === */
.testimonial-card, .testimonials-preview .testimonial-card {
  background: #f6fcfb !important;
  color: #174059 !important;
}

/* === Z-INDEX FOR MENUS AND BANNERS === */
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay { z-index: 1050; }
