/* ============================================================
   common.css — Dharavi Sahakari Patpedhi
   Global reset, design tokens, nav, footer, section layout,
   shared card/button components, utility classes, mobile.
   Loaded by every page.
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #1a1208;
  --gold:       #c9922a;
  --gold-light: #f0c06c;
  --cream:      #fdf8f0;
  --sand:       #f5edda;
  --brown:      #6b4c2a;
  --navy:       #1c2e4a;
  --white:      #ffffff;
  --grey:       #7a7060;
  --border:     rgba(201,146,42,0.25);
  --shadow:     0 4px 32px rgba(26,18,8,0.10);
  --radius:     14px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 68px; /* offset for fixed nav */
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 800; color: var(--navy);
}
.nav-logo-text { color: var(--white); }
.nav-logo-text span {
  display: block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--gold-light);
}
.nav-logo-text small {
  font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(201,146,42,0.15);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: 0.3s;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 2.5rem 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
footer h4 {
  color: var(--gold-light); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
footer p { font-size: 13.5px; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 13.5px; transition: color 0.2s;
}
footer ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 13px; }
.reg-info { font-size: 12px; color: rgba(255,255,255,0.35); text-align: right; }

/* ── SECTION LAYOUT ── */
.section { padding: 72px 2.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 48px; }
.section-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--navy); line-height: 1.25;
}
.section-sub {
  color: var(--grey); font-size: 15px;
  margin-top: 10px; line-height: 1.7; max-width: 640px;
}
.divider {
  width: 52px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 16px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  border: none; padding: 13px 28px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,146,42,0.4);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 12px 26px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-full { width: 100%; text-align: center; }

/* ── SHARED CARD ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,18,8,0.12);
}
.card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--grey); line-height: 1.65; }
.card-inner-title {
  font-family: 'Playfair Display', serif;
  color: var(--navy); margin-bottom: 16px;
}

/* ── HERO BADGE (shared) ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,146,42,0.18);
  border: 1px solid rgba(201,146,42,0.35);
  color: var(--gold-light);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 24px;
}

/* ── TIMELINE (shared: home + about) ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-dot {
  position: absolute; left: -22px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-year { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.tl-desc { font-size: 13.5px; color: var(--grey); line-height: 1.55; }

/* ── SHARED TABLE STYLES ── */
.rate-badge {
  display: inline-block;
  background: rgba(201,146,42,0.12);
  color: var(--brown);
  font-weight: 700; font-size: 13px;
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(201,146,42,0.3);
}

/* ── UTILITY ── */
.bg-sand      { background: var(--sand); }
.text-center  { text-align: center; }
.two-col      { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-12        { margin-top: 12px; }
.mt-28        { margin-top: 28px; }
.mt-32        { margin-top: 32px; }
.mt-48        { margin-top: 48px; }
.mb-8         { margin-bottom: 8px; }
.gallery-hint { font-size: 13px; color: var(--grey); }

/* ── MOBILE BREAKPOINTS ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 16px; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 1.2rem; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}
