/* ============================================================
   Mansavi Villa — Policy page stylesheet
   Used by: privacy.html, cancellation.html, terms.html
   ============================================================ */

:root {
  --bone: #F6F1E7;
  --bone-deep: #EFE7D5;
  --ink: #161613;
  --ink-soft: #3A3A35;
  --sindoor: #A6391C;
  --sage: #5E6B53;
  --brass: #8E6B2E;
  --hairline: rgba(22, 22, 19, 0.12);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --devanagari: 'Tiro Devanagari Hindi', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container, .narrow { padding: 0 20px; }
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-family: var(--devanagari);
  color: var(--sindoor);
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.cta-btn {
  background: var(--ink);
  color: var(--bone);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
}

.cta-btn:hover, .cta-btn:focus-visible {
  background: var(--sindoor);
  outline: none;
}

.cta-btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.cta-btn.outline:hover {
  background: var(--ink);
  color: var(--bone);
}

@media (max-width: 720px) {
  .nav a:not(.cta-btn) { display: none; }
}

/* ============ TITLE BLOCK ============ */
.page-title {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--hairline);
}

.page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sindoor);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sindoor);
}

.page-title h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144;
}

.page-title h1 em {
  font-style: italic;
  color: var(--sindoor);
}

.effective-date {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ CONTENT ============ */
.policy-content {
  padding: 70px 0 100px;
}

.policy-content h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 60px 0 20px;
  color: var(--ink);
  line-height: 1.25;
}

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

.policy-content h2 .num {
  color: var(--sindoor);
  font-weight: 400;
  font-style: italic;
  margin-right: 12px;
}

.policy-content h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  margin: 32px 0 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.policy-content p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

.policy-content ul, .policy-content ol {
  margin: 0 0 24px 24px;
  color: var(--ink-soft);
}

.policy-content li {
  margin-bottom: 10px;
  padding-left: 8px;
}

.policy-content li strong {
  color: var(--ink);
}

.policy-content a {
  color: var(--sindoor);
  border-bottom: 1px solid rgba(166, 57, 28, 0.3);
  transition: border-color 0.2s;
}

.policy-content a:hover {
  border-bottom-color: var(--sindoor);
}

.policy-content strong {
  color: var(--ink);
  font-weight: 600;
}

.policy-content .callout {
  background: var(--bone-deep);
  border-left: 3px solid var(--sindoor);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.policy-content .callout p:last-child {
  margin-bottom: 0;
}

.contact-block {
  background: var(--bone-deep);
  padding: 32px;
  margin-top: 40px;
  border-left: 3px solid var(--sindoor);
}

.contact-block h3 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 14px;
}

.contact-block p {
  margin-bottom: 6px;
  font-size: 15px;
}

/* Refund-table specific */
.refund-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.refund-table th, .refund-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.refund-table th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bone-deep);
}

.refund-table td {
  color: var(--ink-soft);
}

.refund-table tr:last-child td {
  border-bottom: none;
}

.refund-table .pct {
  font-family: var(--display);
  font-size: 18px;
  color: var(--sindoor);
  font-weight: 500;
}

/* ============ BACK TO HOME ============ */
.back-strip {
  background: var(--bone-deep);
  padding: 50px 0;
  text-align: center;
}

.back-strip p {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--ink);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(246, 241, 231, 0.7);
  padding: 60px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer h5 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: rgba(246, 241, 231, 0.7);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--brass);
}

.footer-brand {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.5);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
