/* ==========================================================================
   home.css
   MR. MA RENOVATION - Homepage-only styles
   Stage 3: hero, trust strip
   Stage 4: section action, gallery preview, service area, quote band
   Depends on: tokens.css, base.css, layout.css, components.css
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75vh;
  padding-block: var(--space-8);
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 27, 45, 0.88) 0%,
    rgba(15, 27, 45, 0.65) 55%,
    rgba(15, 27, 45, 0.45) 100%
  );
}

.hero:not(.hero--photo)::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60vw;
  height: 60vw;
  max-width: 45rem;
  max-height: 45rem;
  border-radius: 50%;
  border: 2px solid rgba(217, 168, 105, 0.25);
  box-shadow: 0 0 0 2.5rem rgba(217, 168, 105, 0.05);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero__label {
  margin-bottom: var(--space-3);
  color: var(--color-gold);
}

.hero__title {
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.hero__text {
  margin-bottom: var(--space-5);
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__note {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 599px) {
  .hero {
    min-height: 70vh;
    padding-block: var(--space-7);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 82vh;
  }
}

/* ==========================================================================
   TRUST STRIP (confirmed facts only)
   ========================================================================== */
.trust-strip {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-sand);
}

.trust-strip__list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5) 0;
  list-style: none;
}

@media (min-width: 600px) {
  .trust-strip__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-strip__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-strip__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 50%;
  background-color: var(--color-warm-white);
  border: 1px solid var(--color-sand);
  color: var(--color-copper);
}

.trust-strip__title {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-charcoal);
}

.trust-strip__sub {
  font-size: var(--text-small);
  color: var(--color-stone);
}

/* ==========================================================================
   ===== STAGE 4 ADDITIONS START HERE =====
   ========================================================================== */

/* Button row under the service cards */
.section-action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* ---------- Project gallery preview ---------- */
.gallery-preview {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 600px) {
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-preview {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  text-align: center;
  background-color: var(--color-white);
  border: 2px dashed var(--color-sand);
  border-radius: var(--radius-md);
}

.gallery-empty svg {
  width: 3rem;
  height: 3rem;
  color: var(--color-copper);
}

.gallery-empty h3 {
  font-size: var(--text-h3);
}

.gallery-empty p {
  max-width: 36rem;
  color: var(--color-stone);
}

/* ---------- Service area ---------- */
.area {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 1024px) {
  .area {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
  }
}

.area__body .label {
  margin-bottom: var(--space-2);
}

.area__body h2 {
  margin-bottom: var(--space-3);
}

.area__body > p {
  margin-bottom: var(--space-4);
}

.area__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-white);
  border-radius: var(--radius-md);
  background-color: var(--color-navy);
  background-image: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
}

.area__panel svg {
  width: 3rem;
  height: 3rem;
  color: var(--color-gold);
}

.area__panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
}

.area__panel-sub {
  font-size: var(--text-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ---------- Quotation band ---------- */
.quote-band__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 1024px) {
  .quote-band__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
  }
}

.quote-band h2 {
  margin-bottom: var(--space-3);
}

.quote-band p {
  color: rgba(255, 255, 255, 0.85);
}

.quote-band__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quote-band__actions .btn {
  width: 100%;
}

.quote-band__contact {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.8);
}

.quote-band__contact a {
  color: var(--color-gold);
}

.quote-band__contact a:hover {
  color: var(--color-white);
}

/* Gallery slider: full width and centered */
.gallery-preview > * {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

/* Company Stats */
.company-stats {
  padding: 55px 0;
  background: #0b1830;
  color: #fff;
}

.company-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.company-stats__item {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(198, 155, 85, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.company-stats__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}

.company-stats__number {
  display: block;
  color: #c69b55;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.company-stats__item p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.company-stats__item small {
  display: block;
  margin-top: 8px;
  color: #cbd3df;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .company-stats {
    padding: 35px 0;
  }

  .company-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .company-stats__item {
    padding: 22px 10px;
  }

  .company-stats__item p {
    font-size: 13px;
  }
}

/* Homepage Renovation Gallery */
.gallery-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 35px;
}

.gallery-project {
  overflow: hidden;
  background: #14223a;
  border: 1px solid rgba(190, 137, 72, 0.35);
  border-radius: 14px;
  padding-bottom: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-project img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d192e;
}

.gallery-project h3 {
  color: #ffffff;
  font-size: 21px;
  margin: 20px 22px 8px;
}

.gallery-project p {
  color: #c5cbd5;
  font-size: 14px;
  margin: 0 22px;
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-projects {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-project h3 {
    font-size: 19px;
  }
}

@media (max-width: 600px) {
  .gallery-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-project h3 {
    font-size: 16px;
    margin: 12px 10px 6px;
  }

  .gallery-project p {
    font-size: 12px;
    margin: 0 10px;
  }
}


/* =====================================================
   MOBILE LAYOUT — ONLY 3 RENOVATION SECTIONS
   Image LEFT | Text RIGHT
   Desktop layout remains unchanged
   ===================================================== */

@media (max-width: 599px) {

  /* House Renovation */
  section[aria-labelledby="home-reno-title"] .split,

  /* Office Renovation */
  section[aria-labelledby="office-reno-title"] .split,

  /* Repairs & Protection */
  section[aria-labelledby="repairs-title"] .split {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
    grid-template-areas: "media body";
    align-items: start;
    gap: 12px;
  }

  /* Force image/media to LEFT */
  section[aria-labelledby="home-reno-title"] .split__media,
  section[aria-labelledby="office-reno-title"] .split__media,
  section[aria-labelledby="repairs-title"] .split__media {
    grid-area: media;
    min-width: 0;
    width: 100%;
  }

  /* Force text to RIGHT */
  section[aria-labelledby="home-reno-title"] .split__body,
  section[aria-labelledby="office-reno-title"] .split__body,
  section[aria-labelledby="repairs-title"] .split__body {
    grid-area: body;
    min-width: 0;
    width: 100%;
  }

  /* Image area */
  section[aria-labelledby="home-reno-title"] .media,
  section[aria-labelledby="office-reno-title"] .media,
  section[aria-labelledby="repairs-title"] .media {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  /* Placeholder fits inside image area */
  section[aria-labelledby="home-reno-title"] .media__placeholder,
  section[aria-labelledby="office-reno-title"] .media__placeholder,
  section[aria-labelledby="repairs-title"] .media__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  /* Smaller text for mobile side-by-side layout */
  section[aria-labelledby="home-reno-title"] h2,
  section[aria-labelledby="office-reno-title"] h2,
  section[aria-labelledby="repairs-title"] h2 {
    font-size: 18px;
    line-height: 1.25;
    margin-block: 6px 8px;
  }

  section[aria-labelledby="home-reno-title"] p,
  section[aria-labelledby="office-reno-title"] p,
  section[aria-labelledby="repairs-title"] p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  section[aria-labelledby="home-reno-title"] .benefit-list,
  section[aria-labelledby="office-reno-title"] .benefit-list,
  section[aria-labelledby="repairs-title"] .benefit-list {
    padding-left: 16px;
    margin-block: 8px 12px;
  }

  section[aria-labelledby="home-reno-title"] .benefit-list li,
  section[aria-labelledby="office-reno-title"] .benefit-list li,
  section[aria-labelledby="repairs-title"] .benefit-list li {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  /* Quote buttons fit the text column */
  section[aria-labelledby="home-reno-title"] .btn,
  section[aria-labelledby="office-reno-title"] .btn,
  section[aria-labelledby="repairs-title"] .btn {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    padding: 10px 12px;
  }
}
