/* =========================================================
   CSS RESET & BASELINE 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, menu, 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', 'Georgia', serif;
  color: #222;
  background: #FAFAFA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #254E70;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B15B00;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border-radius: 0;
}

/* =========================================================
   BRAND TYPOGRAPHY: "elegant_classic"
========================================================= */
:root {
  --primary: #254E70;
  --secondary: #F6F6F6;
  --secondary-bg: #FFFFFF;
  --accent: #B15B00;
  --grey: #E5E8EB;
  --muted: #F8F4F0;
  --error: #d6452f;
  --shadow: 0 2px 16px rgba(56, 67, 94, 0.10);
  --radius: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #254E70;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: .02em;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
}
p, li, span, td, th, label {
  font-family: 'Roboto', 'Georgia', serif;
  color: #292929;
}
p {
  font-size: 1.125rem;
  margin-bottom: 1em;
}
strong {
  font-weight: bold;
}

/* Blockquote, quotes, classic touches */
blockquote, q {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #254E70;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
}

/* =========================================================
   LAYOUT CONTAINERS & SPACING (flexbox only)
========================================================= */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 250px;
  flex: 1 1 300px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(56,67,94,0.18);
}
.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;
  background: #FFF;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 32px 20px 32px;
  margin-bottom: 24px;
  border-left: 6px solid var(--primary);
  min-width: 260px;
  max-width: 620px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(37,78,112,0.13);
  border-left: 6px solid var(--accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive flex for features & previews */
.features ul,
.services-preview ul,
.services-list ul,
.about-short ul,
.pricing-table ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}
.features ul li,
.services-preview ul li,
.services-list ul li,
.about-short ul li,
.pricing-table ul li {
  flex: 1 1 260px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  background: var(--secondary);
  border-radius: 7px;
  padding: 13px 16px;
  min-width: 200px;
  box-shadow: 0 2px 6px rgba(56,67,94,0.03);
  font-weight: 500;
}
.features ul li img,
.services-preview ul li img,
.services-list ul li img,
.about-short ul li img,
.contact-info ul li img {
  margin-right: 1em;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: grayscale(80%);
}

/* ===== BLOG CARDS ===== */
.blog-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.blog-post {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px 18px 24px;
  min-width: 240px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s;
}
.blog-post:hover {
  box-shadow: 0 6px 32px rgba(37,78,112,0.13);
}

/* Call-to-action Offer Section */
.cta-offer {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--primary);
  color: #FFF;
  border-radius: var(--radius);
  text-align: center;
}
.cta-offer .btn-primary {
  margin-top: 18px;
}

.confirmation {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  text-align: center;
}

.guarantee-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: bold;
  border-radius: 24px;
  padding: 5px 18px;
  font-size: 1rem;
  margin-right: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(177,91,0,0.11);
  vertical-align: middle;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  border-radius: 20px;
  padding: 4px 14px 4px 8px;
  font-size: 1rem;
  margin-right: 15px;
  font-weight: 500;
}
.trust-icon img {
  margin-right: 8px;
  width: 26px;
  height: 26px;
  filter: grayscale(60%);
}
.office-hours {
  font-size: 1.02rem;
  font-family: 'Montserrat', serif;
  margin-top: 18px;
  padding-left: 2px;
}

/* ========================================
   PRICING TABLE
======================================== */
.pricing-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin-bottom: 32px;
  box-shadow: 0 1.5px 10px rgba(56,67,94,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}
.pricing-table th, .pricing-table td {
  padding: 17px 24px;
  text-align: left;
  border-bottom: 1px solid var(--grey);
}
.pricing-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-size: 1.1rem;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
header {
  background: var(--secondary-bg);
  box-shadow: 0 1.5px 10px rgba(56,67,94,0.045);
}
.header-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
}
.header-container a img {
  height: 52px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 4px 8px;
  font-size: 1.03rem;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--muted);
  color: var(--accent);
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  padding: 10px 32px;
  margin-left: 8px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1.5px 8px rgba(37,78,112,0.10);
  cursor: pointer;
  letter-spacing: 0.015em;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.btn-primary:focus,
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2.5px 18px rgba(177,91,0,0.12);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.2s;
}
.btn-secondary:focus,
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2.5px 18px rgba(37,78,112,0.11);
}

/* ========================================
   MOBILE MENU (BURGER NAV)
======================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 0 12px;
  cursor: pointer;
  line-height: 1;
  z-index: 1010;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 78, 112, 0.90);
  transform: translateX(-110vw);
  transition: transform 0.37s cubic-bezier(.7,.1,.25,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 12px;
  padding-right: 22px;
}
.mobile-menu.open {
  transform: none;
}
.mobile-menu-close {
  background: rgba(255,255,255,0.17);
  color: #FFF;
  border: none;
  font-size: 2.1rem;
  padding: 6px 18px 6px 10px;
  border-radius: 50%;
  margin-bottom: 22px;
  margin-top: 5px;
  cursor: pointer;
  z-index: 2010;
  transition: background 0.2s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-right: auto;
  margin-top: 60px;
  margin-left: 30px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 8px 2px 8px 15px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  min-width: 180px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1020px) {
  .header-container {
    gap: 17px;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .header-container {
    flex-wrap: wrap;
  }
  .main-nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .header-container {
    padding: 0 10px;
    min-height: 64px;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
  .mobile-menu {
    padding-top: 16px;
    padding-right: 3vw;
  }
}

@media (max-width: 540px) {
  .header-container a img {
    height: 36px;
  }
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  position: relative;
  padding: 60px 0 44px 0;
  background: linear-gradient(90deg,#F6F6F6 70%,#e9eced 100%);
  min-height: 290px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 14px;
  font-family: 'Montserrat', serif;
  font-size: 2.24rem;
}
.hero p {
  color: #3b3b3b;
  margin-bottom: 26px;
  font-size: 1.18rem;
}
.hero .btn-primary {
  font-size: 1.12rem;
  font-family: 'Montserrat', serif;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 18px 0;
    min-height: unset;
  }
}

/* =========================================================
   FOOTER STYLES
========================================================= */
footer {
  background: var(--secondary-bg);
  box-shadow: 0 -1.5px 8px rgba(56,67,94,0.05);
  padding: 40px 0 28px 0;
  margin-top: 44px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color 0.13s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: var(--accent);
}
.footer-contact {
  flex: 2 2 280px;
  font-size: 1rem;
  color: #393939;
  font-family: 'Roboto', serif;
  line-height: 1.6;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .footer-container {
    gap: 31px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   LEGAL/TEXT-HEAVY SECTIONS
========================================================= */
.legal, .about-team, .about-short, .contact-info, .pricing-table, .blog-intro, .blog-newsletter, .confirmation {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  font-size: 1.13rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.text-section ul {
  margin-top: 18px;
  margin-bottom: 10px;
}
.text-section ul li {
  font-size: 1.07rem;
  margin-bottom: 10px;
  color: #393939;
}

/* =========================================================
   RESPONSIVE LAYOUTS
========================================================= */
@media (max-width: 900px) {
  .content-wrapper, .content-grid, .card-container, .blog-preview-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid, .card-container, .blog-preview-grid {
    gap: 12px;
  }
  .features ul,
  .services-preview ul,
  .services-list ul,
  .about-short ul {
    gap: 14px 0;
    flex-direction: column;
    min-width: unset;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 20px 10px 18px 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section, .legal, .about-team, .about-short, .contact-info, .pricing-table, .blog-intro, .blog-newsletter, .confirmation {
    padding: 22px 5px;
    margin-bottom: 36px;
    border-radius: 9px;
  }
  .card {
    min-width: 190px;
    padding: 18px 10px;
  }
  .blog-post {
    padding: 18px 10px 14px 10px;
    min-width: 140px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.34rem;
  }
  h2 {
    font-size: 1.16rem;
  }
}

/* =========================================================
   ACCESSIBILITY & FOCUS STATES
========================================================= */
a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2100;
  background: #F4EDE1;
  box-shadow: 0 -2px 24px rgba(37,78,112,0.08);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 16px 12px;
  gap: 12px;
}
.cookie-banner p {
  font-size: 1.07rem;
  color: #36250f;
  margin-bottom: 0.7em;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
}
.btn-cookie {
  padding: 10px 26px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.07rem;
  background: var(--primary);
  color: #fff;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  cursor: pointer;
  box-shadow: 0 1.5px 8px rgba(37,78,112,0.10);
}
.btn-cookie.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-cookie.settings:hover, .btn-cookie.settings:focus {
  background: var(--primary);
  color: #fff;
}
.btn-cookie.deny {
  background: var(--accent);
  color: #fff;
}
.btn-cookie.deny:hover, .btn-cookie.deny:focus {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-cookie.accept:hover, .btn-cookie.accept:focus {
  background: #1e425a;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,78,112,.47);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff8f0;
  border-radius: var(--radius);
  max-width: 410px;
  width: 93vw;
  box-shadow: 0 8px 42px rgba(177,91,0,.16);
  padding: 28px 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.20rem;
  font-family: 'Montserrat', serif;
  color: #B15B00;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: #333;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.19s;
  box-shadow: 0 1px 3px rgba(177,91,0,0.10);
}
.cookie-toggle.enabled {
  background: var(--accent);
}
.cookie-toggle.enabled .slider {
  left: 22px;
  background: #ffecd8;
}

.cookie-modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.36rem;
  cursor: pointer;
  padding: 2px 6px;
  z-index: 5;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #ffe3cc;
  border-radius: 15px;
}

/* =========================================================
   MICRO-INTERACTIONS, SHADOWS, HOVER, EFFECTS
========================================================= */
.btn-primary, .btn-secondary, .btn-cookie {
  transition: background 0.17s, color 0.17s, box-shadow 0.15s, border-color 0.12s;
}
.card, .blog-post, .testimonial-card {
  transition: box-shadow 0.2s, border 0.16s;
}
.card:hover, .blog-post:hover, .testimonial-card:hover {
  box-shadow: 0 7px 26px rgba(37,78,112,0.13), 0 1.5px 18px rgba(177,91,0,0.07);
}
.features ul li:hover, .services-list ul li:hover {
  background: #f3e3d2;
  color: var(--primary);
}
.cta-offer .btn-primary:hover {
  background: #B15B00;
  color: #fff;
}

/* =============================================
   ACCESSIBILITY: DARK TEXT ON LIGHT BACKGROUND
============================================== */
.testimonial-card, .blog-post, .features ul li, .about-short ul li, .pricing-table ul li {
  color: #29303b;
}
.testimonial-card p {
  color: #254E70;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  margin-bottom: 9px;
}
.testimonial-card span {
  color: #B15B00;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
}

/* Table accessibility */
.pricing-table th, .pricing-table td {
  color: #29303b;
}

/* Misc: lists, spacing */
ul, ol {
  margin-bottom: 20px;
}
li {
  margin-bottom: .5em;
}

/* Hide container overflows and prevent overlapping */
.container, .content-wrapper {
  overflow-x: auto;
}

/* Animations for menu/cookie */
@keyframes cookie-banner-slide {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner {
  animation: cookie-banner-slide 0.5s cubic-bezier(.7,.1,.25,1);
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-overlay.open {
  animation: modal-fadein 0.4s cubic-bezier(.7,.1,.25,1);
}
