/* =========================
   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 {
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #17232a;
  background-color: #f8faff;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #1fa9d6;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #1fa9d6;
  outline-offset: 2px;
}
ul, ol {
  list-style-position: inside;
  margin-left: 1.2em;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* =========================
   Font Imports
   ========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* =========================
   Color Variables
   ========================= */
:root {
  --primary: #17232a;
  --secondary: #1fa9d6;
  --accent: #f8faff;
  --gray-100: #e8eef3;
  --gray-200: #d5dbe3;
  --gray-300: #bfc9d1;
  --gray-700: #47525c;
  --shadow: 0 2px 16px 0 rgba(23,35,42,0.05);
  --white: #fff;
  --danger: #c82333;
  --success: #198754;
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; }
p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  font-size: 18px;
  color: var(--gray-700);
  border-left: 4px solid var(--secondary);
  padding-left: 14px;
  margin-bottom: 10px;
}
strong { font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* =========================
   Layout Containers
   ========================= */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section {
  margin-bottom: 0px;
  background: var(--secondary);
  color: var(--white);
  padding: 40px 20px;
}
.cta-section h2, .cta-section p {
  color: var(--white);
}

@media (max-width: 768px) {
  .section, .cta-section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

/* Cards & Grids */
.card-container, .services-grid, .differentiators-list, .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.card, .service-card, .differentiators-list > div, .features-grid > div {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--gray-100);
  min-width: 240px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .service-card:hover, .differentiators-list > div:hover, .features-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(31,169,214,0.07);
  transform: translateY(-4px) scale(1.03);
}
.price {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  font-size: 18px;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--accent);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 8px 0 rgba(23,35,42,0.02);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-author {
  font-weight: 500;
  color: var(--primary);
}

/* Visual Sections */
.hero-section {
  background: linear-gradient(100deg, var(--accent) 70%, #e8eef3 100%);
  padding: 60px 0 30px 0;
  margin-bottom: 0;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 36px 0 16px 0;
  }
}

/* Buttons */
.cta-btn, .cookie-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 0;
  transition: background 0.2s, box-shadow 0.16s, letter-spacing 0.18s, color 0.2s;
  box-shadow: 0 2px 8px 0 rgba(23,35,42,0.10);
  cursor: pointer;
  outline: none;
}
.cta-btn:focus, .cookie-btn:focus {
  background: #0f607a;
  outline: 2px solid var(--secondary);
  color: var(--white);
}
.cta-btn:hover, .cookie-btn:hover {
  background: #136b8a;
  color: #f3fcff;
  letter-spacing: 0.08em;
}

/* Main Navigation */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding-top: 0;
  margin-bottom: 0;
  position: sticky; /* fallback for sticky nav */
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  justify-content: flex-start;
  font-size: 1rem;
}
.main-nav > a {
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.13s, border-bottom 0.22s;
  padding: 5px 0;
  position: relative;
}
.main-nav > a.cta-btn {
  margin-left: auto;
  margin-right: 0;
  margin-top: 0;
  background: var(--secondary);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 26px;
}
.main-nav > a:not(.cta-btn):hover, .main-nav > a:not(.cta-btn):focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.main-nav img {
  height: 40px;
  margin-right: 20px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .main-nav { gap: 14px; }
  .main-nav img { margin-right: 8px; height: 36px; }
}
@media (max-width: 900px) {
  .main-nav > a { font-size: 15px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==========
   Mobile Menu
   ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 21px;
  right: 23px;
  z-index: 199;
  font-size: 2rem;
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-100);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--accent);
  z-index: 300;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.66,-0.09,.35,1.09);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 14px 30px 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  border-radius: 4px;
  padding: 2px 7px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--gray-200);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 20px 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ========
   Footer
   ======== */
footer {
  background: var(--primary);
  color: var(--gray-100);
  padding: 38px 0 10px 0;
  border-top: 1px solid var(--gray-100);
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 38px;
  margin-bottom: 16px;
}
footer h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 700;
}
footer nav, footer address {
  color: var(--gray-300);
  font-size: 1rem;
  margin-bottom: 12px;
}
footer nav a, .legal-links a {
  color: var(--gray-300);
  margin-right: 16px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav a:last-child { margin-right: 0; }
footer nav a:hover, .legal-links a:hover {
  color: var(--secondary);
}
footer address, footer address a {
  color: var(--gray-300);
  font-style: normal;
  font-size: 0.97rem;
}
.legal-links {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 8px;
}
.legal-links a { margin: 0; }

@media (max-width: 1024px) {
  footer .content-wrapper {
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 24px 0 8px 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .legal-links {
    margin-top: 10px;
  }
}

/* ===========
 @ Utilities
 ============ */
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.text-center { text-align: center; }

dd, dt {
  margin-bottom: 4px;
}
.map-placeholder {
  background: var(--gray-100);
  color: var(--primary);
  border-radius: 10px;
  padding: 22px 12px;
  margin-top: 10px;
  font-size: 0.99rem;
  font-style: italic;
}

/* ========================
   Feature/Differentiator List
   ======================== */
.differentiators-list, .features-grid {
  width: 100%;
  align-items: stretch;
}
.differentiators-list > div, .features-grid > div {
  min-width: 210px;
  flex: 1 1 210px;
}
.features-grid img, .differentiators-list img {
  height: 38px;
  width: 38px;
  margin-bottom: 8px;
}

/* ========================
   Service Cards
   ======================== */
.services-grid {
  flex-wrap: wrap;
  align-items: stretch;
}
.service-card {
  min-width: 240px;
  max-width: 355px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.17s;
}
.service-card h3 { color: var(--primary); margin-bottom: 13px; font-size: 1.1rem; }

/* ========================
   Lists, Addresses, Misc
   ======================== */
ul, ol {
  margin-bottom: 16px;
  color: var(--primary);
}
dd { margin-left: 12px; }

address {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--gray-700);
}

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

/* ===============
   Responsive Flex Utilities
   =============== */
@media (max-width: 1024px) {
  .card-container, .services-grid, .differentiators-list, .features-grid {
    gap: 16px;
  }
  .service-card, .card, .differentiators-list > div, .features-grid > div {
    min-width: 160px;
    padding: 20px 13px;
  }
}
@media (max-width: 768px) {
  .card-container, .services-grid, .differentiators-list, .features-grid {
    flex-direction: column;
    gap: 14px;
  }
  .service-card, .card, .differentiators-list > div, .features-grid > div {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
    margin-bottom: 13px;
  }
}

/* ===============
   Specifics for text-image-section 
   =============== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ===============
   Cookie Consent Banner
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -2px 12px 0 rgba(23,35,42,0.05);
  padding: 16px 40px 16px 30px;
  gap: 18px;
  max-width: 100vw;
  animation: slideUp 0.6s cubic-bezier(.45,.05,.65,1.25);
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 500px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-weight: 600;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  box-shadow: none;
  padding: 9px 22px;
  font-size: 15px;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-btn.secondary:hover {
  background: #e8eef3;
  color: #10607a;
}
.cookie-btn.danger {
  background: var(--danger);
  color: var(--white);
  border: none;
}
.cookie-btn.danger:hover {
  background: #a81529;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner { 
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
  }
  .cookie-banner .cookie-buttons {
    gap: 8px;
    width: 100%;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,35,42,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 14px;
  max-width: 340px;
  width: 90vw;
  padding: 30px 18px 14px 18px;
  box-shadow: 0 8px 44px 0 rgba(23,35,42,0.23);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeIn 0.18s;
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-modal .cookie-toggle-list {
  margin-top: 8px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal .toggle-category {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cookie-modal .toggle-category label {
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  background: var(--gray-200);
  vertical-align: middle;
  transition: background 0.15s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle span {
  position: absolute;
  top: 4px; left: 4px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.17s;
  box-shadow: 0 2px 4px rgba(23,35,42,0.07);
}
.cookie-toggle input:checked + span {
  left: 22px;
  background: var(--secondary);
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin-bottom: 7px;
}
.cookie-modal .cookie-btn:last-child {
  margin-bottom: 0;
}

/* ===============
   Miscellaneous
   =============== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 6px;
}

/* =====================
   Section Spacing Rules
   ===================== */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  main > section, .section {
    margin-bottom: 32px;
    padding: 22px 0;
  }
}

/* ===============
   Preventing Overlap and Z-Index
   =============== */
.card, .service-card, .testimonial-card, .differentiators-list > div, .features-grid > div {
  z-index: 1;
}

/* ===============
   Table Style (if used in any future expansion)
   =============== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin-bottom: 32px;
  box-shadow: 0 1px 4px 0 rgba(23,35,42,0.05);
}
th, td {
  border: 1px solid var(--gray-100);
  text-align: left;
  padding: 12px 16px;
}

td strong { color: var(--primary); }

/* ===============
   Visually Hidden Utility
   =============== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===============
   Hover, Active, Focus States
   =============== */
button:hover, button:focus {
  outline: none;
}
a:active { color: var(--secondary); }

/* ===============
   Animation/Micro-Interaction
   =============== */
.card, .service-card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.23s;
}
.card:focus-within, .service-card:focus-within, .testimonial-card:focus-within {
  border-color: var(--secondary);
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 3px 18px 0 rgba(31,169,214,0.07);
}

/* ===============
   Feature Items Utility
   =============== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===============
   Misc - For Consistent Spacing
   =============== */
.card + .card, .service-card + .service-card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* ===============
   End of Styles
   =============== */
