/* =======================
   Casa Magia Style Sheet
   Geometric Structured Design
   ======================= */

/*
 * CSS RESET & NORMALIZE
 * ------------------------------------------------
 */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F3EF;
  color: #222;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #25605A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #C6793E;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #25605A;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
  line-height: 1.18;
}
h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 1em; }
strong { font-weight: 600; }

/* ===============
   COLOR VARIABLES
   =============== */
:root {
  --primary: #25605A;
  --secondary: #F5F3EF;
  --accent: #C6793E;
  --white: #fff;
  --light: #F5F3EF;
  --muted: #a9b2b0;
  --text: #222;
  --heading: #25605A;
  --shadow: rgba(37,96,90,0.08);
  --radius: 16px;
  --radius-small: 8px;
  --radius-round: 100px;
}

/* ===========
   CONTAINER
   =========== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper, .text-section {
  margin-top: 0.75em;
}

/* ==============================*/
/*         HEADER & NAV          */
/* ==============================*/
header {
  width: 100%;
  background: var(--white);
  border-bottom: 2.5px solid var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 18px;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 56px;
  margin-right: 42px;
}
.logo-link img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-small);
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
.cta.primary {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  padding: 11px 34px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(37,96,90,0.10);
  margin-left: 20px;
  transition: background 0.18s, box-shadow 0.21s;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 28px 0 rgba(198,121,62,0.18);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--primary);
  padding: 6px 15px 6px 15px;
  border-radius: var(--radius-small);
  cursor: pointer;
  display: none;
  transition: background 0.18s;
  position: relative;
}
.mobile-menu-toggle:focus {
  outline: 2.5px solid var(--primary);
  background: var(--light);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,96,90,0.98);
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.37s cubic-bezier(0.8,0,0.17,1), opacity 0.22s;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--white);
  position: absolute;
  top: 24px;
  right: 28px;
  cursor: pointer;
  z-index: 201;
  padding: 8px;
  border-radius: var(--radius-round);
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 95px;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
/* Mobile nav z-index fix */
header {
  z-index: 8;
}

/* ===============
   HERO SECTION
   =============== */
.hero {
  background: var(--secondary);
  min-height: 330px;
  padding: 40px 0 32px 0;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  width: 100%;
  max-width: 640px;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--primary);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 0.3em;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 0.7em;
  color: #234b44;
}
.hero .cta {
  margin-top: 14px;
  align-self: flex-start;
}

/* ===============
   SECTIONS
   =============== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border: none;
  border-radius: 0;
}
section:last-of-type {
  margin-bottom: 0;
}
.features,
.about,
.services,
.testimonials,
.contact,
.team,
.legal,
.confirmation {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px 0 var(--shadow);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.features ul, .about ul, .services ul, .contact ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features ul li, .services ul li, .about ul li, .contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 1.08rem;
  font-family: 'Lato', Arial, sans-serif;
  padding: 16px 0 8px 0;
  border-bottom: 1px solid #e8ebea;
}
.features ul li:last-child, .about ul li:last-child, .services ul li:last-child, .contact ul li:last-child {
  border-bottom: none;
}
.features ul img, .services ul img, .about ul img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: var(--accent);
  padding: 6px;
  margin-right: 8px;
  box-shadow: 0 2px 12px rgba(198,121,62,0.07);
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonials .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 28px;
  background: #FCFCF9;
  border-radius: var(--radius);
  border: 1.5px solid #ded7cf;
  box-shadow: 0 2px 16px rgba(37,96,90,0.06);
  transition: box-shadow 0.25s, transform 0.22s;
  color: #222;
  max-width: 350px;
  margin-bottom: 20px;
  min-width: 260px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: translateY(-4px) scale(1.033);
  box-shadow: 0 8px 34px rgba(198,121,62,0.14);
}
.testimonial-card blockquote {
  border-left: 9px solid var(--accent);
  margin: 0 0 0 0;
  padding-left: 18px;
  font-size: 1.13rem;
  line-height: 1.45;
  color: #2b291d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  letter-spacing: 0.01em;
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  margin-top: 4px;
  font-weight: 600;
}

/* ===============
   TEAM SECTION
   =============== */
.team .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.team .text-section h3 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}
.team .text-section p {
  color: #38524c;
  font-size: 1.04rem;
  margin-bottom: 18px;
}

/* ===============
   CARD CONTAINERS, FEATURE ITEMS, ETC
   =============== */
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: var(--white);
  border: 1.2px solid #e7e5e0;
  border-radius: var(--radius);
  box-shadow: 0 2px 17px rgba(37,96,90,0.07);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.23s;
  min-width: 220px;
  flex: 1 1 320px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px rgba(198,121,62,0.13);
  transform: translateY(-3px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card h3 {
  color: var(--primary);
  font-size: 1.18rem;
}
.card p {
  font-size: 1.03rem;
  color: #2b3933;
}

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

/* ===============
   BUTTONS, LINKS, CTA
   =============== */
button,
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.09rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: var(--white);
  letter-spacing: 0.035em;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  box-shadow: 0 2px 13px var(--shadow);
  display: inline-block;
}
.cta.primary {
  background: var(--primary);
  color: var(--white);
}
.cta.secondary {
  background: var(--accent);
  color: var(--white);
}
.cta:hover, .cta:focus {
  background: #234B44;
  color: #fff;
  box-shadow: 0 7px 21px rgba(37,96,90,0.16);
}
.cta:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 -2px 16px rgba(37,96,90,0.09);
  padding: 0;
  margin: 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 34px;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 25px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--white);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  position: relative;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  color: #dae7e6;
  font-size: 0.98rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-round);
  padding: 7px;
  transition: background 0.17s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--accent);
}
.footer-social img {
  width: 30px;
  height: 30px;
  filter: brightness(0.8);
}
.footer-logo img {
  width: 60px;
  height: 60px;
  margin-top: -8px;
  filter: drop-shadow(0 1px 8px #02261014);
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #211a0e;
  box-shadow: 0 -2px 28px rgba(37,96,90,0.10);
  padding: 26px 24px 18px 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 3px solid var(--accent);
  animation: bannerIn 0.41s cubic-bezier(0.85,0.02,0.27,1.08);
}
@keyframes bannerIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 2px;
  color: #232f29;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 2px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-small);
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: 0 2px 12px rgba(198,121,62,0.08);
}
.cookie-btn.accept {
  background: var(--primary);
}
.cookie-btn.reject {
  background: #eee;
  color: #c6793e;
  border: 1.5px solid #c6793e;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #25605A;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3500;
  background: rgba(37,96,90,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 44px rgba(37,96,90,0.12);
  padding: 38px 30px;
  min-width: 320px;
  max-width: 99vw;
  color: #222;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.32rem;
}
.cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.07rem;
}
.cookie-cat input[type='checkbox'] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-cat.essential {
  color: var(--muted);
  font-style: italic;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  border-radius: var(--radius-round);
  transition: background 0.16s;
  padding: 4px 10px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5F3EF;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1024px) {
  header .container { gap: 10px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .hero .content-wrapper { max-width: 98vw; }
  .testimonial-card { max-width: 360px; min-width: 220px; }
}
@media (max-width: 850px) {
  .footer-logo img { width: 42px; height: 42px; }
  .footer-social img { width: 25px; height: 25px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 27px 0 20px 0;
    min-height: 156px;
  }
  section {
    margin-bottom: 36px;
    padding: 24px 7px;
    border-radius: var(--radius-small);
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .content-wrapper,
  .text-section,
  .features ul, .about ul, .services ul, .contact ul {
    gap: 16px;
  }
  .features ul img, .services ul img { width: 30px; height: 30px; }
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer-logo { display: none; }
  .footer-nav { gap: 14px; }
  .footer-contact { margin-bottom: 6px; }
  .cookie-modal-content { padding: 28px 8px; min-width: 80vw; }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .cookie-banner {
    padding: 13px 7px 14px 7px;
  }
  .cookie-modal-content { padding: 14px 5px; }
  .hero .container { padding-left: 3px; padding-right: 3px; }
}
@media (max-width: 480px) {
  .footer-nav { flex-direction: column; gap: 6px; }
  footer .container { padding-bottom: 13px; }
}
/* ===============
   FINAL UTILITY CLASSES
   =============== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 12px !important; }
.mb-1 { margin-bottom: 12px !important; }
.mb-2 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.rounded { border-radius: var(--radius) !important; }
.shadow { box-shadow: 0 5px 30px var(--shadow) !important; }

/* ===============
   GEOMETRIC SVG DECORATIVE ELEMENT STYLES
   =============== */
.decorative-geo {
  position: absolute;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}
/* targeting cards with optional geometric SVG backgrounds */
.card .decorative-geo {
  left: 60%;
  top: -8px;
}

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