/* ============================================================
   Maids of Grace — Stylesheet
   ============================================================ */

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

/* ── Variables ── */
:root {
  --green:       #6B5B8A;
  --green-mid:   #8878A8;
  --green-light: #EDEAF4;
  --gold:        #AEC5EB;
  --white:       #FFFFFF;
  --off-white:   #F8F7FB;
  --text:        #111827;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --transition:  0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: #b8903e; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--green);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-mid); transform: translateY(-1px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: var(--white); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { background: var(--green-light); color: var(--green); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-toggle {
  display: flex;
  background: var(--off-white);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--green);
  color: var(--white);
}
.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.header-phone svg { width: 14px; height: 14px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.mobile-nav a:hover { background: var(--green-light); color: var(--green); }
.mobile-nav .mobile-phone {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--green-light);
  border-radius: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(90,75,120,0.88) 0%, rgba(120,105,155,0.82) 60%, rgba(150,135,180,0.78) 100%), url('../images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  max-width: 640px;
  padding: 5rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--gold); }
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.stat {
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--green);
  padding: 1rem 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-item svg {
  width: 16px; height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 6rem 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-mid);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; fill: var(--green); }
.service-card h3 { margin-bottom: 0.6rem; color: var(--green); }
.service-card p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 1.5rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  transition: var(--transition);
}
.service-link:hover { gap: 0.65rem; }
.service-link svg { width: 14px; height: 14px; }

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: 6rem 0;
  background: var(--off-white);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-check {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-check svg { width: 14px; height: 14px; fill: var(--white); }
.why-item h4 { font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 0.2rem; }
.why-item p { color: var(--muted); font-size: 0.9rem; }

.why-visual {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-visual::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.why-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  position: relative;
}
.why-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--gold);
  line-height: 0;
  vertical-align: -1.5rem;
  margin-right: 0.2rem;
}
.why-author { font-size: 0.88rem; opacity: 0.7; }
.why-rating {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}
.why-rating svg { width: 16px; height: 16px; fill: var(--gold); }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.area-tag {
  background: var(--green-light);
  color: var(--green);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #2E2840;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; }
.footer-brand .logo-icon { background: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-col ul li { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, rgba(90,75,120,0.85), rgba(120,105,155,0.8));
  padding: 6rem 0 4rem;
  margin-top: 68px;
  background-size: cover;
  background-position: center;
}
.page-hero--general {
  background: linear-gradient(135deg, rgba(90,75,120,0.85), rgba(120,105,155,0.78)), url('../images/general-cleaning.jpg') center/cover no-repeat;
}
.page-hero--deep {
  background: linear-gradient(135deg, rgba(90,75,120,0.85), rgba(120,105,155,0.78)), url('../images/deep-cleaning.jpg') center/cover no-repeat;
}
.page-hero--commercial {
  background: linear-gradient(135deg, rgba(90,75,120,0.85), rgba(120,105,155,0.78)), url('../images/commercial.jpg') center/cover no-repeat;
}
.page-hero--contact {
  background: linear-gradient(135deg, rgba(90,75,120,0.85), rgba(120,105,155,0.78)), url('../images/contact.jpg') center/cover no-repeat;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 520px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.breadcrumb a { transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.4); }

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.service-detail { padding: 5rem 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.includes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.includes-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 0.93rem;
}
.includes-item svg {
  width: 16px; height: 16px;
  fill: var(--green);
  flex-shrink: 0;
}
.detail-cta-box {
  background: var(--green);
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
  position: sticky;
  top: 90px;
}
.detail-cta-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}
.detail-cta-box p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 1.5rem; }
.detail-cta-box .btn-primary { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.detail-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}
.detail-phone svg { width: 16px; height: 16px; fill: var(--gold); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.contact-icon {
  width: 42px; height: 42px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--green); }
.contact-card h4 { font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--muted); }
.contact-card a:hover { color: var(--green); }

.contact-form-box {
  background: var(--off-white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.contact-form-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; padding: 0.85rem; font-size: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .trust-bar .container { gap: 1.25rem; }
  .area-tags { gap: 0.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ── Hidden by lang ── */
[data-lang="es"] { display: none; }
