/* Kartikeya Astrology - shared stylesheet */
:root {
  --maroon: #6b0f1a;
  --saffron: #d97706;
  --gold: #c9a227;
  --cream: #fdf6e3;
  --ink: #1f1b16;
  --muted: #5b524a;
  --line: #e5d9b6;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(107, 15, 26, 0.10);
  --radius: 10px;
  --max: 1140px;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--maroon);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; color: var(--ink); }

p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand .om {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--maroon);
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a.active,
.nav-links a:hover { color: var(--maroon); text-decoration: none; }
.nav-cta {
  background: var(--maroon);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: #4a0a12; text-decoration: none; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}
.lang-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  border-radius: 4px;
}
.lang-btn:hover { color: var(--maroon); background: var(--cream); }
.lang-btn.active {
  color: var(--maroon);
  background: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-sep { color: var(--line); user-select: none; }

/* Telugu font — applied when <html lang="te"> */
html[lang="te"] body,
html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="te"] h4,
html[lang="te"] .brand,
html[lang="te"] input,
html[lang="te"] select,
html[lang="te"] textarea,
html[lang="te"] button {
  font-family: "Noto Sans Telugu", "Inter", system-ui, -apple-system, sans-serif;
}
html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="te"] h4 {
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--maroon);
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(107,15,26,0.92), rgba(217,119,6,0.85)),
    radial-gradient(circle at 30% 30%, #fff3d6, transparent 60%);
  color: var(--white);
  padding: 5rem 1.25rem 5.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p { color: #fff4e0; font-size: 1.15rem; max-width: 720px; margin: 0 auto 2rem; }
.hero-cta {
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #b48a1c; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--maroon); text-decoration: none; }
.btn-dark { background: var(--maroon); color: var(--white); }
.btn-dark:hover { background: #4a0a12; text-decoration: none; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 0.4em; }
.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(107,15,26,0.14); }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--maroon);
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.card h3 { color: var(--maroon); }
.card a.read-more {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--saffron);
}

/* Two-column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Service detail page */
.page-header {
  background: linear-gradient(135deg, var(--maroon), #8a1d2b);
  color: var(--white);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header p { color: #fde6c4; max-width: 720px; margin: 0 auto; }

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-list li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.detail-list li h3 { margin-bottom: 0.35em; color: var(--maroon); }
.detail-list li p { margin: 0; }

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0 0;
}
.callout h2 { color: var(--white); }
.callout p { color: #fff4e0; }

/* Form */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form .field { margin-bottom: 1.1rem; }
.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d6cdb3;
  border-radius: 6px;
  background: #fffdf6;
  color: var(--ink);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form button[type="submit"] {
  width: 100%;
  background: var(--maroon);
  color: var(--white);
  padding: 0.9rem;
  border: 0;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.form button[type="submit"]:hover { background: #4a0a12; }
.form .note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* Honeypot — visually hidden but present in DOM */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: #e6f4ea; color: #1e5e2c; border: 1px solid #b6dcc0; }
.form-status.error   { display: block; background: #fbeaea; color: #7d1f1f; border: 1px solid #e7c3c3; }

/* Contact info side panel */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.info-card h3 { color: var(--maroon); }
.info-card p, .info-card a { font-size: 0.98rem; }

/* Footer */
.site-footer {
  background: #2a1010;
  color: #f4e3c0;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: var(--gold); font-family: var(--font-serif); margin-bottom: 0.8rem; }
.site-footer a { color: #f4e3c0; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid #44201f;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: #d8c39a;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}
