/* FILE: styles/home_additions.css
   Home Additions service page (cleaner, more “premium”)
   Goals:
   - Hero fits to the top 100% (no “floating down” / no awkward gap)
   - More consistent spacing, shadows, borders, and typography
   - Less “busy” gradients, more professional contrast
*/

/* ===== Page offsets (fixed header) ===== */
:root{
  /* If your header height changes, tweak this once */
  --header-h: 92px;

  /* Subtle surface system */
  --surface-0: var(--black);
  --surface-1: rgba(16,23,28,0.92);
  --surface-2: rgba(13,18,22,0.92);

  --line-1: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.12);

  --text-1: rgba(255,255,255,0.92);
  --text-2: rgba(255,255,255,0.78);
  --text-3: rgba(255,255,255,0.64);

  --accent: var(--teal, #128C99);
  --accent-deep: var(--teal-deep, #0B5F68);
  --warm: rgba(228,221,189,0.95);

  --radius-lg: 18px;
  --radius-md: 14px;

  --shadow-sm: 0 8px 18px rgba(0,0,0,.20);
  --shadow-md: 0 12px 28px rgba(0,0,0,.28);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.38);
}

.service-page main{
  padding-top: 0;
  background: var(--surface-0);
}


/* Inline Links */
p a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.3);
  transition: transform 0.2s ease;
  transform: scaleX(1);
}

p a:hover::after {
  transform: scaleX(0.4);
}

/* ===== HERO (fits to top 100%) ===== */
.hero--service{
  position: relative;

  /* Full viewport below header */
  min-height: 100vh;
  height: 100vh;

  /* If you want it to be slightly shorter, change to:
     min-height: calc(92vh - var(--header-h));
     height: auto; */

  border-radius: 0 0 24px 24px;
  overflow: hidden;
  background: var(--surface-0);
  display: grid;
  align-items: stretch;

  /* Prevent “1–3px gap” from grid/line-height quirks */
  margin-top: 0;
}

/* Slideshow layer */
.hero-slideshow{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Slides: top-aligned for “fits to top” look */
.hero-slide{
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; /* KEY: pushes content to the top */

  /* Cleaner grading (less crunchy) */
  filter: saturate(0.98) contrast(1.02) brightness(0.95);

  /* Gentle “ken burns” feel */
  transform: scale(1.03);
  opacity: 0;
  animation: heroFade 18s infinite;
  will-change: opacity, transform;
}

/* stagger */
.hero-slide:nth-child(1){ animation-delay: 0s; }
.hero-slide:nth-child(2){ animation-delay: 6s; }
.hero-slide:nth-child(3){ animation-delay: 12s; }

@keyframes heroFade{
  0%   { opacity: 0; transform: scale(1.03); }
  10%  { opacity: 1; transform: scale(1.05); }
  33%  { opacity: 1; transform: scale(1.06); }
  45%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.03); }
}

/* Overlay: simpler + more premium (less “glowy blobs”) */
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(7,10,12,0.78) 0%,
      rgba(7,10,12,0.40) 52%,
      rgba(7,10,12,0.86) 100%
    );
}

/* Content */
.hero--service .hero-content{
  position: relative;
  z-index: 2;

  /* Keep content comfortably inside on wide screens */
  width: min(1100px, 100%);
  margin: 0 auto;

  padding: clamp(28px, 4vw, 48px) 18px clamp(44px, 6vw, 76px);
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.hero--service .hero-content h2,
.hero--service .hero-content .hero-eyebrow{
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 300;
  color: var(--warm);
  letter-spacing: 0.2px;
}

.hero--service .hero-content h1{
  margin: 0;
  font-weight: 550;
  font-size: clamp(18px, 2.3vw, 30px);
  color: rgba(255,255,255,0.98);
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

.hero--service .hero-content p{
  margin: 10px 0 0;
  max-width: 72ch;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* Chips under hero */
.service-chips{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 980px;
}

.service-chips .chip{
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;

  background: rgba(16,23,28,0.52);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  letter-spacing: 0.2px;

  backdrop-filter: blur(10px);
}

/* ===== SECTION SYSTEM ===== */
.section{
  padding: clamp(56px, 7vw, 92px) 18px;
  background: var(--surface-0);
}

.section--alt{
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section--tight{
  padding: clamp(40px, 5vw, 64px) 18px;
}

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

.grid-2{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
}

.content h2{
  margin: 0 0 12px 0;
  color: var(--warm);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.2px;
}

.content p{
  margin: 0;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 78ch;
}

.spacer{ height: 18px; }

/* ===== KPI grid ===== */
.kpi-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kpi{
  border-radius: var(--radius-md);
  padding: 16px 16px 15px;

  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow-sm);
}

.kpi__title{
  margin: 0 0 6px 0;
  color: var(--text-1);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.kpi__text{
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 14px;
}

/* ===== Side panel ===== */
.panel{
  border-radius: var(--radius-lg);
  padding: 20px;

  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow-md);
}

.panel h3{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.96);
  font-size: 18px;
  letter-spacing: 0.2px;
}

.panel p{
  margin: 0 0 14px 0;
  color: var(--text-2);
  line-height: 1.75;
}

.panel__btn{ width: 100%; }

.panel__meta{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.panel__meta p{
  margin: 0 0 8px 0;
  color: var(--text-2);
}

.panel__meta a{
  color: rgba(228,221,189,0.92);
  text-decoration: none;
}
.panel__meta a:hover{ text-decoration: underline; }

/* ===== Section heads ===== */
.section-head{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px auto;
}

.section-head h2{
  margin: 0;
  color: var(--warm);
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.2px;
}

.section-head p{
  margin: 10px 0 0 0;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== Cards ===== */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card{
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 22px;

  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(16,23,28,0.90), rgba(13,18,22,0.90));
  box-shadow: var(--shadow-sm);

  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: rgba(255,255,255,0.88);

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 175px;
}

.card h3{
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,0.96);
  letter-spacing: 0.2px;
}

.card p{
  margin: 0;
  color: var(--text-2);
  line-height: 1.75;
}

.card__link{
  margin-top: auto;
  color: rgba(18,140,153,0.98);
  font-weight: 800;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(18,140,153,0.28);
  box-shadow: var(--shadow-md);
}

.card:focus-visible{
  outline: 3px solid rgba(228,221,189,0.55);
  outline-offset: 3px;
}

.card--cta .card__link{
  color: rgba(228,221,189,0.92);
}

/* ===== Steps ===== */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;

  padding: 18px;
  border-radius: var(--radius-md);

  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(16,23,28,0.68), rgba(13,18,22,0.68));
  box-shadow: var(--shadow-sm);
}

.step__num{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(18,140,153,0.16);
  color: rgba(228,221,189,0.96);
  font-weight: 900;
}

.step__body h3{
  margin: 0 0 6px 0;
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  letter-spacing: 0.2px;
}

.step__body p{
  margin: 0;
  color: var(--text-2);
  line-height: 1.75;
}

.center-actions{
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Benefits ===== */
.benefits-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.benefit{
  border-radius: var(--radius-md);
  padding: 18px;

  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(16,23,28,0.78), rgba(13,18,22,0.78));
  box-shadow: var(--shadow-sm);
}

.benefit h3{
  margin: 0 0 8px 0;
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  letter-spacing: 0.2px;
}

.benefit p{
  margin: 0;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== Gallery placeholders ===== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.gallery-card{
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
  box-shadow: var(--shadow-md);

  display: flex;
  flex-direction: column;
}

.gallery-card img{
  width: 100%;
  height: 190px;

  /* For logo placeholders keep contain;
     when you add real photos, switch to cover */
  object-fit: cover;
  object-position: center;
  padding: 1px;

  background: rgba(255,255,255,0.03);
}

.gallery-card figcaption{
  padding: 14px 14px 16px;
  display: grid;
  gap: 4px;
}

.gallery-card strong{
  color: rgba(255,255,255,0.92);
}

.gallery-card span{
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

/* ===== FAQ ===== */
.faq{
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item{
  border-radius: var(--radius-md);
  border: 1px solid var(--line-1);

  background: linear-gradient(180deg, rgba(16,23,28,0.76), rgba(13,18,22,0.76));
  box-shadow: var(--shadow-sm);

  overflow: hidden;
}

.faq-item summary{
  cursor: pointer;
  padding: 16px 18px;
  list-style: none;

  color: rgba(255,255,255,0.93);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.faq-item summary::-webkit-details-marker{ display: none; }

.faq-body{
  padding: 0 18px 16px 18px;
}

.faq-body p{
  margin: 0;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .kpi-grid{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: 1fr; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }

  .hero--service .hero-content{
    padding: 26px 16px 54px;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  .hero-slide{ animation: none; opacity: 1; transform: none; }
  .card{ transition: none; }
  .card:hover{ transform: none; }
}

/* ===== Buttons (clean + consistent) ===== */
.btn,
.cta-button,
.footer__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 12px;

  font-weight: 750;
  text-decoration: none;
  line-height: 1;

  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16);

  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

/* Primary */
.btn--primary,
.cta-button,
.footer__cta{
  background: var(--accent-deep);
  color: #fff !important;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.34);
}

.btn--primary:hover,
.cta-button:hover,
.footer__cta:hover{
  background: var(--accent);
  transform: translateY(-1px);
}

/* Secondary */
.btn--secondary{
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.94) !important;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover{
  background: rgba(18,140,153,0.14);
  border-color: rgba(228,221,189,0.28);
  transform: translateY(-1px);
}

/* Focus rings */
.btn:focus-visible,
.cta-button:focus-visible,
.footer__cta:focus-visible{
  outline: 3px solid rgba(228,221,189,0.55);
  outline-offset: 3px;
}

/* Light-background sections safety */
.trusted .btn--secondary,
.site-footer .btn--secondary{
  background: rgba(11,95,104,0.10);
  color: #0D1216 !important;
  border-color: rgba(0,0,0,0.18);
}

/* ===== Optional: if you still see a tiny gap above hero =====
   Usually caused by body default margin in another file.
   Add this globally (NOT page-specific) if needed:
   body { margin: 0; }
*/