/* ============================================
   VAANYA CLINIC — GLOBAL PAGE STYLES
   File: /css/style.css
   ============================================ */

/* ---------- Theme Variables (match header/footer) ---------- */
:root{
  --bg: #ffffff;
  --text: #101828;
  --muted: #667085;
  --brand: #0ea5e9;
  --brand-dark: #075985;
  --ring: rgba(14,165,233,0.35);
  --card: #ffffff;
  --card-dark: #0c1520;
  --shadow: 0 10px 30px rgba(2,6,23,0.08);
  --radius: 16px;
  --container: 1200px;
  --section-y: 64px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b1220;
    --text: #ecf0f5;
    --muted: #94a3b8;
    --brand: #22d3ee;
    --brand-dark: #06b6d4;
    --card: #0d1726;
    --card-dark: #0d1726;
    --shadow: 0 10px 40px rgba(0,0,0,0.35);
  }
}

/* ---------- Global Reset-ish ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img{ max-width: 100%; height: auto; display: block; border: 0; }

/* ---------- Layout Helpers ---------- */
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

main section{ padding-block: var(--section-y); }

h1,h2,h3,h4{ margin: 0 0 10px; line-height: 1.2; }
p{ margin: 0 0 12px; color: var(--muted); }

/* ============================================
   HERO (Full Page Banner)
============================================ */
.hero{
  position: relative;
  width: 100%;
  height: 70vh;            /* full viewport height */
  min-height: 490px;
  padding-block: 0;        /* remove section padding for hero */
  background: url('/img/banner.jpg') center/cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* If header is sticky and overlaps: uncomment next line and set header height */
  /* scroll-margin-top: 80px; */
}

.hero .overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(34,211,238,0.20), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2,6,23,0.65));
  backdrop-filter: saturate(110%) blur(1px);
}

.hero .hero-content{
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 16px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero h4{
  font-weight: 600;
  font-size: clamp(48px, 8vw, 100px);
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}

.hero h1{
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.1;
}

/* ============================================
   RATINGS STRIP
============================================ */
.ratings{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: -40px; /* overlap with hero */
  padding-inline: 16px;
}

.rating-box{
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
  display: grid;
  place-items: center;
  text-align: center;
  transition: transform .12s ease, box-shadow .2s ease;
}
.rating-box:hover{ transform: translateY(-3px); }

.rating-box .score{
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  display: block;
  line-height: 1;
}
.rating-box p{
  margin: 6px 0 6px;
  font-weight: 600;
  color: var(--text);
}
.rating-box .stars{
  font-size: 16px;
  letter-spacing: 2px;
  color: #fbbf24; /* star gold */
}

/* ============================================
   SPECIAL FEATURE
============================================ */
.special-feature{
  position: relative;
  background:
    radial-gradient(600px 180px at 10% -10%, rgba(34,211,238,0.12), transparent 70%),
    linear-gradient(180deg, rgba(2,6,23,0.02), rgba(2,6,23,0.02));
}

.special-feature h2{
  text-align: center;
  font-size: clamp(22px, 3.2vw, 32px);
  margin-bottom: 24px;
}

.feature-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.feature-box{
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .12s ease, box-shadow .2s ease; /* fixed */
}
.feature-box:hover{ transform: translateY(-4px); }          /* fixed */

.feature-box img{
  width: 54px;
  height: 54px;                                              /* fixed */
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: 10px;
  border-radius: 12px;                                        /* fixed */
}
.feature-box h3{
  font-size: 26px;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-box p{
  margin: 0;
  font-size: 14.5px;
}

/* ============================================
   HAIR TRANSPLANT INFO + RESULTS
============================================ */
.hair-transplant-info h2{
  text-align: center;
  font-size: clamp(22px, 3.2vw, 34px);
  margin-bottom: 10px;
}
.hair-transplant-info h2 span{ color: var(--brand); }

.hair-transplant-info .intro-text{
  max-width: 900px;
  margin: 8px auto 24px;
  text-align: center;
  font-size: 16px;
}

.results-gallery{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-card{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.result-card img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.result-card:hover img{ transform: scale(1.05); }

.hair-transplant-info .bottom-text{
  max-width: 980px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 15.5px;
}

/* ============================================
   VIDEO SECTION
============================================ */
.video-section{
  background:
    radial-gradient(700px 260px at 90% -10%, rgba(7,89,133,0.18), transparent 70%),
    linear-gradient(180deg, rgba(2,6,23,0.02), rgba(2,6,23,0.02));
}

.videos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.video-box{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video-box > img{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(105%);
}

.play-btn{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(200px 200px at center, rgba(0,0,0,0.20), transparent 60%);
  transition: background .2s ease;
}
.play-btn:hover{ background: radial-gradient(220px 220px at center, rgba(0,0,0,0.28), transparent 60%); }

.play-btn img{
  width: 64px; height: 64px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.video-title{
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  background: rgba(2,6,23,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}
.video-title h3{ font-size: 14.5px; margin: 0; }

/* ============================================
   CLINIC IMAGES
============================================ */
.clinic-images h2{
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 18px;
}

.clinic-images .gallery{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.clinic-images .gallery img{
  border-radius: 14px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.clinic-images .gallery img:hover{ transform: translateY(-3px); }

/* ============================================
   TEAM SECTION
============================================ */
.team-section{
  background:
    radial-gradient(900px 280px at 15% -10%, rgba(34,211,238,0.12), transparent 70%);
  padding-bottom: calc(var(--section-y) + 8px);
}
.section-title{
  text-align: center;
  font-size: clamp(24px, 3.4vw, 36px);
  margin-bottom: 8px;
  color: var(--text);
}
.section-desc{
  max-width: 1000px;
  margin: 8px auto 24px;
  text-align: center;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
}
.team-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  align-items: stretch;
}
.team-img{
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--card);
  height: 420px;
  position: relative;
}
.team-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  transition: transform .4s ease, filter .3s ease;
  filter: brightness(0.96) contrast(1.05);
}
.team-img:hover img{
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.1);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1180px){
  .ratings{ grid-template-columns: repeat(4, 1fr); }
  .feature-grid{ grid-template-columns: repeat(4, 1fr); }
  .results-gallery{ grid-template-columns: repeat(4, 1fr); }
  .clinic-images .gallery{ grid-template-columns: repeat(4, 1fr); }
  .team-gallery{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px){
  .ratings{ grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .results-gallery{ grid-template-columns: repeat(3, 1fr); }
  .clinic-images .gallery{ grid-template-columns: repeat(3, 1fr); }
  .videos{ grid-template-columns: 1fr; }
  .team-gallery{ grid-template-columns: repeat(2, 1fr); }
  .team-img{ height: 380px; }
}

@media (max-width: 760px){
  main section{ padding-block: 44px; }
  .ratings{ grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .results-gallery{ grid-template-columns: repeat(2, 1fr); }
  .clinic-images .gallery{ grid-template-columns: repeat(2, 1fr); }
  .team-gallery{ grid-template-columns: 1fr; }
  .team-img{ height: 320px; }
}

@media (max-width: 460px){
  .ratings{ grid-template-columns: 1fr; margin-top: -18px; }
  .results-gallery{ grid-template-columns: 1fr; }
  .clinic-images .gallery{ grid-template-columns: 1fr; }
  .team-gallery{ grid-template-columns: 1fr; }
  .team-img{ height: 280px; }
}
