/* Global */
:root{
  --primary-blue:#0B6E6F;
  --primary-teal:#00A6A6;
  --primary-green:#2CB67D;
  --accent-dark:#052826;
  --bg:#f7fbfb;
  --text:#0b2f2e;
  --muted:#6b8b8a;
  --radius:12px;
  --bg-offset:0px;
  --primary-bg: #fffdf9;
}

/* Ensure page fills viewport so fixed background is visible everywhere */
html, body {
  height: 100%;
  min-height: 100%;
  background-color: var(--primary-bg);
  /* Page-wide background image to ensure it reaches the bottom of long pages */
  background-image: linear-gradient(135deg, rgba(11,110,111,0.10), rgba(0,166,166,0.06)), url("alma backround.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}
#music-btn {
  background-color: #b22222; /* deep red */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  position: fixed; /* keeps it visible */
  top: 20px;       /* adjust placement */
  right: 20px;     /* adjust placement */
  z-index: 1000;   /* ensures it’s above other elements */
}


/* Decorative full-viewport background layer used for subtle parallax */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0; /* place above body background but behind content */
  pointer-events: none;
  will-change: auto;
  transform: none; /* static background */
  /* primary decorative image (project file) with a light overlay */
  background-image:
    linear-gradient(135deg, rgba(11,110,111,0.18), rgba(0,166,166,0.12)),
    url("alma backround.png");
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center top;
  background-blend-mode: overlay;
  opacity: 1;
}

/* Make sure content sits above the decorative layer */
header, main, footer {
  position: relative;
  z-index: 1; /* ensure content sits above site-bg */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-bg { transform: none !important; background-attachment: scroll !important; }
}

/* Small utility: subtle shadow under header for separation when scrolling */
header.hero { box-shadow: 0 1px 0 rgba(0,0,0,0.03); }

/* Ensure CTA still visible on success page */
.cta-button { display: inline-block; }

*{box-sizing:border-box}
body{margin:0;font-family:Inter,Roboto,Arial,sans-serif;background:transparent;color:#ffffff;-webkit-font-smoothing:antialiased}

/* Keep boxed content readable by forcing dark text inside cards/forms */
.phone-card, .phone-card *,
.rates-card, .rates-card *,
.rate-item, .rate-item *,
.contact-form, .contact-form *,
.modal .dialog, .modal .dialog *,
.instagram-embed, .instagram-embed *,
.gallery-item, .gallery-item * {
  color: var(--accent-dark) !important;
}

/* Hero */
header.hero{min-height:68vh;display:flex;flex-direction:column;justify-content:center;padding:2.25rem 1rem;border-radius:14px;color:#ffffff;text-align:center;background: linear-gradient(135deg, rgba(11,110,111,0.55) 0%, rgba(0,166,166,0.45) 60%, rgba(44,182,125,0.35) 100%), url('alma backround.png');background-size:cover;background-position:center;background-blend-mode:overlay;box-shadow:0 8px 30px rgba(4,38,37,0.12);}
header.hero .brand{max-width:760px;margin:0 auto}
header.hero h1{font-family:Poppins,Inter,Arial,sans-serif;font-size:2.25rem;margin:0 0 .35rem 0}
header.hero p{margin:0;color:rgba(255,255,255,0.98);font-size:1rem}
.hero-cta{display:flex;gap:.75rem;justify-content:center;margin-top:.9rem}

/* Decorative divider under header */
header.hero { position: relative; z-index: 2; padding-bottom: 3.75rem; }
header.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 35px;
  /* SVG wave filled with primary background color (#fffdf9) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'><path fill='%23fffdf9' d='M0,30 C200,90 400,0 720,30 C1040,60 1240,10 1440,40 L1440,100 L0,100 Z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  transform: translateZ(0);
}

/* Phone card */
.phone-card{display:flex;flex-direction:column;align-items:center;gap:.25rem;background:#ffffff;padding:1rem 1.1rem;border-radius:18px;border:1px solid rgba(0,0,0,0.06);width:100%;max-width:420px;margin:0.9rem auto;box-shadow:0 6px 18px rgba(5,40,39,0.04)}
/* make text inside the bubble dark and plain */
.phone-card, .phone-card *{color:var(--accent-dark) !important; text-decoration:none !important}
.phone-card .phone{font-weight:800;font-size:1.35rem;color:var(--accent-dark);text-decoration:none}
.phone-card small{color:var(--muted)}
.phone-card ::selection{background:transparent; color:var(--accent-dark)}

/* Buttons inside the phone card should contrast on light background; remove highlight/underline */
.phone-card .cta-button{background:var(--primary-blue);color:#000000;box-shadow:none;border-radius:10px;padding:.6rem .9rem;text-decoration:none}
.phone-card .cta-button.secondary{background:transparent;color:var(--primary-blue);border:2px solid rgba(11,110,111,0.12)}
.phone-card .cta-button:focus, .phone-card .cta-button:active{outline:none;box-shadow:0 4px 12px rgba(11,110,111,0.08)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.6rem 1rem;font-weight:700;cursor:pointer;border:0;text-decoration:none}
.btn-primary{background:#fff;color:var(--primary-blue)}
.btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,0.18)}

/* Rates */
.rates-card{background:#fff;padding:1rem;border-radius:12px;box-shadow:0 6px 18px rgba(5,40,39,0.06);overflow:auto;text-align:center}
.rates-table{width:100%;border-collapse:collapse;text-align:center;min-width:640px}
.rates-table th,.rates-table td{padding:.7rem;border-bottom:1px solid #f0efef;text-align:center}
.rates-table th{background:linear-gradient(90deg,var(--primary-teal),var(--primary-green));color:#fff}
.rates-notes{color:var(--muted)}

/* Combined rates card layout */
.rates-card-inner{display:grid;grid-template-columns:1fr 320px;gap:1.25rem;align-items:start}
.rates-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.rate-item{background:#fff;border-radius:10px;padding:1rem;box-shadow:0 6px 15px rgba(5,40,39,0.05);text-align:center}
.rates-info{background:linear-gradient(180deg, #fff, #f8faf8);padding:1rem;border-radius:12px;border:1px solid rgba(0,0,0,0.04)}
.rates-info-list{padding-left:1.05rem;margin-top:0.65rem;color:var(--muted);text-align:left}

@media (max-width: 860px) {
  .rates-card-inner{grid-template-columns:1fr;}
  .rates-info-list{padding-left:1.1rem}
}

/* Rates cards grid */
.rates-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;align-items:start}
.rate-item{background:#fff;border-radius:10px;padding:1rem;box-shadow:0 6px 15px rgba(5,40,39,0.05);text-align:center}
.rate-item h4{margin:0 0 .35rem 0;font-family:Poppins,Inter,Arial,sans-serif}
.rate-item .muted{color:var(--muted);margin:0 0 .45rem 0}
.rate-item .price{font-weight:800;font-size:1.15rem;margin:0}

/* Layout for rates section: center cards and aside */
.rates-grid{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  justify-content:center;
  flex-wrap:wrap;
}

.rates-grid > .rates-card { flex: 1 1 520px; max-width: 720px; }
.rates-grid > aside.rates-card { flex: 0 1 280px; max-width: 320px; }

@media(max-width:480px){
  .rate-item{padding:12px}
  .rate-item h4{font-size:1rem}
  .rate-item .price{font-size:1rem}
}

@media (max-width: 860px) {
  .rates-grid > .rates-card, .rates-grid > aside.rates-card { max-width: 100%; flex: 1 1 100%; }
  .rates-cards-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-grid{display:flex;gap:1rem;align-items:flex-start;justify-content:center;flex-wrap:wrap}
.gallery-item{flex:1 1 calc((100% - 2rem) / 3);max-width:360px;min-width:220px;display:block}
.gallery-thumb{position:relative;border-radius:8px;overflow:hidden;display:block}
.gallery-thumb img{width:100%;height:auto;display:block}
.play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(0,0,0,0.08),rgba(0,0,0,0.18));}
.play-icon{width:56px;height:56px;border-radius:999px;background:#fff;display:grid;place-items:center;font-weight:700;color:var(--primary-blue)}

/* three-in-row on larger screens; stack on small */
@media (max-width:860px){
  .gallery-item{flex:1 1 calc((100% - 2rem) / 2);max-width:46%}
}
@media (max-width:640px){
  .gallery-grid{flex-direction:column;align-items:center}
  .gallery-item{flex:1 1 100%;max-width:640px}
  .instagram-embed, .gallery-thumb{width:100%;max-width:640px}
}

/* Modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:1200}
.modal.open{display:flex}
.modal .dialog{width:min(920px,94vw);aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden;box-shadow:0 18px 60px rgba(0,0,0,0.6);}
.modal .close{position:absolute;top:12px;right:12px;background:rgba(255,255,255,0.9);border-radius:999px;padding:6px 10px;color:var(--accent-dark);font-weight:700;border:0}

/* Contact form */
.contact-form{background:#fff;padding:1.25rem;border-radius:12px;box-shadow:0 6px 18px rgba(5,40,39,0.06);width:100%;max-width:720px;margin:0 auto;text-align:center}
.contact-form label{display:block;margin-bottom:.35rem;font-weight:600;color:var(--accent-dark);text-align:left;margin-left:auto;margin-right:auto}
.contact-form input,.contact-form textarea{width:100%;padding:.85rem;border:1px solid #e8e8e8;border-radius:8px;margin-bottom:.85rem}
.contact-form button{background:var(--primary-blue);color:#fff;border-radius:8px;padding:.7rem 1rem;border:0;font-weight:700}
.error-message{color:#b93b3b;min-height:1.1em}

/* Footer */
footer{padding:1rem;text-align:center;color:#fff;background:var(--accent-dark);border-top:6px solid var(--primary-teal)}

/* make each sentence its own line for improved readability */
.sentence{display:block;margin-bottom:0.35rem}

/* make CTAs full width on small screens */
@media(max-width:640px){
  .hero-cta .cta-button{width:100%;max-width:420px}
  .phone-card .cta-button{width:48%;min-width:120px}
  .phone-card{padding:.6rem}
}

/* Responsive tweaks */
@media(max-width:640px){header.hero h1{font-size:1.6rem} .hero-cta{flex-direction:column;gap:.6rem} .phone-card{max-width:100%;border-radius:10px} .contact-form label{text-align:left}}
@media (min-width:860px){header.hero{padding:2.75rem 2rem}}

/* Responsive table: stack rows on small screens */
@media (max-width: 600px) {
  .rates-table, .rates-table thead, .rates-table tbody, .rates-table th, .rates-table td, .rates-table tr { display: block; width: 100%; }
  .rates-table thead { display: none; }
  .rates-table tr { margin-bottom: 1rem; padding: 0; }
  .rates-table td { text-align: left; padding: 0; margin: 0 0 0.75rem 0; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 6px 18px rgba(5,40,39,0.04); }
  .rates-table td::before { content: attr(data-label); display: block; font-weight:700; margin-bottom:6px; color:var(--accent-dark); }
  .rates-table td:last-child { margin-bottom: 0; }
  .rates-card{padding:0}
  .rates-notes{font-size:0.95rem}
}

/* Center the contact section heading */
#contact h2 { text-align: center; }

/* Center section headings and intro text for Rates and Gallery */
#rates h2, #rates .lead,
#gallery h2, #gallery .lead {
  text-align: center;
}

/* Calculator styles */
#calculator { margin: 1.5rem auto; max-width: 980px; padding: 0 1rem; }
.calculator-card{display:flex;gap:1rem;align-items:flex-start;justify-content:center;flex-wrap:wrap}
.calculator-controls{flex:1 1 360px;min-width:260px;background:rgba(255,255,255,0.98);padding:1rem;border-radius:12px;border:1px solid rgba(0,0,0,0.04);color:var(--accent-dark)}
.calculator-controls label{display:block;font-weight:600;margin-top:0.6rem}
.calculator-controls input[type='range']{width:100%;margin-top:0.35rem}
.calculator-controls input[type='number']{width:100%;padding:.5rem;border-radius:8px;border:1px solid #e6e6e6;margin-top:0.35rem}
.calculator-controls .muted{color:var(--muted);font-weight:400;font-size:0.95rem}
.calculator-result{flex:0 0 260px;min-width:240px;background:linear-gradient(180deg,#fff,#f8faf8);color:var(--accent-dark);padding:1rem;border-radius:12px;box-shadow:0 10px 30px rgba(4,38,37,0.06);text-align:center}
.calculator-result h3{margin:0 0 .4rem 0}
.estimate-amount{font-size:1.6rem;font-weight:800;margin:0.25rem 0;color:var(--accent-dark)}
.estimate-breakdown{font-size:0.95rem;text-align:left;margin-top:0.6rem;color:var(--accent-dark)}
.estimate-breakdown div{margin-bottom:0.45rem}

@media (max-width:760px){
  .calculator-card{flex-direction:column}
  .calculator-result{order:2}
  .calculator-controls{order:1}
}

/* Social media (header) */
nav.social-media{display:flex;gap:8px;justify-content:center;align-items:center;margin-top:0.75rem}
nav.social-media a{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;padding:0;flex:0 0 36px}
nav.social-media a img.social-icon{width:20px;height:20px;display:block;border-radius:50%;object-fit:contain}

@media (max-width:640px){
  nav.social-media a{width:32px;height:32px;flex:0 0 32px}
  nav.social-media a img.social-icon{width:18px;height:18px}
}
