/* ==========================================================================
   MOREM Cleaning Services — Design Tokens & Global Styles
   Palette derived from brand logo: deep ink navy + morem teal + warm amber accent
   ========================================================================== */

:root {
  --morem-ink: #11171E;
  --morem-ink-soft: #1B2430;
  --morem-teal: #388EA8;
  --morem-teal-light: #5DB6C4;
  --morem-teal-pale: #E6F2F5;
  --morem-amber: #E8A33D;
  --morem-amber-dark: #C7862A;
  --morem-light: #F8FAFC;
  --morem-paper: #FFFFFF;
  --morem-text: #1F2937;
  --morem-text-soft: #5B6572;
  --morem-border: #E4E9EE;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-soft: 0 4px 20px rgba(17, 23, 30, 0.06);
  --shadow-lift: 0 12px 32px rgba(17, 23, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--morem-text);
  background: var(--morem-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--morem-ink);
  margin: 0;
}

a {
  text-decoration: none;
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--morem-amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--morem-paper);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-header__logo img {
  height: 48px;
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--morem-ink);
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--morem-teal);
}

.phone-link svg {
  color: var(--morem-teal);
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--morem-border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--morem-text-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--morem-ink);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--morem-teal);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: #327E96;
  box-shadow: var(--shadow-lift);
}

.btn--amber {
  background: var(--morem-amber);
  color: var(--morem-ink);
}

.btn--amber:hover {
  background: var(--morem-amber-dark);
  color: white;
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--morem-paper);
  color: var(--morem-paper);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
}

.btn--whatsapp:hover {
  background: #1DA851;
}

/* ==========================================================================
   Hero — full-bleed photo background with tinted overlay
   ========================================================================== */

.hero {
  position: relative;
  color: white;
  overflow: hidden;
  padding: 72px 0 90px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(17,23,30,0.90) 0%, rgba(17,23,30,0.80) 45%, rgba(17,23,30,0.72) 100%),
    linear-gradient(0deg, rgba(17,23,30,0.5) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--morem-teal-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero h1 .accent {
  color: var(--morem-teal-light);
}

.hero p.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E4E9EE;
  max-width: 560px;
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  box-shadow: var(--shadow-lift);
}

.hero-stat-card .stars {
  color: var(--morem-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.hero-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--morem-text-soft);
  font-weight: 600;
}

/* Wave divider between sections */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

/* ==========================================================================
   Segment tabs (Residential / Commercial)
   ========================================================================== */

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--morem-teal);
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--morem-text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.segment-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.segment-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--morem-border);
  background: white;
  color: var(--morem-text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment-tab[aria-selected="true"] {
  background: var(--morem-ink);
  border-color: var(--morem-ink);
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border: 1px solid var(--morem-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--morem-teal-light);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card .price {
  color: var(--morem-teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--morem-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  flex-grow: 1;
  margin: 0;
}

.service-panel {
  display: none;
}

.service-panel.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.section--testimonials {
  background: var(--morem-teal-pale);
  position: relative;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--morem-border);
  background: white;
  color: var(--morem-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--morem-teal);
  color: white;
  transform: scale(1.06);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--morem-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease;
}

.carousel-dot[aria-current="true"] {
  background: var(--morem-teal);
  width: 22px;
  border-radius: 999px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars {
  color: var(--morem-amber);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.testimonial-card p.quote {
  color: var(--morem-text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.testimonial-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--morem-ink);
}

/* ==========================================================================
   Service area
   ========================================================================== */

.section--areas {
  background: var(--morem-ink);
  color: white;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.areas-text .eyebrow {
  color: var(--morem-teal-light);
}

.areas-text h2 {
  color: white;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.areas-text p {
  color: #A9B4C0;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.areas-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.areas-map iframe {
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.area-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.area-chip svg {
  color: var(--morem-teal-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Quote form
   ========================================================================== */

.section--quote {
  background: white;
  border-top: 1px solid var(--morem-border);
}

.quote-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form input,
.quote-form select {
  border: 1px solid var(--morem-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--morem-text);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form input:focus,
.quote-form select:focus {
  border-color: var(--morem-teal);
  box-shadow: 0 0 0 3px rgba(56, 142, 168, 0.15);
  outline: none;
}

.quote-form input::placeholder {
  color: #9AA5B1;
}

.quote-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.quote-alt-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.quote-alt-actions .btn {
  flex: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--morem-ink-soft);
  color: #9AA5B1;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid a {
  color: #9AA5B1;
  font-size: 0.92rem;
  line-height: 1.8;
  display: block;
}

.footer-grid a:hover {
  color: var(--morem-teal-light);
}

.footer-contact-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.footer-contact-line svg {
  color: var(--morem-teal-light);
  flex-shrink: 0;
}

.footer-logo {
  height: 36px;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.15s ease;
}

.social-link svg {
  flex-shrink: 0;
  color: var(--morem-teal-light);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--morem-teal-light);
  transform: translateX(2px);
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero {
    height: auto;
    padding: 64px 0 72px;
  }

  .hero__content {
    max-width: 100%;
    padding: 0 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .areas-map {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .site-header__actions .phone-link span {
    display: none;
  }

  .quote-form,
  .field-split {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 24px 56px;
    height: auto;
    min-height: 0;
  }

  .hero__bg-overlay {
    background:
      linear-gradient(180deg, rgba(17,23,30,0.88) 0%, rgba(17,23,30,0.88) 100%);
  }

  .hero-stat-card {
    display: flex;
  }

  .trust-badges {
    gap: 8px;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .section {
    padding: 56px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .quote-alt-actions {
    flex-direction: column;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .carousel {
    gap: 8px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}
