/* ===========================================================
   Swadharma — Stylesheet v2
   Premium "Teal & Gold" devotional theme. Pure HTML + CSS.
   =========================================================== */

:root {
  --teal: #0f5e5a;
  --teal-2: #157a6e;
  --teal-dark: #093f3c;
  --teal-ink: #0a302e;
  --gold: #c79a2e;
  --gold-2: #e6bb4d;
  --terra: #c8642d;
  --cream: #fbf8f2;
  --cream-2: #eef4f1;
  --cream-3: #e4ede9;
  --surface: #ffffff;
  --ink: #1f2a28;
  --muted: #5f6f6b;
  --line: #e3ddd0;
  --shadow: 0 10px 30px rgba(9, 63, 60, 0.10);
  --shadow-lg: 0 20px 48px rgba(9, 63, 60, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

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

body {
  font-family: 'Mukta', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: 'Marcellus', Georgia, serif; color: var(--teal-dark); line-height: 1.2; font-weight: 400; letter-spacing: 0.3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-ink); color: #d9e7e3; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 22px; }
.topbar a { color: var(--gold-2); }
.topbar a:hover { color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--surface); box-shadow: 0 4px 20px rgba(9,63,60,0.07); position: sticky; top: 0; z-index: 100; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; gap: 18px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; display: block; }

.nav-menu { display: flex; }
.menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu a {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink); font-size: 0.98rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s; position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 7px;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.menu > li > a:hover { color: var(--teal); }
.menu > li > a:hover::after { transform: scaleX(1); }
.menu a.active { color: var(--teal); font-weight: 600; }
.menu a.active::after { transform: scaleX(1); }
.caret { font-size: 0.7rem; transition: transform 0.25s; }

/* Dropdown */
.dropdown {
  list-style: none; position: absolute; top: calc(100% - 4px); left: 0;
  min-width: 230px; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.22s; z-index: 110;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown li { width: 100%; }
.dropdown a { padding: 11px 14px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--cream-2); color: var(--teal); }

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle-btn span { display: block; width: 26px; height: 3px; background: var(--teal); border-radius: 3px; transition: transform 0.3s, opacity 0.2s; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--teal-ink); padding: 13px 30px; border-radius: 50px;
  font-weight: 600; font-size: 0.98rem; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 8px 20px rgba(199, 154, 46, 0.35);
}
.btn:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); box-shadow: none; }
.btn.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center; padding: 130px 22px;
  background:
    linear-gradient(rgba(9, 63, 60, 0.78), rgba(10, 48, 46, 0.82)),
    url('images/hero-temple.jpg') center/cover no-repeat;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom: 18px; }
.hero p { font-size: 1.18rem; max-width: 720px; margin: 0 auto 30px; color: #ecf5f2; font-weight: 300; }
.hero .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-outline:hover { background: #fff; color: var(--teal); border-color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 54px; }
.section-head .tag { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); border-radius: 4px; margin: 16px auto 0; }
.section-head p { color: var(--muted); font-size: 1.07rem; }

/* ---------- Tag / pill ---------- */
.tag {
  display: inline-block; background: var(--cream-3); color: var(--teal);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card .card-img { height: 210px; width: 100%; object-fit: cover; }
.card .card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card .card-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card .card-body p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card .card-link {
  margin-top: 16px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link:hover { color: var(--gold); gap: 10px; }

/* ---------- Features / steps ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { text-align: center; padding: 32px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature .icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature h4 { color: var(--teal-dark); margin-bottom: 8px; font-size: 1.12rem; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Page banner ---------- */
.page-banner {
  color: #fff; text-align: center; padding: 96px 22px;
  background-image: linear-gradient(rgba(9, 63, 60, 0.80), rgba(10, 48, 46, 0.84)), var(--banner-img, url('images/banner.jpg'));
  background-size: cover; background-position: center;
}
.page-banner h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-banner p { color: #ecf5f2; margin-top: 10px; font-weight: 300; font-size: 1.1rem; }
.breadcrumb { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.breadcrumb .container { padding: 14px 22px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--teal); }

/* ---------- Content / legal ---------- */
.content { padding: 70px 0; }
.content .container { max-width: 920px; }
.content h2 { font-size: 1.7rem; margin: 38px 0 12px; }
.content h3 { font-size: 1.22rem; margin: 26px 0 8px; color: var(--terra); }
.content p, .content li { color: var(--ink); margin-bottom: 12px; }
.content ul, .content ol { margin: 0 0 16px 22px; }
.content li { margin-bottom: 8px; }
.content .updated { color: var(--muted); font-style: italic; font-size: 0.9rem; margin-bottom: 28px; }
.callout { background: var(--cream-2); border-left: 5px solid var(--gold); padding: 18px 22px; border-radius: 10px; margin: 22px 0; }

/* ---------- Split (about / service detail) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.split p { color: var(--muted); margin-bottom: 14px; }
.split ul { margin: 0 0 22px 0; list-style: none; }
.split ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.split ul li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 1rem; }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 10px; }
.value-box { background: var(--surface); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.value-box h4 { color: var(--terra); margin-bottom: 8px; font-size: 1.2rem; }
.value-box p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--cream-3); }
.info-item:last-child { border-bottom: none; }
.info-item .ico { font-size: 1.6rem; }
.info-item h4 { color: var(--teal-dark); margin-bottom: 2px; font-size: 1.1rem; }
.info-item p { color: var(--muted); margin: 0; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--teal-dark); }
.form-field input, .form-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.97rem; background: var(--cream); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 44px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; text-align: center; padding: 72px 22px; }
.cta-band h2 { color: #fff; font-size: 2.2rem; margin-bottom: 14px; }
.cta-band p { max-width: 660px; margin: 0 auto 26px; color: #d9e7e3; font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: #cdddd8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.15rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cdddd8; font-size: 0.93rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer p { font-size: 0.92rem; color: #a9bfba; }
.footer-brand .footer-logo { height: 56px; width: auto; display: block; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.10); color: #fff; font-size: 0.78rem; font-weight: 700; transition: background 0.2s, transform 0.15s; }
.social a:hover { background: var(--gold); color: var(--teal-ink); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding: 22px 0; text-align: center; font-size: 0.85rem; color: #a9bfba; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle-btn { display: flex; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .menu li { width: 100%; }
  .menu > li > a { border-radius: 0; padding: 15px 24px; border-bottom: 1px solid var(--cream-2); }
  .menu > li > a::after { display: none; }
  .nav-toggle:checked ~ .nav-menu { max-height: 620px; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* dropdown becomes a static expanded sub-list */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0; min-width: 0; background: var(--cream); border-radius: 0; }
  .dropdown a { padding: 13px 24px 13px 44px; border-bottom: 1px solid var(--cream-2); font-size: 0.95rem; }
  .caret { margin-left: auto; }
}
@media (max-width: 900px) {
  .grid-3, .feature-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > div:first-child { order: 2; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar span { width: 100%; text-align: center; }
  .brand-logo { height: 44px; }
  .hero { padding: 90px 18px; }
  .section { padding: 56px 0; }
}
