/* =============================================================
   SCUDI PERSI - ELEGANT CLASSIC STYLE CSS
   Mobile-first, Flexbox-only layout – NO Grid/Columns
   Brand colors: #445158 (primary), #DEBB99 (secondary), #F8F4EA (accent)
   Fonts: Quicksand (display), Nunito (body), with elegant classic fallbacks
   ============================================================= */

/* RESET & NORMALIZE --------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F8F4EA;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Nunito', 'Georgia', serif;
  color: #445158;
  background: #F8F4EA;
  line-height: 1.7;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #445158;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #725D42;
  text-decoration: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
button, .btn {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
button:focus, .btn:focus {
  outline: 2px solid #DEBB99;
  outline-offset: 2px;
}

/* TYPOGRAPHY ----------------------------------------------------------- */
h1 {
  font-family: 'Quicksand', 'Georgia', serif;
  font-size: 2.2rem;
  color: #2D353A;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-family: 'Quicksand', 'Georgia', serif;
  font-size: 1.65rem;
  color: #445158;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h3 {
  font-family: 'Quicksand', 'Georgia', serif;
  font-size: 1.2rem;
  color: #725D42;
  font-weight: 600;
  margin-bottom: 12px;
}
.text-section ul {
  list-style: disc inside;
}
p, li {
  font-size: 1rem;
  line-height: 1.8;
  color: #445158;
}
strong {
  color: #2D353A;
  font-weight: 700;
}
.tagline {
  color: #725D42;
  font-size: 1.10rem;
  font-style: italic;
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
}

/* LAYOUT: CONTAINER & SECTIONS ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section, section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* FLEXBOX PATTERNS - Mandatory Classes --------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 14px;
  box-shadow: 0 2px 13px 0 rgba(60,52,39,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 330px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(60,52,39,0.15);
  border-color: #DEBB99;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid #DEBB99;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(68,81,88,0.08);
  margin-bottom: 20px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.review-summary {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #F8F4EA;
  color: #445158;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 1.5px 8px 0 rgba(68, 81, 88, 0.06);
}

/* MAIN NAVIGATION ----------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e6e1d8;
  position: relative;
  z-index: 100;
  padding-top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Quicksand', 'Georgia', serif;
  color: #445158;
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: none;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  letter-spacing: 0.01em;
}
header nav a:hover,
header nav a:focus {
  border-color: #DEBB99;
  color: #2D353A;
}

/* MOBILE NAVIGATION --------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #DEBB99;
  color: #445158;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  padding: 4px 14px;
  margin: 0 10px 0 0;
  z-index: 301;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #cfa574;
  color: #2D353A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(39, 44, 49, 0.93);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #F8F4EA;
  border: none;
  font-size: 2.3rem;
  margin: 18px 18px 0 0;
  padding: 8px 14px;
  z-index: 301;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  color: #F8F4EA;
  font-family: 'Quicksand', 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #DEBB99;
  border-color: #DEBB99;
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO & SECTIONS RESPONSIVE ------------------------------------------- */
@media (max-width: 900px) {
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .card,
  .testimonial-card {
    min-width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

/* BUTTONS -------------------------------------------------------------- */
.btn,
.btn-primary {
  display: inline-block;
  min-width: 120px;
  background: #DEBB99;
  color: #2D353A;
  font-family: 'Quicksand', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: 8px;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1.5px 8px 0 rgba(68,81,88,0.07);
  cursor: pointer;
  margin-top: 8px;
}
.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: #cfb083;
  color: #2D353A;
  box-shadow: 0 8px 28px 0 rgba(190,170,132,0.12);
}
.btn[disabled], .btn-primary[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* TABLES --------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 8px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(68,81,88,0.07);
}
th, td {
  padding: 15px 15px;
  text-align: left;
  border-bottom: 1px solid #e6e1d8;
  font-size: 1rem;
}
th {
  background: #DEBB99;
  color: #2D353A;
  font-family: 'Quicksand', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.08rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  table, th, td {
    font-size: 0.93rem;
    padding: 10px 8px;
  }
}

/* LISTS ---------------------------------------------------------------- */
ul li, ol li {
  margin-bottom: 16px;
  padding-left: 0;
  position: relative;
  line-height: 1.8;
}
ul li img, li svg {
  margin-right: 11px;
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 26px;
  margin-top: -5px;
}
section ul {
  margin-top: 4px;
}
/* Custom bullet for section lists */
section ul li:before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #DEBB99;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px;
}
section ul li img {
  margin-right: 7px;
}

/* TESTIMONIALS STYLES -------------------------------------------------- */
.testimonial-card blockquote {
  color: #2D353A;
  font-size: 1.13rem;
  font-family: 'Georgia', serif;
  font-style: italic;
  border: none;
  background: none;
  margin: 0;
  line-height: 1.7;
}
.testimonial-card .cite {
  display: block;
  margin-top: 14px;
  color: #725D42;
  font-size: 1.04rem;
  font-style: normal;
  font-family: 'Quicksand', 'Georgia', serif;
  font-weight: 600;
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: #F8F4EA;
  border-top: 1px solid #e6e1d8;
  padding: 40px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
}
footer nav a {
  color: #725D42;
  font-family: 'Quicksand', 'Georgia', serif;
  text-decoration: none;
  font-size: 1rem;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
footer nav a:hover,footer nav a:focus {
  color: #445158;
  border-color: #DEBB99;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #725D42;
  font-size: 0.98rem;
}
.footer-branding img {
  height: 38px;
  width: auto;
  border-radius: 9px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-branding img {
    height: 30px;
  }
}

/* CONTENT SPACING & ELEGANT SHADOWS ------------------------------------ */
section, .section {
  border-radius: 18px;
  box-shadow: 0 2px 17px 0 rgba(69,81,88,0.06);
}

/* MODALS & OVERLAYS (COOKIE CONSENT) ----------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #445158;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 22px 10px 18px 10px;
  z-index: 9999;
  box-shadow: 0 -5px 38px 0 rgba(34,44,50,0.12);
  font-size: 1rem;
  font-family: 'Nunito', 'Georgia', serif;
  animation: fadeinup-cc 0.5s;
}
@keyframes fadeinup-cc {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .btn,
.cookie-banner .btn-primary {
  margin-top: 0;
  font-size: 1.02rem;
  border-radius: 6px;
  background: #DEBB99;
  color: #2D353A;
  border: none;
  font-family: 'Quicksand', 'Georgia', serif;
  font-weight: 600;
  padding: 10px 22px;
}
.cookie-banner .btn:hover,
.cookie-banner .btn:focus {
  background: #cfa574;
  color: #2D353A;
}
/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 36px) scale(0.97);
  opacity: 0;
  background: #fff;
  color: #445158;
  padding: 32px 24px 28px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 42px 0 rgba(68,81,88,0.14);
  z-index: 10000;
  width: 94vw;
  max-width: 420px;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  font-family: 'Nunito', 'Georgia', serif;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
  animation: fadein-cc-modal 0.45s;
}
@keyframes fadein-cc-modal {
  from { transform: translate(-50%, 36px) scale(0.94); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Quicksand', 'Georgia', serif;
}
.cookie-modal .cookie-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
}
.cookie-modal .cookie-switch label {
  font-size: 1rem;
  font-weight: 600;
  color: #445158;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: #DEBB99;
  width: 21px;
  height: 21px;
}
.cookie-modal input[type="checkbox"]:disabled {
  accent-color: #c2a686;
  filter: grayscale(60%);
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 23px;
}
.cookie-modal .btn,
.cookie-modal .btn-primary {
  padding: 9px 18px;
  font-size: 0.99rem;
  font-family: 'Quicksand', 'Georgia', serif;
  background: #DEBB99;
  color: #2D353A;
}
.cookie-modal .btn:hover,
.cookie-modal .btn:focus {
  background: #cfa574;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px; right: 13px;
  background: none;
  color: #445158;
  border: none;
  font-size: 1.54rem;
  cursor: pointer;
}

/* SMALL SCREENS: COOKIE BANNER/MODAL */
@media (max-width: 503px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 7px 13px 7px;
    font-size: 0.99rem;
    gap: 11px;
  }
  .cookie-banner .cookie-actions {
    gap: 9px;
  }
  .cookie-modal {
    padding: 24px 6px 14px 12px;
    font-size: 0.97rem;
  }
}

/* ANIMATIONS & MICRO-INTERACTIONS ------------------------------------- */
.btn, .btn-primary, .card, .testimonial-card, .cookie-banner .btn, .cookie-modal .btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 24px 0 rgba(68, 81, 88, 0.13);
  border-color: #DEBB99;
}
input, textarea, select {
  border-radius: 7px;
  border: 1px solid #c8bcad;
  padding: 9px 10px;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #DEBB99;
  border-color: #DEBB99;
  background: #F8F4EA;
}

/* UTILITY CLASSES ------------------------------------------------------ */
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.py-2  { padding-top: 16px; padding-bottom: 16px; }
.px-2  { padding-left: 16px; padding-right: 16px; }
.text-center { text-align: center; }

/* Hide visually (for modal overlay background if needed) */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  border: 0; padding: 0; margin: 0;
}

/* REMOVE GRID/COLUMN-related PROPERTIES WARNING! ---------------------- */
/* Confirmed: NO display:grid or columns/column-* or break-inside used. */

/* END CSS */
