/* Congeschia Minimalist Website CSS (Flexbox Only, Mobile-First) */

/* =========================
   CSS RESET & BASE STYLES
   ========================= */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, sans-serif;
  color: #263238;
  background-color: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #263238;
  text-decoration: none;
  transition: color 0.15s;
}
a:focus {
  outline: 2px solid #B71C1C;
  outline-offset: 2px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
strong {
  color: #263238;
  font-weight: 700;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #263238;
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.125rem; /* 34px */
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
}
h4 { font-size: 1.1rem; margin-bottom: 12px; }
h5 { font-size: 1rem; margin-bottom: 10px; }
h6 { font-size: 0.95rem; margin-bottom: 8px; }

p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #263238;
}

/* =========================
   GLOBAL CONTAINERS
   ========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

/* =========================
   HEADER / NAVIGATION
   ========================= */
header {
  background: #fff;
  position: relative;
  z-index: 1030;
  border-bottom: 1px solid #f0f0f0;
  padding: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
nav img {
  height: 40px;
  width: auto;
  margin-right: 32px;
}
nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #263238;
  padding: 4px 10px;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
}
nav a.cta-primary {
  background: #B71C1C;
  color: #fff !important;
  margin-left: 14px;
  border-radius: 8px;
  padding: 9px 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 1px 4px 0 rgba(38,50,56,0.04);
}
nav a.cta-primary:hover, nav a.cta-primary:focus {
  background: #a31515;
  color: #fff;
}
nav a:hover:not(.cta-primary), nav a:focus:not(.cta-primary) {
  background: #F6F6F6;
  color: #B71C1C;
}

/* Hamburger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #B71C1C;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 12px;
  border-radius: 5px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  background: #F6F6F6;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 0 30px 8px rgba(38,50,56,0.12);
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #263238;
  padding: 8px 18px 8px 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 4px;
  margin-right: 16px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F6F6F6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 40px 32px 40px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #263238;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  width: 100%;
  transition: color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B71C1C;
  background: none;
}

@media (max-width: 1024px) {
  nav {
    gap: 14px;
    padding: 18px 0;
  }
  nav img {
    margin-right: 14px;
  }
}
@media (max-width: 900px){
  nav a.cta-primary {
    margin-left: 7px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 17px;
    right: 15px;
  }
  .mobile-menu {
    padding-top: 24px;
  }
}

/* =========================
   HERO SECTIONS
   ========================= */
.hero-section {
  background: #F6F6F6;
  padding: 52px 0 45px 0;
  margin-bottom: 50px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section .content-wrapper {
  gap: 20px;
  max-width: 630px;
}
.hero-section h1 {
  font-size: 2.25rem;
}
.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.hero-section .cta-primary {
  margin-top: 10px;
}
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 0 26px 0;
  }
  .hero-section h1 {
    font-size: 1.13rem;
  }
}

/* =========================
   CARD & FLEX PATTERNS
   ========================= */
.card-container,
.card-grid,
.features,
ul.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(38,50,56,0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow .16s, transform .13s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(38,50,56,0.13);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: 22px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px 0 rgba(38,50,56,0.06);
  margin-bottom: 20px;
  margin-top: 10px;
  /* For visual separation between cards */
  min-width: 230px;
  max-width: 425px;
  transition: box-shadow .17s, transform .13s;
  color: #263238;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(38,50,56,0.17);
  transform: scale(1.01);
}
.testimonial-card strong { color: #B71C1C; font-size: 1rem; margin-top: 9px; font-weight: 700; }
.testimonial-card span {
  color: #ffc107;
  font-size: 1.23rem;
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 0.08em;
  margin-top: 0px;
}

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

/* Special selector for lists of features, services, etc. */
ul:not(.mobile-nav):not(.content-grid) {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 32px;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
ul:not(.mobile-nav):not(.content-grid) > li {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 10px 0 rgba(38,50,56,0.07);
  padding: 20px 18px 18px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: box-shadow .14s, transform .11s;
}
ul:not(.mobile-nav):not(.content-grid) > li:hover {
  box-shadow: 0 4px 20px 0 rgba(38,50,56,0.150);
  transform: translateY(-2px) scale(1.018);
}
ul:not(.mobile-nav):not(.content-grid) > li img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

/* Ordered Lists (Rankings) */
ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  padding-left: 24px;
}
ol > li {
  padding-bottom: 9px;
  border-bottom: 1px solid #F6F6F6;
  margin-bottom: 6px;
  font-size: 1.07rem;
}

/* Map Placeholder styling */
.map-placeholder {
  background: #F6F6F6;
  color: #757575;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 0.98rem;
  margin-top: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px 0 rgba(38,50,56,0.05);
}

/* =========================
   SECTION + SPACING
   ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 700px) {
  .container, section {
    padding-left: 7px;
    padding-right: 7px;
  }
  section {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .section {
    padding: 25px 8px;
  }
  ul:not(.mobile-nav):not(.content-grid) {
    gap: 12px 0;
  }
}

/* =========================
   CTAS & BUTTONS
   ========================= */
.cta-primary,
.cta-secondary {
  display: inline-block;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color .12s, transform .12s;
  text-decoration: none;
  margin-top: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px 0 rgba(38,50,56,0.08);
  outline: none;
}
.cta-primary {
  background: #B71C1C;
  color: #fff !important;
}
.cta-primary:hover, .cta-primary:focus {
  background: #8c0f0f;
  color: #fff !important;
  box-shadow: 0 8px 32px 0 rgba(38,50,56,0.11);
  transform: scale(1.035);
}
.cta-secondary {
  background: #fff;
  border: 2px solid #B71C1C;
  color: #B71C1C !important;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #B71C1C;
  color: #fff !important;
  box-shadow: 0 3px 18px 0 rgba(38,50,56,0.13);
}

button {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .15s, color .12s, box-shadow .14s, transform .12s;
}
button:focus {
  outline: 2px solid #B71C1C;
  outline-offset: 1px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #fff;
  border-top: 1px solid #efefef;
  padding: 42px 0 38px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
footer > a img {
  height: 35px;
  width: auto;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
footer nav a {
  font-size: 1rem;
  color: #263238;
  padding: 4px 12px;
  border-radius: 5px;
  transition: background 0.14s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #F6F6F6;
  color: #B71C1C;
}
footer .text-section {
  font-size: 0.97rem;
  color: #757575;
  margin-top: 14px;
  max-width: 650px;
}
footer .text-section a {
  color: #B71C1C;
  text-decoration: underline;
  font-weight: 500;
}
/* Responsive Footer */
@media (max-width: 600px) {
  footer {
    padding: 20px 0 18px 0;
    gap: 18px;
  }
  footer .text-section {
    font-size: 0.92rem;
  }
}

/* =========================
   FORMS (if exist in future)
   ========================= */
input, select, textarea {
  font-family: 'Lato', Arial, sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 15px;
  background: #fff;
  transition: border-color .14s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #B71C1C;
}
label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 99999;
  background: #263238;
  color: #fff;
  box-shadow: 0 -2px 12px 0 rgba(38,50,56,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 16px;
  font-size: 1rem;
  transition: transform .29s, opacity .22s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 300px;
  margin-right: 20px;
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  margin-right: 10px;
  transition: background 0.16s, color 0.09s;
}
.cookie-banner .accept {
  background: #B71C1C;
  color: #fff;
  margin-right: 6px;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus { background: #8c0f0f; }
.cookie-banner .reject {
  background: #fff;
  color: #263238;
  border: 2px solid #B71C1C;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #B71C1C;
  color: #fff;
}
.cookie-banner .settings {
  background: #F6F6F6;
  color: #263238;
  border: 2px solid #263238;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #263238;
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 7px;
    gap: 10px;
  }
  .cookie-banner .cookie-banner-text {
    margin-right: 0;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 9999999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,50,56, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #263238;
  border-radius: 14px;
  box-shadow: 0 8px 48px 0 rgba(38,50,56,0.21);
  max-width: 420px;
  width: 94vw;
  padding: 28px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeUpScale .35s;
}
.cookie-modal-content h2 {
  font-size: 1.42rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  margin-top: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'],
.cookie-category input[type='radio']  {
  accent-color: #B71C1C;
  width: 1.1rem;
  height: 1.1rem;
}
.cookie-category .locked {
  color: #bbb;
  font-size: 0.89rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.cookie-modal-actions .cookie-btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  background: #B71C1C;
  color: #fff;
  border: none;
}
.cookie-modal-actions .cookie-btn:last-child {
  background: #fff;
  border: 2px solid #B71C1C;
  color: #B71C1C;
}
.cookie-modal-actions .cookie-btn:hover, .cookie-modal-actions .cookie-btn:focus {
  background: #8c0f0f;
  color: #fff;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #757575;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 4px;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: #F6F6F6;
}
@keyframes fadeUpScale {
  0% { opacity: 0; transform: translateY(28px) scale(0.94); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}

/* =========================
   MISC. UTILITIES
   ========================= */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.text-center { text-align: center !important; }
.text-section {
  margin-bottom: 20px;
  margin-top: 6px;
}

/* =========================
   RESPONSIVE LAYOUT ADJUSTMENTS
   ========================= */
@media (max-width: 1050px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.08rem; }
  .testimonial-card,
  ul:not(.mobile-nav):not(.content-grid) > li,
  .card {
    padding: 16px 8px;
    min-width: 135px;
    font-size: 0.98rem;
  }
  .content-wrapper { gap: 13px; }
}
@media (max-width: 540px) {
  .testimonial-card { min-width: unset; max-width: unset; width: 100%; }
  .container { padding: 0 4px; }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
}
