/* ============================================
   CARNATIC MUSIC — DESIGN SYSTEM
   Aesthetic: Sacred Luxury · Temple Gold · Deep Ink
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --ink:        #0e0c0a;
  --parchment:  #faf6ee;
  --gold:       #b8893a;
  --gold-light: #d4a85a;
  --gold-pale:  #f0deb8;
  --rust:       #7a3e1e;
  --cream:      #f5edd8;
  --muted:      #7a6e5f;
  --border:     rgba(184,137,58,0.25);

  --ff-display: 'Cinzel', serif;
  --ff-body:    'Cormorant Garamond', serif;
  --ff-text:    'EB Garamond', serif;

  --nav-h: 80px;
  --max-w: 1180px;

  --ease-silk: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--parchment);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(14,12,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,137,58,0.18);
  transition: background 0.4s var(--ease-silk);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.15em;
}

.nav-logo-sub {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.7);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease-silk);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  font-family: var(--ff-display) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.18em;
  color: var(--gold) !important;
  border: 1px solid rgba(184,137,58,0.5);
  padding: 0.55rem 1.3rem;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--gold-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Ornament divider ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
}
.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-sym {
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
}

/* ── Section wrapper ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-family: var(--ff-display);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.section-title-light {
  color: var(--parchment);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease-silk), color 0.35s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-silk);
  z-index: 0;
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--ink); }
.btn span { position: relative; z-index: 1; }

.btn-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-dark::before { background: var(--ink); }
.btn-dark:hover { color: var(--parchment); }

/* ── Page header (inner pages) ── */
.page-header {
  padding-top: var(--nav-h);
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 120%, rgba(184,137,58,0.18) 0%, transparent 70%);
}

.page-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8893a' fill-opacity='1'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── Cards ── */
.card {
  background: white;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 12px 48px rgba(184,137,58,0.12);
  transform: translateY(-4px);
}

/* ── Gold badge ── */
.badge {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: rgba(250,246,238,0.55);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.footer-brand-sub {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.footer-text {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--ff-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(250,246,238,0.55);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(184,137,58,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--ink);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184,137,58,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(250,246,238,0.3);
  font-style: italic;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%  { background-position: -200% center; }
  100%{ background-position:  200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-silk), transform 0.8s var(--ease-silk);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(14,12,10,0.97);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease-silk);
    border-bottom: 1px solid rgba(184,137,58,0.2);
  }

  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}