/* =======================================================
   Tivora Scrub CSS – Elegant Classic (Flexbox only)
   ======================================================= */

/* ===== RESET & NORMALIZE ===== */
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Georgia, serif;
  background: #FCFAF7;
  color: #2B2A28;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #163143;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F1B24A;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 600;
}

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: #163143;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.1rem;
  font-style: italic;
  color: #484540;
}
p,
li,
dd {
  font-size: 1rem;
  color: #38342e;
  margin-bottom: 14px;
}
.text-section p {
  margin-bottom: 16px;
}

/* ======== UTILITIES ======= */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  margin-bottom: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  min-width: 240px;
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(22, 49, 67, 0.08);
  border: 1px solid #ececec;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(22,49,67,0.15);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}
.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: 12px;
  background: #FFF;
  border-left: 4px solid #F1B24A;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(22,49,67,0.08);
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(22,49,67,0.16);
}
.testimonial-author {
  margin-top: 6px;
  color: #163143;
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  font-size: 1rem;
  color: #38342e;
  padding: 0 0 0 0;
  min-width: 230px;
  line-height: 1.5;
  min-height: 40px;
}
.features-list img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}

/* SERVICE BLOCKS */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.service-block {
  flex: 1 1 250px;
  padding: 30px 22px;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(22,49,67,0.09);
  border: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
  min-width: 220px;
  max-width: 330px;
}
.service-block:hover {
  box-shadow: 0 5px 21px rgba(22,49,67,0.14);
  transform: translateY(-2px) scale(1.012);
}
.service-block h3, .service-block h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  color: #163143;
  font-weight: 700;
}
.service-block p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.service-price {
  color: #F1B24A;
  font-size: 1.05rem;
  margin-top: 6px;
  font-weight: 600;
}

/* ====== PRICING TABLE ====== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(22, 49, 67, 0.09);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 20px;
  text-align: left;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  border-bottom: 1px solid #e6e3dc;
}
.pricing-table th {
  background: #F1B24A;
  color: #fff;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pricing-table td {
  color: #393740;
  font-weight: 400;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ===== MAIN BUTTONS/CTAs ===== */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Georgia, serif;
  background: #163143;
  color: #fff;
  font-size: 1.10rem;
  letter-spacing: 0.04em;
  padding: 13px 34px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(22,49,67,0.06);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  cursor: pointer;
  margin-bottom: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F1B24A;
  color: #163143;
  box-shadow: 0 6px 21px rgba(241,178,74, 0.12);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
}

/* ======= HEADER ======= */
header {
  background: #fff;
  border-bottom: 1px solid #e2dacb;
  padding: 0 0 0 0;
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 16px 16px 16px;
  min-height: 78px;
  gap: 18px;
}
header img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #163143;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1B24A;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
}
.cta-btn {
  margin-left: 18px;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.0rem;
  color: #163143;
  background: #fff;
  border: 2px solid #163143;
  border-radius: 7px;
  padding: 2px 15px 2px 13px;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 20px;
  z-index: 99;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F1B24A;
  color: #fff;
  border-color: #F1B24A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 49, 67, 0.98);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.53,0.01,0,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  box-shadow: 0 6px 30px rgba(22,49,67,0.30);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 26px 22px 14px 22px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F1B24A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 0 0;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 18px 30px 18px 30px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: none;
  transition: background 0.14s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1B24A;
  color: #163143;
}

/* ==== RESPONSIVE HEADER & MENU ==== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
  }
  .cta-btn {
    margin-left: 6px;
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 8px 9px 12px 9px;
    min-height: 54px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========= FOOTER ========= */
footer {
  background: #163143;
  color: #fff;
  padding: 38px 0 18px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-links a {
  color: #f1b24a;
  font-family: 'Montserrat', Georgia, serif;
  font-size:1rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.footer-links a:hover, .footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}
.contact-details {
  background-color: #fffce6;
  font-size: 0.97rem;
  margin-bottom: 14px;
}
.footer-legal {
  background-color: #c8c6c0;
  font-size: 0.94rem;
  margin-top: 14px;
}

@media (min-width: 700px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
  .contact-details {
    margin-bottom: 0;
  }
}

/* ===== FAQ LIST ===== */
.faq-list {
  margin-bottom: 24px;
}
.faq-list dt {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  color: #163143;
  margin-top: 18px;
  margin-bottom: 8px;
  font-size:1.09rem;
}
.faq-list dd {
  margin-left: 16px;
  color: #38342e;
  margin-bottom: 12px;
  font-size: 1rem;
}

/* ======= COOKIE BANNER & MODAL ======= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffef9;
  border-top: 2px solid #F1B24A;
  box-shadow: 0 -1px 14px rgba(22,49,67,0.08);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 1100;
  animation: cookieSlideUp 0.5s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #163143;
  font-size: 1rem;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Georgia, serif;
  padding: 8px 22px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  margin: 0 2px;
  background: #163143;
  color: #fff;
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: #F1B24A;
  color: #163143;
}
.cookie-btn.settings {
  background: #fff;
  color: #F1B24A;
  border: 1px solid #F1B24A;
}
.cookie-btn.reject {
  background: #fff;
  color: #B74242;
  border: 1px solid #B74242;
}
.cookie-btn:hover {
  background: #163143;
  color: #F1B24A;
  box-shadow: 0 2px 10px rgba(22,49,67,0.08);
}
.cookie-btn.accept:hover {
  background: #FFD797;
  color: #163143;
}
.cookie-btn.reject:hover {
  background: #F6CCCC;
  color: #B74242;
}
.cookie-btn.settings:hover {
  background: #F1B24A;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22, 49, 67, 0.85);
  z-index: 1110;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.28s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 34px 22px 28px 22px;
  max-width: 370px;
  width: 96vw;
  box-shadow: 0 7px 44px rgba(22,49,67,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #163143;
  font-size: 1.8rem;
  position: absolute;
  right: 18px;
  top: 8px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F1B24A;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category-name {
  flex: 1;
  font-weight: 600;
  color: #163143;
}
.cookie-category-toggle {
  width: 32px;
  height: 17px;
  border-radius: 22px;
  background: #e8e5df;
  position: relative;
  border: 1px solid #ededed;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-category-toggle[data-enabled='true'] {
  background: #F1B24A;
}
.cookie-category-toggle .toggle-circle {
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5px 3px rgba(22,49,67,0.12);
  transition: transform 0.18s;
}
.cookie-category-toggle[data-enabled='true'] .toggle-circle {
  transform: translateX(13px);
  background: #163143;
}
.cookie-category-desc {
  font-size: 0.95rem;
  color: #54514a;
}
.cookie-category input[type=checkbox] {
  display: none;
}

/* ====== TABLES & LISTS ======= */
table {
  border-collapse: collapse;
  width: 100%;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 10px;
}

/* ===== FORM & CONTACT ===== */
.contact-info {
  margin-bottom: 14px;
  background: #FFF;
  border-left: 4px solid #163143;
  border-radius: 7px;
  padding: 16px 20px;
  box-shadow: 0 2px 7px rgba(22,49,67,0.07);
}

/* ========== MISC LAYOUT =========== */
@media (max-width: 900px) {
  .services-list, .features-list, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.18rem; }
  .section {
    margin-bottom: 33px;
    padding: 24px 5px;
  }
  .features-list{
    flex-direction: column;
    gap: 10px;
  }
  .services-list {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .service-block {
    min-width: 0;
    max-width: initial;
    width: 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid, .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
}

/* ====== PRINT OPTIMIZATION ====== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; font-size: 12pt; }
  .container, .section, .content-wrapper { padding: 0; margin: 0; }
}

/* ======= MICRO-INTERACTIONS ======= */
.card, .service-block, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
  cursor: default;
}
.card:hover, .service-block:hover, .testimonial-card:hover {
  z-index: 3;
  box-shadow: 0 9px 30px rgba(22,49,67,0.13);
}
section {
  transition: box-shadow 0.09s, background 0.09s;
}

/* ======= Z-INDEX LAYERS ======= */
header { z-index: 30; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 1100; }
.cookie-modal { z-index: 1110; }

/* ======= CUSTOM SCROLLBAR ======= */
::-webkit-scrollbar { width: 10px; background: #f5f2ed; }
::-webkit-scrollbar-thumb { background: #dedbd5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #F1B24A; }

/* ========== DEMO DARK TEXT IN TESTIMONIALS ========== */
.testimonial-card p {
  color: #1C2331;
  font-size: 1.04rem;
}

/* ==================== END CSS ==================== */
