/* ===============================
   CALCIARROS DOMOV CSS RESET
=============================== */
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;
  -webkit-font-smoothing: antialiased;
  background: #F7F7F7;
  color: #232323;
}
img,video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  box-shadow: none;
}
button:focus, a:focus {
  outline: 2px solid #232323;
  outline-offset: 2px;
}

/* =============================
   VARIABLES (with fallbacks)
============================= */
:root {
  --brand-primary: #70523D;
  --brand-secondary: #B8AA9B;
  --brand-accent: #E9DBC9;
  --black: #131313;
  --grey-900: #232323;
  --grey-700: #333;
  --grey-500: #555;
  --grey-400: #777;
  --grey-300: #D1CFCC;
  --white: #fff;
  --border-radius: 14px;
  --shadow: 0 3px 24px rgba(25, 25, 25, 0.10), 0 1.5px 6px rgba(0,0,0,0.02);
}

/* =============================
   TYPOGRAPHY
============================= */
@font-face {
  font-family: 'Cormorant Garamond';
  src: local('Cormorant Garamond'), local('CormorantGaramond-Regular');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular');
  font-display: swap;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--white, #fff);
  color: var(--grey-900);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--black);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
p, ul li, ol li, .content-wrapper > span, .content-wrapper > div > span {
  font-size: 1rem;
  color: var(--grey-700);
}
strong, b {
  color: var(--black);
}

/* =============================
   MAIN LAYOUT CONTAINERS
============================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* =============================
   HEADER / NAVIGATION
============================= */
header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  min-height: 70px;
  z-index: 100;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  margin-right: 22px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 16px;
  color: var(--grey-700);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  transition: color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-primary);
}
.btn {
  padding: 10px 28px;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.1;
  border: none;
  text-align: center;
  box-shadow: 0 2px 10px rgba(30,30,30,0.05);
  transition: background 0.20s, color 0.13s, box-shadow 0.23s, border 0.2s;
  display: inline-block;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(30,30,30,0.16);
}
.btn-secondary {
  background: var(--white);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-primary);
  color: var(--white);
}
.btn:active {
  transform: translateY(2px);
}

/* =============================
   BURGER MENU (MOBILE)
============================= */
.mobile-menu-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  border-radius: var(--border-radius);
  position: fixed;
  top: 18px;
  right: 16px;
  width: 46px;
  height: 46px;
  z-index: 1101;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(20,20,20,0.10);
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,36,36,0.96);
  z-index: 1201;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.34s cubic-bezier(.85,0,.28,1), opacity 0.18s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 26px 8px 0;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(20,20,20,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--black);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  margin-top: 22px;
  padding-left: 36px;
  font-size: 1.15rem;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 13px 0;
  width: 100%;
  transition: color 0.18s, background 0.16s;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
  margin-left: -10px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.09);
}

/* =============================
   PAGE SECTIONS GENERAL
============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero-section {
  background: linear-gradient(120deg, var(--white) 70%, var(--brand-accent) 120%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.features-section {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.services-section {
  background: #FAFAFA;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.about-section, .contact-section, .legal-section, .confirmation-section {
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.cta-section {
  background: var(--grey-900);
  color: var(--white);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-section h2,
.cta-section p {
  color: var(--white);
}

/* =============================
   CARDS, LISTS, FLEX ARRANGEMENTS
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 270px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 38px rgba(60,60,60,0.13);
  transform: translateY(-3px) scale(1.015);
  z-index: 2;
}
.feature-grid, .feature-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}
.feature-grid li, .feature-list li, .service-list li {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 18px 20px;
  flex: 1 1 250px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.feature-grid li:hover, .feature-list li:hover, .service-list li:hover {
  box-shadow: 0 8px 28px rgba(88,88,88,0.13);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img, .feature-list img {
  width: 38px; height: 38px;
  margin-bottom: 9px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price {
  background: var(--brand-secondary);
  color: var(--black);
  padding: 2px 14px;
  border-radius: 12px;
  font-size: .97em;
  font-weight: 600;
  margin-left: 15px;
  letter-spacing: 0.02em;
}
.category-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.category-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-filters li {
  color: var(--brand-primary);
  font-weight: 600;
  padding: 2px 12px;
  border: 1.2px solid var(--brand-primary);
  border-radius: 14px;
  background: var(--white);
  transition: background 0.18s, color 0.14s;
}
.category-filters li:hover {
  background: var(--brand-primary);
  color: var(--white);
}
.material-guides {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 16px 22px;
  margin-top: 16px;
  box-shadow: 0 1.5px 7px rgba(30,30,30,0.08);
}

/* =============================
   SECTION/TEXT IMAGE (if used)
============================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =============================
   TESTIMONIALS
============================= */
.testimonial-section {
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(80,80,80,0.07);
  padding: 20px 30px 20px 34px;
  margin-bottom: 20px;
  max-width: 670px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  font-size: 1.09rem;
}
.testimonial-card p {
  color: var(--grey-700);
  font-style: italic;
}
.testimonial-card .reviewer {
  color: var(--brand-primary);
  font-size: 0.99em;
  font-weight: bold;
  letter-spacing: 0.01em;
  align-self: flex-end;
  margin-top: 10px;
}
/* Good contrast for testimonials, always dark text on light bg! */

/* =============================
   SPECIAL SECTIONS (About, Contact, Legal)
============================= */
.personal-consultation-info, .contact-form-info, .response-time-info, .map-embed {
  display: flex;
  align-items: center;
  background: var(--white);
  border-left: 4px solid var(--brand-primary);
  padding: 11px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  box-shadow: 0 1.5px 6px rgba(50,50,50,0.08);
  color: var(--grey-900);
  font-size: 1rem;
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--grey-900);
  color: var(--white);
  margin-top: 80px;
  padding: 44px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
}
.footer-brand img {
  width: 42px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: var(--white);
  font-size: 1rem;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
}

/* =============================
   COOKIES CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--black);
  color: var(--white);
  z-index: 1300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 22px 22px 24px;
  font-size: 1rem;
  box-shadow: 0 -2px 16px rgba(30,30,30,0.20);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.85,0,.28,1), opacity 0.21s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn {
  padding: 8px 20px;
  font-size: 0.98rem;
  border-radius: 8px;
}
.cookie-banner .btn-primary {
  background: var(--white);
  color: var(--black);
  border: none;
}
.cookie-banner .btn-primary:hover { background: var(--brand-primary); color: var(--white);}
.cookie-banner .btn-secondary {
  background: var(--brand-primary);
  color: var(--white);
  border: 1.5px solid var(--brand-primary);
}
.cookie-banner .btn-secondary:hover { background: var(--white); color: var(--brand-primary);}
.cookie-banner .btn-tertiary {
  background: transparent;
  color: var(--brand-secondary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-banner .btn-tertiary:hover { background: var(--grey-700); color: var(--white); border-color: var(--grey-700);}

/* =============================
   COOKIE PREFERENCES MODAL
============================= */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,24,24,0.7);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s cubic-bezier(.87,0,.18,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--white);
  color: var(--black);
  padding: 38px 30px 28px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 44px rgba(50,50,50,0.18);
  min-width: 340px; max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.06rem;
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--brand-primary);
  width: 20px; height: 20px;
}
.cookie-category .cookie-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}
.cookie-category.essential .cookie-label {
  color: var(--grey-700);
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-modal .btn {
  font-size: .99rem; padding: 8px 22px;
  border-radius: 8px;
}

/* Close Button for modal in top right */
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 21px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cookie-modal .modal-close:hover { background: var(--black);}

/* =============================
   RESPONSIVE (MOBILE FIRST)
============================= */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid, .feature-list, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .btn.btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  header {
    min-height: 64px;
    padding: 0 8px;
  }
  .container {
    padding-left: 6px; padding-right: 6px;
  }
  .section, section {
    padding: 27px 8px;
    margin-bottom: 40px;
  }
  .hero-section, .features-section, .services-section, .about-section, .contact-section, .legal-section, .confirmation-section, .testimonial-section, .cta-section {
    border-radius: 0;
    box-shadow: none;
    padding-left: 0; padding-right: 0;
  }
  .footer-brand img {
    width: 32px;
  }
}
@media (max-width: 670px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .cookie-modal .modal-content { min-width: 92vw; padding: 20px 7vw; }
}
@media (max-width: 520px) {
  .feature-grid li, .feature-list li, .service-list li {
    min-width: 140px;
    padding: 19px 6px 19px 12px;
  }
  .testimonial-card {
    padding: 16px 10px 16px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 8px 14px 10px;
    font-size: 0.97rem;
  }
}

/* ===============
   MISC
=============== */
a {
  transition: color 0.16s, border-color 0.16s, background 0.17s;
}
a:hover, a:focus {
  color: var(--brand-primary);
  text-decoration: underline;
}
::-webkit-scrollbar {
  width: 9px; height: 9px;
  background: var(--brand-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 8px;
}
/* Consistency for visual alignment */
.card + .card,
.feature-list li + li,
.feature-grid li + li,
.service-list li + li,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* ===============
   ANIMATIONS
=============== */
.btn, .footer-nav a, .main-nav a, .category-filters li, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner .btn, .cookie-modal .btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.15s, border 0.13s;
}
.section, .card, .cta-section, .cookie-banner, .testimonial-card, .feature-grid li, .feature-list li, .service-list li {
  transition: box-shadow 0.26s, transform 0.16s;
}

/* Prevent content overlap everywhere */
.card, .feature-grid li, .feature-list li, .service-list li, .testimonial-card {
  z-index: 1;
}

/* ===============
   Z-INDEX LAYERING
=============== */
header { z-index: 100; }
.mobile-menu { z-index: 1201; }
.cookie-banner { z-index: 1300; }
.cookie-modal { z-index: 1400; }

/* Ensure minimum spacing between all cards and sections */
.card, .feature-grid li, .feature-list li, .service-list li, .testimonial-card {
  margin-bottom: 20px;
}
.section, section {
  margin-bottom: 60px;
}

/* =============================
   PRINT STYLES (Basic)
============================= */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  header, nav, .mobile-menu-toggle, .mobile-menu, footer, .cookie-banner, .cookie-modal { display: none !important; }
  .container { max-width: none !important; padding: 0 !important; }
  section, .section { page-break-inside: avoid !important; }
}
