/* ===== CSS RESET & NORMALIZE ===== */
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,main,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,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FB;
  color: #232323;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol,ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

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

:root {
  --color-primary: #1A2233;
  --color-secondary: #D4AF37;
  --color-accent: #F8F9FB;
  --color-black: #232323;
  --color-white: #fff;
  --color-muted: #eee;
  --color-grey: #555;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

/* ===== BASE TYPOGRAPHY & LAYOUT ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-black);
  background: var(--color-accent);
}

h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
h4,h5,h6 {
  font-family: var(--font-body);
  font-weight: 700;
}

p,li,th,td {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-black);
}
strong {
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(26,34,51,0.06);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

ul,ol {
  margin-bottom: 24px;
  padding-left: 22px;
  list-style: disc inside;
}
ul > li, ol > li {
  margin-bottom: 8px;
}

/* ==== HERO SECTION ==== */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0 48px 0;
  border-bottom: 3px solid var(--color-secondary);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  gap: 18px;
}
.hero h1, .hero h2, .hero h3 {
  color: var(--color-white);
}
.hero p {
  font-size: 1.18rem;
  color: #EAEAEA;
}

/* ===== NAVIGATION ===== */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1.5px solid #eaeaea;
  box-shadow: 0 2px 10px 0 rgba(26,34,51,0.08);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 28px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
header nav a:not(.cta-button):hover {
  color: var(--color-secondary);
  background: rgba(212,175,55,0.08);
}

.cta-button {
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 8px 26px 8px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 18px 0 rgba(212,175,55,0.06);
  letter-spacing: 0.02em;
  border: 2px solid var(--color-secondary);
  margin-left: 6px;
  position: relative;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  z-index: 2;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 24px 0 rgba(212,175,55,0.12);
  outline: none;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 50;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(26,34,51,0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(.7,.2,.17,1);
  box-shadow: 0 8px 52px 0 rgba(26,34,51,0.26);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: none;
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 101;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #222;
  color: var(--color-white);
}
.mobile-nav {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 140px 38px 0 38px;
  gap: 22px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.22rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212,175,55,0.16);
  width: 100%;
  transition: color 0.16s, border 0.18s;
}
.mobile-nav a:hover {
  color: var(--color-secondary);
  border-bottom: 1.5px solid var(--color-secondary);
}

/* Hide navigation on mobile, show toggle */
@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====== FLEX SECTIONS - MANDATORY PATTERNS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(26,34,51,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 0 285px;
  transition: box-shadow 0.16s, border 0.18s;
  border: 1.3px solid #f1f1f1;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(26,34,51,0.13);
  border: 1.3px solid var(--color-secondary);
}

.content-grid, .feature-grid, .team-list, .service-grid, .icon-highlights, .step-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: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(26,34,51,0.10);
  margin-bottom: 24px;
  border-left: 5px solid var(--color-secondary);
  flex-direction: column;
}
.testimonial-card p {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card img {
  width: 23px;
  height: 23px;
  display: inline-block;
  margin-right: 1px;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-list > div {
  background: var(--color-accent);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 9px 0 rgba(26,34,51,0.06);
}

/* ====== FEATURE BLOCKS & GRIDS ====== */
.feature-grid > div, .service-grid > div, .team-list > div {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(26,34,51,0.04);
  padding: 30px 20px;
  flex: 1 1 260px;
  min-width: 235px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid #f2f2f2;
  transition: box-shadow 0.14s, border 0.15s;
}
.feature-grid > div:hover, .service-grid > div:hover {
  box-shadow: 0 6px 22px 0 rgba(212,175,55,0.14);
  border: 1px solid var(--color-secondary);
}
.feature-grid img, .service-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
}
.team-list > div h3 {
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.icon-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.icon-highlights > div {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  border-radius: 14px;
  padding: 12px 20px;
  gap: 10px;
  font-weight: 500;
  color: var(--color-primary);
}
.icon-highlights img {
  width: 26px;
  height: 26px;
}

/* ========== TABLES (Flotta Table) ========== */
table {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1px 7px 0 rgba(26,34,51,0.05);
  border-radius: 8px;
  overflow: hidden;
  margin: 18px 0 28px 0;
}
th, td {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
}
th {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-secondary);
}
td {
  border-bottom: 1px solid #eee;
}
tr:last-child td {
  border-bottom: none;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0 25px 0;
  margin-top: 70px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.utility-footer {
  margin-top: 8px;
  gap: 8px;
}
footer a {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color 0.18s, text-decoration 0.16s;
}
footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--color-white);
  font-size: 1rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  vertical-align: middle;
}

/* ========== COOKIE CONSENT (banner & modal) ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-white);
  border-top: 2.5px solid var(--color-secondary);
  color: var(--color-primary);
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -2px 21px 0 rgba(26,34,51,0.15);
  z-index: 1100;
  animation: cookie-in 0.5s cubic-bezier(.23,.9,.32,1.14);
}
@keyframes cookie-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-message {
  font-size: 1rem;
  text-align: center;
  color: var(--color-primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px;
  padding: 7px 24px;
  margin: 0 4px;
  border: 2px solid var(--color-secondary);
  background: var(--color-white);
  color: var(--color-primary);
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject {
  color: var(--color-grey);
  background: #f3f3f3;
  border: 2px solid #dfdfdf;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fbeedb;
}
.cookie-btn.settings {
  background: #f8f6ef;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: var(--color-secondary);
  background: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 97vw;
  width: 400px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 8px 54px 0 rgba(26,34,51,0.19);
  z-index: 1120;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  padding: 34px 24px 26px 24px;
  gap: 24px;
  animation: cookie-modal-in 0.5s cubic-bezier(.39,.61,.64,1.14);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translate(-50%,30%); }
  100% { opacity: 1; transform: translate(-50%,-50%); }
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: #f3f3f5;
  border-radius: 999px;
  margin-right: 8px;
  border: 1.4px solid var(--color-secondary);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
.cookie-modal .cookie-switch input[type=checkbox] { display: none; }
.cookie-modal .cookie-switch:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 19px;
  height: 19px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: left 0.16s, background 0.13s;
}
.cookie-modal .cookie-switch input[type=checkbox]:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .cookie-switch input[type=checkbox]:checked ~ .cookie-modal .cookie-switch:before {
  background: var(--color-primary);
}
.cookie-modal .cookie-switch input[type=checkbox]:checked ~ .slider:before {
  left: 20px;
  background: var(--color-primary);
}

.cookie-modal .cookie-switch .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f3f3f5;
  border-radius: 999px;
  transition: background 0.18s;
}
.cookie-modal .cookie-switch input[type=checkbox]:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .cookie-switch .slider:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 19px;
  height: 19px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: left 0.16s, background 0.13s;
}
.cookie-modal .cookie-switch input[type=checkbox]:checked + .slider:before {
  left: 20px;
  background: var(--color-primary);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
}

.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ======= BUTTONS ======= */
button, .button {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 22px;
  padding: 9px 26px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(212,175,55,0.09);
  transition: background 0.15s, color 0.13s, box-shadow 0.15s;
}
button:hover, .button:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 18px 0 rgba(212,175,55,0.21);
  outline: none;
}
button:focus, .button:focus {
  outline: 2px solid var(--color-secondary);
}

/* ======= LINKS ======= */
a {
  transition: color 0.14s, background 0.13s, border 0.15s;
}
a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
  }
  .content-grid, .feature-grid, .team-list, .service-grid, .icon-highlights, .step-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 8px;
  }
  .hero {
    padding: 40px 0 32px 0;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 7px 8px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.09rem; }
  .footer-contact {
    font-size: 0.95rem;
    gap: 7px;
  }
  .mobile-menu-toggle {
    right: 10px;
    top: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .mobile-menu-close {
    font-size: 1.6rem;
    right: 16px;
    top: 12px;
    width: 33px;
    height: 33px;
  }
  .mobile-nav {
    padding: 90px 18px 0 18px;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section {
    margin-bottom: 28px;
    padding: 12px 2px;
  }
  .card, .feature-grid > div, .service-grid > div, .team-list > div, .testimonial-card {
    padding: 15px 10px;
    min-width: unset;
  }
  .icon-highlights > div {
    padding: 8px 10px;
    font-size: 0.97rem;
  }
  .hero {
    padding: 22px 0 16px 0;
  }
  .hero .content-wrapper {
    gap: 10px;
  }
  .cookie-banner {
    padding: 13px 4px 14px 4px;
  }
  .cookie-modal {
    padding: 22px 7px 15px 7px;
    min-width: 215px;
    width: 95vw;
  }
}

/* ======= UTILITIES ======= */
.muted, .text-muted {
  color: var(--color-grey);
}
.shadow-sm {
  box-shadow: 0 1px 7px 0 rgba(26,34,51,0.07);
}
.rounded {
  border-radius: 14px;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.align-start {
  align-items: flex-start;
}
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-20 { margin-top: 20px; }
.mb-24 { margin-bottom: 24px; }

/* ==== VISUAL HIERARCHY - LUXURY/PREMIUM DETAILS ==== */
h1, h2, h3 {
  letter-spacing: 0.02em;
}
.cta-button, .cookie-btn, button {
  box-shadow: 0 3px 16px rgba(212,175,55,0.08);
  border-width: 2px;
}
.card, .feature-grid > div, .service-grid > div {
  border: 1px solid #ede7c6;
}

/* Subtle gold line accent for premium sections */
.section > .container > .content-wrapper > h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.section > .container > .content-wrapper > h2:after {
  content: '';
  width: 65px;
  height: 3px;
  background: var(--color-secondary);
  display: block;
  border-radius: 2px;
  margin-top: 6px;
}

/* ============= INTERACTIONS & MICRO-ANIMATIONS ============= */
a, .cta-button, button, .cookie-btn, .card, .feature-grid > div, .service-grid > div {
  transition: background 0.16s, color 0.13s, box-shadow 0.13s, border 0.18s, transform 0.10s;
}
.card:hover, .feature-grid > div:hover, .service-grid > div:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px 0 rgba(212,175,55,0.10);
}

.cta-button:active, button:active {
  transform: scale(0.98);
}

::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ============ COLOR CONTRAST FOR TESTIMONIAL/REVIEW CARDS ============ */
.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card p, .testimonial-card strong {
  color: var(--color-primary);
}

/* ========== Z-INDEX LAYERING ========= */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 999 !important;
}

/* ========== PRINT STYLES ========= */
@media print {
  nav, header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
}
