/* ==========================================================================
   BookMySandhya — Static Marketing / Verification Site
   style.css
   ========================================================================== */

:root {
  --color-primary: #F57C00;
  --color-primary-dark: #C25E00;
  --color-secondary: #FFB74D;
  --color-bg: #FFF8F0;
  --color-card: #FFFFFF;
  --color-text: #2E2A26;
  --color-text-muted: #6B6560;
  --color-border: #F0E0CC;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(46, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(245, 124, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(245, 124, 0, 0.16);

  --container-width: 1140px;
  --font-base: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
}

button {
  font-family: inherit;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 5px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1f1b16;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  min-width: 190px;
  box-shadow: var(--shadow-sm);
  cursor: not-allowed;
  opacity: 0.92;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.store-btn .store-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn .store-text small {
  font-size: 0.68rem;
  color: #d8d3cc;
  letter-spacing: 0.03em;
}

.store-btn .store-text strong {
  font-size: 0.98rem;
}

.store-badge {
  font-size: 0.62rem;
  background: var(--color-secondary);
  color: #402a00;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

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

.hero-content .eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  background: rgba(245, 124, 0, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.hero-content .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.hero-content .description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.illustration-placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
}

.illustration-placeholder span {
  font-size: 4.5rem;
}

/* ---------- Features ---------- */
.features {
  background: var(--color-bg);
}

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

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--color-text-muted);
}

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(245, 124, 0, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  max-width: 50ch;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.92);
}

.cta .store-buttons {
  justify-content: center;
}

.cta .store-btn {
  background: rgba(31, 27, 22, 0.85);
}

/* ---------- Simple content pages ---------- */
.page-hero {
  padding: 48px 0 16px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-text);
}

.page-hero .updated {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

.content-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px clamp(20px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 34px;
  margin-bottom: 12px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  color: var(--color-text);
  margin-bottom: 14px;
}

.content-card ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.content-card li {
  margin-bottom: 8px;
  color: var(--color-text);
}

.content-card a {
  font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-card .contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(245, 124, 0, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.contact-card p,
.contact-card a {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  word-break: break-word;
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.error-page h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-text);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-primary);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    order: -1;
  }

  .illustration-placeholder {
    max-width: 280px;
  }

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

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

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .store-buttons {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
