/* ============================================================
   Padaippu — shared marketing stylesheet
   Plain CSS, no framework, no JS. Designed to feel like a real
   Tamil-publishing brand rather than a generic landing page.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette: burgundy + cream + warm gold — premium-publisher feel */
  --brand:        #7c2d12;          /* deep burgundy */
  --brand-dark:   #5c1f0c;
  --brand-soft:   #fde6d3;          /* cream highlight */
  --accent:       #d97706;          /* warm copper / gold */
  --accent-soft:  #fbbf24;
  --ink:          #1c1917;          /* near-black, warmer than slate */
  --ink-2:        #57534e;
  --ink-3:        #a8a29e;
  --line:         #e7e5e4;
  --bg:           #fdf6e9;          /* warm cream */
  --bg-2:         #fffaf2;
  --card:         #ffffff;
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 14px rgba(124, 45, 18, 0.08);
  --shadow-lg:    0 16px 40px rgba(124, 45, 18, 0.12);
  --radius:       14px;
  --radius-sm:    8px;

  /* Type system */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Inter', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }

/* ---------- Layout ---------- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img.logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.brand .mark {
  font-family: var(--font-tamil);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.brand .name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
nav.primary a {
  color: var(--ink-2);
  text-decoration: none;
  margin-left: 22px;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
nav.primary a:hover { color: var(--brand); }
nav.primary a.admin {
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}
nav.primary a.admin:hover { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  overflow: hidden;
}
/* Decorative brand watermark behind the hero — sized to fade gracefully. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('logo.svg') center center no-repeat;
  background-size: clamp(280px, 50vw, 520px);
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .accent {
  color: var(--brand);
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.cta.outline {
  background: var(--card);
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.cta.outline:hover { background: var(--brand); color: #fff; }
.cta.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.cta svg { flex-shrink: 0; }
.cta-note {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 72px 0 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.feature .icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--font-serif);
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- Quote band ---------- */
.quote-band {
  margin: 80px 0;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '“';
  position: absolute;
  top: -50px;
  left: 30px;
  font-family: var(--font-serif);
  font-size: 240px;
  color: rgba(255,255,255,0.08);
  font-weight: 700;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.quote-band cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 36px 0 28px;
  background: var(--bg-2);
}
footer.site .top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer.site .links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}
footer.site .links a:first-child { margin-left: 0; }
footer.site .links a:hover { color: var(--brand); }
footer.site .copy {
  font-size: 13px;
  color: var(--ink-3);
}
.company-strip {
  max-width: 760px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Legal pages (privacy / terms) ---------- */
article.legal {
  padding: 56px 0 24px;
}
article.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
article.legal .updated {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 36px;
  font-style: italic;
}
article.legal h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--ink);
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}
article.legal p, article.legal li {
  color: var(--ink-2);
  font-size: 15.5px;
}
article.legal ul { padding-left: 22px; }
article.legal ul li { margin-bottom: 6px; }
article.legal code {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
article.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-underline-offset: 3px;
}
article.legal a:hover { text-decoration-color: var(--brand); }

/* ---------- FAQ (accordion using <details>/<summary>) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 28px;
}
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
details.faq[open] {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  list-style: none;        /* hide default ▶ marker */
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .12s ease;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { background: var(--bg-2); }
details.faq summary::after {
  content: '+';
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease;
}
details.faq[open] summary::after {
  content: '–';
  transform: rotate(0deg);
}
details.faq .answer {
  padding: 4px 18px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 0;
}

/* ---------- Contact card (bottom of FAQ) ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff7ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 40px 0 8px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 6px;
}
.contact-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  nav.primary a { margin-left: 14px; }
  nav.primary a.admin { padding: 6px 12px; }
  footer.site .top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  footer.site .links a { margin-left: 0; margin-right: 16px; }
}
