/* ============================================================
   SkyClean — UI Components（Buttons, Cards, Icons）
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  line-height: 1.2;
  overflow: hidden;
  transition: background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: none;
}

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
}

.btn--wa {
  background: #25d366;
  color: var(--white);
  box-shadow: none;
}

.btn--wa:hover {
  background: #1ebe57;
  transform: none;
}

.btn--header {
  padding: 0.65rem 1.15rem;
  font-size: var(--fs-xs);
}

.site-header:not(.is-scrolled):not(.is-solid) .btn--header.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

body[data-page='home'] .site-header:not(.is-scrolled) .btn--header.btn--ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-color: rgba(30, 47, 58, 0.16);
}

.site-header.is-scrolled .btn--header.btn--ghost,
.site-header.is-solid .btn--header.btn--ghost {
  background: var(--gray);
  color: var(--text);
  border-color: var(--border);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Button ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Hover lift utility ---------- */
.hover-lift {
  transition: box-shadow var(--duration) var(--ease);
}

.hover-lift:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

/* ---------- Icon outline helpers ---------- */
.icon-outline {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.25rem) 1.5rem 3rem;
  background:
    linear-gradient(105deg, rgba(234, 247, 253, 0.96) 0%, rgba(234, 247, 253, 0.88) 38%, rgba(234, 247, 253, 0.42) 72%, rgba(234, 247, 253, 0.22) 100%),
    url('../img/team-staff.jpg') center 35% / cover no-repeat;
  text-align: left;
  overflow: hidden;
  color: var(--brand-blue);
}

body[data-page='services'] .page-hero {
  background:
    linear-gradient(105deg, rgba(234, 247, 253, 0.96) 0%, rgba(234, 247, 253, 0.88) 38%, rgba(234, 247, 253, 0.42) 72%, rgba(234, 247, 253, 0.22) 100%),
    url('../img/team-staff.jpg') center 40% / cover no-repeat;
}

body[data-page='cases'] .page-hero {
  background:
    linear-gradient(105deg, rgba(234, 247, 253, 0.96) 0%, rgba(234, 247, 253, 0.88) 38%, rgba(234, 247, 253, 0.42) 72%, rgba(234, 247, 253, 0.22) 100%),
    url('../img/floor-scrubber.jpg') center 45% / cover no-repeat;
}

body[data-page='faq'] .page-hero {
  background:
    linear-gradient(105deg, rgba(234, 247, 253, 0.96) 0%, rgba(234, 247, 253, 0.88) 38%, rgba(234, 247, 253, 0.42) 72%, rgba(234, 247, 253, 0.22) 100%),
    url('../img/ser201.jpg') center 40% / cover no-repeat;
}

body[data-page='contact'] .page-hero {
  background:
    linear-gradient(105deg, rgba(234, 247, 253, 0.96) 0%, rgba(234, 247, 253, 0.88) 38%, rgba(234, 247, 253, 0.42) 72%, rgba(234, 247, 253, 0.22) 100%),
    url('../img/ser401.jpg') center 40% / cover no-repeat;
}

@media (max-width: 900px) {
  .page-hero {
    padding-top: calc(var(--mobile-bar-h) + var(--header-h) + 2.25rem);
    text-align: left;
  }
}

.page-hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.page-hero__title {
  margin-bottom: 0.55rem;
  color: var(--brand-blue);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 800;
}

.page-hero__desc {
  max-width: 36rem;
  margin-inline: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  color: #2a5f96;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .page-hero__desc--single {
    max-width: none;
    white-space: nowrap;
  }
}

.section__more {
  text-align: center;
  margin-top: var(--space-7);
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-form__row {
  margin-bottom: var(--space-5);
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--gray);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__note {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: var(--space-4);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
}

.contact-info-card p,
.contact-info-card a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info-card a:hover {
  color: var(--accent);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--text);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
}

.form-success.is-visible {
  display: block;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
