/* -------------------- CSS RESET & 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, 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 {
  line-height: 1.5;
  min-height: 100vh;
  background: #F4ECE3;
  color: #0F4458;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s, color 0.2s;
}
:focus {
  outline: 2px solid #B4975A;
  outline-offset: 2px;
}

/* -------------------- FONT IMPORTS -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Lato', Arial, sans-serif;
  background: #F4ECE3;
  color: #0F4458;
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #0F4458;
  line-height: 1.15;
}
h1 {font-size: 2.5rem; margin-bottom: 18px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.4rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1.19rem;}
p, .subheadline {
  font-size: 1.125rem;
  color: #073242;
  margin-bottom: 16px;
}
strong {font-weight: bold;}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

/* -------------------- LAYOUT CONTAINERS -------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 10px;
  }
}

/* -------------------- HEADER & NAVIGATION -------------------- */
header {
  background: linear-gradient(90deg, #F4ECE3 60%, #B4975A15 100%);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 2px 12px 0 rgba(15,68,88,0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.main-nav > a img {
  height: 46px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav ul li a {
  font-size: 1rem;
  padding: 8px 4px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  border-radius: 4px;
  transition: color 0.2s, background 0.15s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #B4975A22;
  color: #B4975A;
}
.btn-primary {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #F4ECE3;
  background: linear-gradient(90deg, #0F4458 70%, #B4975A 100%);
  border: none;
  border-radius: 100px;
  padding: 12px 34px;
  box-shadow: 0 6px 24px 0 #0F445822;
  margin-left: 24px;
  display: inline-block;
  transition: background 0.3s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #B4975A 0%, #0F4458 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 10px 32px 0 #0F445838;
}

/* Responsive Navigation */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #B4975A11;
  color: #0F4458;
  border-radius: 50%;
  padding: 6px 13px;
  margin-left: auto;
  transition: background 0.2s, color 0.2s;
  z-index: 1030;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #B4975A33;
  color: #B4975A;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 290px;
  background: #F4ECE3;
  box-shadow: -8px 0 36px 2px #0F445833;
  z-index: 1102;
  padding: 32px 16px 16px 28px;
  transform: translateX(106%);
  transition: transform 0.33s cubic-bezier(0.33,1,0.68,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #B4975A11;
  color: #0F4458;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B4975A33;
  color: #B4975A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.09rem;
  font-weight: 700;
  color: #0F4458;
  padding: 11px 8px 11px 0;
  border-radius: 4px 0 0 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B4975A18;
  color: #B4975A;
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 12px;
  }
  .btn-primary {
    margin-left: 12px;
    padding: 10px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-menu {
    width: 100vw;
    padding-left: 15vw;
    padding-right: 7vw;
  }
}

/* -------------------- HERO SECTION -------------------- */
.hero {
  background: linear-gradient(114deg, #B4975A25 0%, #F4ECE3 70%);
  padding-top: 54px;
  padding-bottom: 54px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  gap: 16px;
  align-items: flex-start;
  max-width: 680px;
  margin-left: 0;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.35em;
  color: #0F4458;
  letter-spacing: 0.01em;
}
.hero .subheadline {
  color: #073242;
  font-weight: 400;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
    min-height: 370px;
  }
  .hero h1 { font-size: 3.5rem; }
}

/* -------------------- FLEXBOX LAYOUTS -------------------- */
.features ul,
.services ul,
.policy ul,
.about ul,
.contact ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features ul {
  padding-top: 18px;
}
.features li,
.services li,
.about li,
.contact li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.features li img,
.contact li img {
  margin-right: 10px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Mandatory spacing between cards and containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 19px 0 #0F445818;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 40px 0 #B4975A28;
  outline: 1.5px solid #B4975A4a;
  transform: translateY(-2px) scale(1.01);
}
.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: 20px;
    align-items: flex-start;
  }
}

/* Testimonial cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 #0F445814;
  margin-bottom: 20px;
  flex-direction: column;
}
.testimonial-card p {
  color: #0F4458;
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #B4975A;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.testimonials .content-wrapper {
  gap: 12px;
}

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

/* -------------------- SERVICES LISTINGS -------------------- */
.services ul {
  gap: 24px;
  margin-bottom: 18px;
}
.services li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 19px 0 #B4975A18;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.services h3 {
  color: #0F4458;
}
.price, .service-price strong {
  color: #B4975A;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 6px;
}
.service-price {
  background: #F4ECE3;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 #B4975A22;
  padding: 14px 18px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.benefits-list {
  margin-top: 8px;
  margin-bottom: 1em;
}
.benefits-list li {
  align-items: center;
  font-size: 1rem;
}
.benefits-list img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* -------------------- ABOUT & POLICY SECTIONS -------------------- */
.about .text-section,
.policy .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section ul {
  margin-top: 8px;
  gap: 12px;
}
.text-section li {
  font-size: 1.05rem;
  color: #0F4458;
}
blockquote {
  border-left: 4px solid #B4975A;
  padding-left: 18px;
  font-style: italic;
  color: #0F4458;
  background: #F4ECE3;
  margin: 20px 0;
}

/* -------------------- CONTACT SECTION -------------------- */
.contact .text-section ul {
  gap: 14px;
}
.location-map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}
.location-map img {
  width: 24px;
  height: 24px;
  opacity: 0.67;
}
.location-map span {
  font-size: .98rem;
  color: #0F4458;
}

/* -------------------- TABLE -------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 2px 14px 0 #B4975A15;
  border-radius: 12px;
  margin: 12px 0 26px 0;
  overflow: hidden;
  font-size: 1rem;
}
th, td {
  padding: 13px 16px;
  text-align: left;
}
th {
  background: #F4ECE3;
  color: #0F4458;
}
td {
  color: #0F4458;
  border-top: 1px solid #F4ECE3;
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #0F4458;
  color: #fff;
  padding-top: 30px;
  padding-bottom: 24px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  transition: color 0.18s, opacity 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #B4975A;
  opacity: 1;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: #fff;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline dotted;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: center;
}
.footer-social a img {
  width: 29px;
  height: 29px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
}

@media (max-width: 600px) {
  .footer-menu, .footer-social {
    gap: 12px;
  }
}

/* -------------------- COOKIE CONSENT BANNER -------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #F4ECE3;
  color: #0F4458;
  box-shadow: 0 -2px 16px 0 #0F445828;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px 16px;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.29s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
  justify-content: center;
}
.btn-cookie {
  border-radius: 24px;
  padding: 10px 28px;
  border: none;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #B4975A;
  color: #fff;
  transition: background 0.18s, color 0.15s, box-shadow 0.18s;
  cursor: pointer;
  margin: 0 4px;
  box-shadow: 0 2px 8px 0 #B4975A25;
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #0F4458;
  color: #fff;
}
.btn-cookie.settings {
  background: #fff;
  color: #B4975A;
  border: 1.5px solid #B4975A55;
}
.btn-cookie.settings:hover {
  background: #B4975A11;
  color: #0F4458;
}

/* -------------------- COOKIE MODAL -------------------- */
.cookie-modal {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 1120;
  background: #fff;
  max-width: 98vw;
  width: 420px;
  border-radius: 18px;
  box-shadow: 0 8px 44px 2px #0F445880;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.3s, transform 0.32s;
  pointer-events: auto;
  font-family: 'Lato', Arial, sans-serif;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translateX(-50%) scale(0.94);
  pointer-events: none;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #0F4458;
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 16px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 28px;
  border: 2px solid #B4975A66;
  border-radius: 17px;
  background: #F4ECE3;
  position: relative;
  cursor: pointer;
  transition: border 0.19s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  height: 20px;
  width: 20px;
  background: #B4975A;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.59, 1.48, 0.56, 1), background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  transform: translateX(18px);
  background: #0F4458;
}
.cookie-toggle.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  font-size: 1rem;
}
@media (max-width: 520px) {
  .cookie-modal {
    width: 96vw;
    padding: 22px 7vw 13px 7vw;
  }
}

/* -------------------- MICROS & TRANSITIONS -------------------- */
.btn-primary,
.btn-cookie,
.card,
.testimonial-card,
.services li,
.mobile-menu,
.mobile-menu-toggle {
  transition: box-shadow 0.2s, color 0.16s, background 0.25s, transform 0.18s;
}
.card:hover, .btn-primary:hover,
.btn-cookie:hover, .service-price:hover {
  box-shadow: 0 12px 40px 0 #B4975A25, 0 2px 6px 0 #0F445814;
}

/* -------------------- UTILITY CLASSES & HELPERS -------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.center { text-align: center; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }

/* -------------------- RESPONSIVE LAYOUTS -------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .features ul, .services ul, .policy ul {
    gap: 16px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 720px) {
  .content-wrapper {
    gap: 13px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 6px;
  }
  table th, table td {
    font-size: 0.99rem;
    padding: 9px 8px;
  }
}
@media (max-width: 580px) {
  .testimonial-card,
  .card,
  .services li {
    padding: 11px 7px;
    font-size: 1rem;
  }
  .btn-primary,
  .btn-cookie {
    padding: 9px 14px;
    font-size: .96rem;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* -------------------- ACCESSIBLE HIDE -------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* --------------- END (CSS - Vita Serenissima) --------------- */
