/* =========================================================
   Salaams Kailas Residential Facility For Women
   Stylesheet
   ========================================================= */

:root {
  --color-primary: #605be5;
  --color-primary-dark: #4a45c9;
  --color-accent: #ff6b4a;
  --color-accent-dark: #e8532f;
  --color-ink: #1c1c28;
  --color-body: #55576b;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f6fd;
  --color-border: #e7e6f7;
  --color-footer-bg: #0b0d1a;
  --color-footer-text: #b7b9cc;

  /* Extended accent palette — small, deliberate pops of color (icons,
     buttons, chips) against a calm neutral canvas. Muted, not candy. */
  --color-teal: #0d9488;
  --color-teal-soft: #e6f4f1;
  --color-indigo: #4f46e5;
  --color-indigo-soft: #ecebfb;
  --color-amber: #b45309;
  --color-amber-soft: #f8eee0;
  --color-rose: #be123c;
  --color-rose-soft: #f8e9ec;
  --color-violet: #6d28d9;
  --color-violet-soft: #ede7f9;
  --color-emerald: #047857;
  --color-emerald-soft: #e4f2ec;

  /* Faint, single-tone section washes — just enough identity to tell
     sections apart, never loud enough to read as a "background". */
  --wash-hero: #f7f6fb;
  --wash-indigo: #f8f7fc;
  --wash-teal: #f6faf9;
  --wash-amber: #faf8f4;
  --wash-violet: #f8f6fb;
  --wash-rose: #fbf6f7;

  --font-heading: "Fraunces", "Syne", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Poppins", "Segoe UI", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(46, 41, 130, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(46, 41, 130, 0.18);
  --container: 1180px;
}

* {
  box-sizing: border-box;
  /* Grid/flex items default to min-width:auto, which respects a child's
     intrinsic content size (e.g. an <iframe>'s built-in 300px width) and
     can force a track — and the whole page — wider than the viewport.
     Zeroing it out lets every grid/flex item shrink to fit on mobile. */
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-indigo-soft);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow--teal   { color: var(--color-teal);   background: var(--color-teal-soft); }
.eyebrow--amber  { color: var(--color-amber);  background: var(--color-amber-soft); }
.eyebrow--rose   { color: var(--color-rose);   background: var(--color-rose-soft); }
.eyebrow--violet { color: var(--color-violet); background: var(--color-violet-soft); }
.eyebrow--emerald{ color: var(--color-emerald);background: var(--color-emerald-soft); }

.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section--wash-indigo { background: var(--wash-indigo); }
.section--wash-teal   { background: var(--wash-teal); }
.section--wash-amber  { background: var(--wash-amber); }
.section--wash-violet { background: var(--wash-violet); }
.section--wash-rose   { background: var(--wash-rose); }

/* Each wash section carries a single soft, blurred color blob — a quiet
   creative signature rather than a loud fill. */
.section--wash-indigo::before,
.section--wash-teal::before,
.section--wash-amber::before,
.section--wash-violet::before,
.section--wash-rose::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.section--wash-indigo::before { background: var(--color-indigo); top: -220px; left: -160px; }
.section--wash-teal::before   { background: var(--color-teal);   top: -220px; right: -160px; }
.section--wash-amber::before  { background: var(--color-amber);  bottom: -220px; left: -160px; }
.section--wash-violet::before { background: var(--color-violet); top: -220px; right: -160px; }
.section--wash-rose::before   { background: var(--color-rose);   bottom: -220px; right: -160px; }

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

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-head p {
  color: var(--color-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-violet));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(96, 91, 229, 0.55);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--color-indigo-soft);
  color: var(--color-primary-dark);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-rose));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(232, 83, 47, 0.5);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -18px rgba(28, 28, 40, 0.5);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.brand img {
  height: 72px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 16px;
  font-weight: 500;
  color: var(--color-ink);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--color-primary);
  background: var(--color-bg-soft);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 60px;
  background: var(--wash-hero);
  overflow: hidden;
}

/* Soft blurred color "aurora" — color as atmosphere, not a flat fill.
   Purely decorative, sits behind the content, never affects layout. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -180px;
  right: -120px;
  background: var(--color-primary);
  opacity: 0.22;
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -140px;
  background: var(--color-amber);
  opacity: 0.16;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow {
  display: block;
  background: none;
  padding: 0;
  color: var(--color-primary-dark);
}

.hero-copy .eyebrow::before {
  display: none;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: 0.35em;
}

.hero-rotator {
  display: inline-block;
  color: var(--color-primary);
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s ease,
              color 0.45s ease;
}

.hero-rotator.is-swapping {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  filter: blur(4px);
}

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--color-ink);
  font-weight: 500;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- About tabs / snapshot ---------- */

.snapshot .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.snapshot-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tabs-nav button {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-body);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tabs-nav button.is-active,
.tabs-nav button:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
  font-size: 1.05rem;
}

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

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

/* ---------- Speciality / services ---------- */

.speciality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.speciality-card {
  --accent: var(--color-primary);
  --accent-soft: var(--color-indigo-soft);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.speciality-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.speciality-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}

.speciality-icon svg {
  width: 30px;
  height: 30px;
}

.speciality-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.speciality-card p {
  font-size: 0.96rem;
  margin: 0;
  color: var(--color-ink);
  opacity: 0.75;
}

/* ---------- Rooms ---------- */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.room-card {
  --accent: var(--color-primary);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.room-card:nth-of-type(2) {
  --accent: var(--color-amber);
  --accent-soft: var(--color-amber-soft);
}

.room-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-card__media img {
  transform: scale(1.05);
}

.room-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.room-card__body h3 {
  font-size: 1.35rem;
  margin: 0;
}

.room-card__body p {
  margin: 0;
  flex-grow: 1;
}

.room-card__body .btn--outline {
  background: var(--accent);
  color: #fff;
}

.room-card__body .btn--outline:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

/* ---------- About (story) ---------- */

.about-story .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-story h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-quote {
  margin-top: 28px;
  background: var(--color-violet-soft);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.about-quote h3 {
  font-size: 1.2rem;
}

.about-quote p {
  margin: 0;
}

/* ---------- Contact ---------- */

.contact .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.contact-primary .lede {
  color: var(--color-body);
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft, var(--color-bg-soft));
  color: var(--accent, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item:nth-child(1) { --accent: var(--color-indigo); --accent-soft: var(--color-indigo-soft); }
.contact-info-item:nth-child(2) { --accent: var(--color-teal); --accent-soft: var(--color-teal-soft); }
.contact-info-item:nth-child(3) { --accent: var(--color-rose); --accent-soft: var(--color-rose-soft); }

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.95rem;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-indigo-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.social-row a:nth-child(1):hover { background: #1877f2; }
.social-row a:nth-child(2):hover { background: #14171a; }
.social-row a:nth-child(3):hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-row a:nth-child(4):hover { background: #34526f; }

.social-row svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- CTA / parallax band ---------- */

.cta-band {
  position: relative;
  background-color: #6b6dff;
  background-image: linear-gradient(180deg, rgba(11, 13, 26, 0.35), rgba(11, 13, 26, 0.55)), url("../images/cta-bg.jpg");
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 100px 0 0;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}

.cta-copy {
  background: rgba(0, 0, 0, 0.43);
  border-radius: 25px;
  padding: 40px;
  margin-bottom: 60px;
}

.cta-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  max-width: 520px;
  color: #fff;
}

.cta-copy p {
  font-size: 1.1rem;
  max-width: 480px;
  color: #e7e7f5;
}

.cta-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cta-media img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.cta-decor {
  position: absolute;
  opacity: 0.5;
  width: 64px;
  pointer-events: none;
}

.cta-decor--one {
  top: 8%;
  right: 6%;
}

.cta-decor--two {
  bottom: 6%;
  left: 42%;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 80px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-top h2 {
  color: #fff;
  font-size: 2rem;
  max-width: 460px;
}

.footer-top p {
  color: var(--color-footer-text);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(135deg, #4a45c9 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 20px 40px -22px rgba(96, 91, 229, 0.6);
}

.footer-brand p {
  color: #ece9ff;
}

.footer-brand img {
  max-width: 190px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .social-row a {
  background: #1c1e30;
  color: #fff;
}

.footer-bottom .social-row a:hover {
  background: var(--color-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: #71738c;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero .container,
  .snapshot .container,
  .about-story .container,
  .contact .container,
  .cta-band .container,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

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

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

  .cta-media {
    order: -1;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
