/* ============================================================
   RoomKhata — Shared Internal Page Layout
   File: css/page.css
   Load AFTER style.css.
   ============================================================ */

/* ---------- page shell ---------- */
.rk-page {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.rk-page::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.rk-page::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 188, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* banner mode: no top glow needed, banner supplies its own */
.rk-page.has-banner {
  padding-top: 0;
}
.rk-page.has-banner::before {
  display: none;
}

/* ---------- container ---------- */
.rk-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 10px;
}

.rk-container-narrow {
  max-width: 85%;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .rk-container-narrow {
  max-width: 95%;
}
}

/* content container gets top spacing when a banner precedes it */
.rk-page-body--after-banner {
  padding: 40px 0 50px;
}

/* ---------- page header ---------- */
.rk-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.rk-page-header .common-title {
  margin-bottom: 16px;
}

/* ---------- page content ---------- */
.rk-page-content {
  position: relative;
  z-index: 1;
}

/* ---------- in-page sections ---------- */
.rk-section {
  position: relative;
  margin-top: 90px;
}

.rk-section:first-child {
  margin-top: 0;
}

.rk-section-header {
  text-align: center;
  margin-bottom: 44px;
}

.rk-section-header .common-title {
  margin-bottom: 14px;
}

/* ---------- reusable grid ---------- */
.rk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.rk-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.rk-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rk-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- reusable card ---------- */
.rk-card {
  background: #ffffff;
  border: 1.4px solid #6bbcff;
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 3px 14px rgba(10, 8, 6, 0.05);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.rk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(10, 8, 6, 0.1);
  border-color: #008cff;
}

.rk-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: #0a0806;
  margin-bottom: 10px;
}

.rk-card-desc {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: #4a3f2c;
  font-weight: 500;
}

/* ---------- spacing utilities ---------- */
.rk-spacing-sm {
  margin-top: 24px;
}
.rk-spacing-md {
  margin-top: 48px;
}
.rk-spacing-lg {
  margin-top: 90px;
}

/* ============================================================
   PAGE BANNER (hero-style header for pages like Contact/Pricing)
   ============================================================ */

.rk-page-banner {
  position: relative;
  overflow: hidden;
  padding: 170px 20px 60px;
  background:
    radial-gradient(
      circle at top right,
      rgba(201, 168, 76, 0.08),
      transparent 38%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(107, 188, 255, 0.06),
      transparent 42%
    ),
    linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
}

.rk-page-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Golden glow */
.rk-page-banner-bg::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  top: -330px;
  right: -170px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.22) 0%,
    rgba(201, 168, 76, 0.1) 28%,
    rgba(201, 168, 76, 0.03) 55%,
    transparent 75%
  );
  filter: blur(12px);
}

/* Blue glow */
.rk-page-banner-bg::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  bottom: -340px;
  left: -170px;
  background: radial-gradient(
    circle,
    rgba(107, 188, 255, 0.18) 0%,
    rgba(107, 188, 255, 0.08) 32%,
    rgba(107, 188, 255, 0.03) 60%,
    transparent 78%
  );
  filter: blur(16px);
}

/* Softer luxury grid */
.rk-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 1px, transparent 1px);

  background-size: 44px 44px;

  opacity: 0.55;

  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.55) 72%,
    transparent 100%
  );

  -webkit-mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.55) 72%,
    transparent 100%
  );

  pointer-events: none;
}

.rk-page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.rk-page-banner .rk-container {
  position: relative;
  z-index: 2;
}

.rk-page-header--banner {
  margin-bottom: 0;
}

/* eyebrow/title/subtitle now use the same dark-on-light look as
   the default (non-banner) header — no color overrides needed */

.rk-page-header--banner .common-eyebrow {
  color: var(--gold-light);
}
.rk-page-header--banner .common-eyebrow::before,
.rk-page-header--banner .common-eyebrow::after {
  background: var(--gold-light);
}

.rk-page-header--banner .common-title {
  color: #000;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.rk-page-header--banner .common-title em {
  color: #c9a84c;
}

.rk-page-header--banner .common-sub {
  color: rgba(0, 0, 0, 0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .rk-page {
    padding: 150px 20px 90px;
  }
  .rk-page.has-banner {
    padding-top: 0;
  }
  .rk-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rk-page-banner {
    padding: 150px 0 50px;
  }
}

@media (max-width: 768px) {
  .rk-page {
    padding: 130px 18px 80px;
  }
  .rk-page.has-banner {
    padding-top: 0;
  }
  .rk-page-header {
    margin-bottom: 44px;
  }
  .rk-grid-2,
  .rk-grid-3,
  .rk-grid-4 {
    grid-template-columns: 1fr;
  }
  .rk-section {
    margin-top: 64px;
  }
  .rk-page-banner {
    padding: 130px 0 30px;
  }
  .rk-page-body--after-banner {
    padding: 25px 0 40px;
  }
  .rk-page-banner::after {
    height: 100px;
  }
}

@media (max-width: 600px) {
  .rk-page {
    padding: 120px 16px 70px;
  }
  .rk-page.has-banner {
    padding-top: 0;
  }
  .rk-page::before,
  .rk-page::after {
    display: none;
  }
  .rk-page-banner-bg::before,
  .rk-page-banner-bg::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .rk-page {
    padding: 110px 14px 60px;
  }
  .rk-page.has-banner {
    padding-top: 0;
  }
  .rk-card {
    padding: 24px 20px;
  }
  .rk-page-banner {
    padding: 110px 0 20px;
  }
  .rk-page-banner::after {
    height: 70px;
  }
}

@media (max-width: 375px) {
  .rk-page {
    padding: 100px 12px 50px;
  }
  .rk-page.has-banner {
    padding-top: 0;
  }
}
