/* ============================================================
   LAYOUT — Base reset, grid systems, section structure
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ── Sections ── */
.section        { padding: var(--section-pad); }
.section-inner  { max-width: var(--max-w); margin: 0 auto; }
.section-sm     { max-width: var(--max-w-sm); margin: 0 auto; }

.section--white     { background: var(--white); }
.section--off       { background: var(--off); }
.section--gold-pale { background: var(--gold-pale); }
.section--ink       { background: var(--ink); }

/* ── Section Header ── */
.section-head         { margin-bottom: 48px; }
.section-eyebrow      { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-eyebrow-line { height: 1px; width: 24px; background: var(--gold); }
.section-eyebrow-text { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.section-titles       { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.section-title-en     { font-family: var(--font-serif); font-size: clamp(24px,3.5vw,36px); font-weight: 600; color: var(--ink); line-height: 1.1; }
.section-title-ta     { font-family: var(--font-tamil); font-size: clamp(18px,2.5vw,24px); font-weight: 700; color: var(--ink2); line-height: 1.2; }
.section-divider      { width: 40px; height: 2px; background: var(--gold); margin-top: 14px; border-radius: 2px; }
.section-sub          { font-size: 15px; color: var(--ink3); margin-top: 12px; max-width: 560px; line-height: 1.7; }
.section-dot          { color: var(--border2); font-size: 22px; font-weight: 300; }

/* ── Grids ── */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr;           gap: 24px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr);      gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr);      gap: 16px; }
.grid-6  { display: grid; grid-template-columns: repeat(6,1fr);      gap: 10px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }

/* ── Specific layout grids ── */
.hero-grid    { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.about-grid   { display: grid; grid-template-columns: 300px 1fr;  gap: 56px; align-items: start; }
.horo-grid    { display: grid; grid-template-columns: 1fr 380px;  gap: 48px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr;    gap: 56px; align-items: start; }

/* ── Topbar ── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 7px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.topbar a:hover { color: var(--gold-lt); }
.topbar-left  { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.tb-dot   { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.tb-item  { display: flex; align-items: center; gap: 5px; }
.tb-icon  { font-size: 13px; }
.tb-val   { color: rgba(255,255,255,0.9); font-weight: 500; }
.tb-label { color: rgba(255,255,255,0.4); font-size: 11px; }

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.logo-name-en { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.logo-name-ta { font-family: var(--font-tamil); font-size: 12px; color: var(--ink3); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 13.5px;
  color: var(--ink2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
nav a:hover { color: var(--gold); background: var(--gold-pale); }

/* ── Nalla Neram Strip ── */
.nalla-strip {
  background: var(--gold-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
}
.nalla-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 13px;
}
.nalla-badge { background: var(--gold); color: var(--white); font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; letter-spacing: 0.04em; }
.nalla-item  { color: var(--ink2); }
.nalla-item strong { color: var(--ink); font-weight: 500; }
.nalla-dot   { color: var(--border2); }

/* ── Hero ── */
.hero {
  background: var(--white);
  padding: 80px 32px 70px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}
.hero-bg-circle {
  position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.4; pointer-events: none;
}

/* ── About photo ── */
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--gold-bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-badge {
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* ── Rasi Grid ── */
.rasi-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 10px;
  margin-bottom: 24px;
}

/* ── Contact Section ── */
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item  { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ci-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.ci-value { font-size: 14.5px; color: rgba(255,255,255,0.85); }
.ci-value-ta { font-family: var(--font-tamil); font-size: 12px; color: rgba(255,255,255,0.45); }

/* ── Footer ── */
footer {
  background: #0F0D0A;
  color: rgba(255,255,255,0.4);
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo-img  { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; opacity: 0.85; }
.footer-name-en   { font-family: var(--font-serif); font-size: 20px; color: rgba(255,255,255,0.7); }
.footer-name-ta   { font-family: var(--font-tamil); font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.footer-links     { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a   { font-size: 13px; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-lt); }
.footer-copy      { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── WhatsApp Float Button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ── Horoscope Result ── */
.horo-result {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.horo-note {
  font-size: 12.5px;
  color: var(--ink3);
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--gold-pale);
  border-radius: 7px;
  line-height: 1.65;
}

/* ── Rasi Result ── */
.rasi-result {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* ── Article Cards ── */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--cream2) 0%, #d4a060 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.article-body { padding: 18px 20px; }
.article-tag  {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-dk); background: var(--cream2);
  padding: 3px 10px; border-radius: 12px;
  display: inline-block; margin-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .horo-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card-wrap { display: none; }
  .rasi-grid { grid-template-columns: repeat(4,1fr); }
  .grid-3    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --section-pad: 52px 20px; }
  .header-inner, .topbar, .nalla-strip, .nalla-inner { padding-left: 20px; padding-right: 20px; }
  nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; box-shadow: var(--shadow-md); }
  nav.open { display: flex; }
  nav a    { padding: 12px 24px; border-radius: 0; }
  header   { position: relative; }
  .mobile-btn { display: flex !important; }
  .rasi-grid  { grid-template-columns: repeat(3,1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rasi-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 48px 20px; }
}
