/* ============================================================
   Tulu Koota Sydney — style.css
   Palette: laterite red, turmeric gold, Arabian-sea teal, sand
   Type:    Anek Kannada (display) + Karla (body)
   ============================================================ */

:root {
  --laterite: #8f2318;      /* deep Tulu Nadu laterite / Yakshagana red */
  --laterite-dark: #6d1a11;
  --gold: #e3a72f;          /* turmeric / temple-flag gold */
  --gold-soft: #f2c96b;
  --sea: #1b5e63;           /* Arabian sea teal */
  --ink: #241410;           /* coffee-black text */
  --sand: #fbf5ea;          /* warm sand background */
  --white: #ffffff;
  --line: rgba(36, 20, 16, 0.14);

  --font-display: "Anek Kannada", "Noto Sans Kannada", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 20, 16, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--laterite); }

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

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 72px; height: auto; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-bottom-color: var(--gold); }

.nav-links a.active { border-bottom-color: var(--laterite); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: var(--laterite-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0.38;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.5rem 1.25rem 7.5rem;
}

.hero .eyebrow { color: var(--gold-soft); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  max-width: 16ch;
  margin: 0.4rem 0 1.1rem;
}

.hero h1 .kn { color: var(--gold); }

.hero p {
  max-width: 52ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* temple-flag scallop edge — the signature */
.scallop {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 26px;
  display: block;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--laterite);
}

.eyebrow .en {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--sea);
  margin-left: 0.55rem;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
}

.section { padding: 4.5rem 0; }

.section.alt { background: var(--white); }

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-laterite { background: var(--laterite); color: var(--white); }
.btn-sea { background: var(--sea); color: var(--white); }

/* ---------- Two-column feature ---------- */

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--gold);
}

.feature-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--sea), var(--laterite));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media .kn-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.card-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.card-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  background: rgba(27, 94, 99, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.card-body p { font-size: 0.95rem; color: rgba(36, 20, 16, 0.75); flex: 1; }

.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- TKPL franchise cards ---------- */

.tkpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tkpl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--team-color, var(--gold));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tkpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.tkpl-logo {
  aspect-ratio: 1;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.tkpl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.tkpl-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }

.tkpl-place {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  background: rgba(27, 94, 99, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.tkpl-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

.tkpl-meta { font-size: 0.9rem; color: rgba(36, 20, 16, 0.75); display: grid; gap: 0.25rem; }

.tkpl-meta strong { color: var(--ink); }

.tkpl-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--team-color, var(--gold));
  vertical-align: middle;
  margin-right: 0.4rem;
  border: 1px solid rgba(36, 20, 16, 0.2);
}

/* ---------- Event timeline ---------- */

.timeline { margin-top: 2rem; border-left: 3px solid var(--gold); padding-left: 1.6rem; display: grid; gap: 1.8rem; }

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 9px);
  top: 0.4rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--laterite);
  border: 3px solid var(--sand);
}

.timeline-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

.timeline-date { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sea); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sea);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem;
}

.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.6rem; }

.cta-band p { max-width: 56ch; margin: 0 auto 1.6rem; color: rgba(255, 255, 255, 0.9); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.5rem;
}

.contact-card h3 { font-family: var(--font-display); font-weight: 700; }

.form-grid { display: grid; gap: 1rem; }

.form-grid label { font-weight: 700; font-size: 0.9rem; display: grid; gap: 0.35rem; }

.form-grid input,
.form-grid textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 100%;
}

.form-grid input:focus-visible,
.form-grid textarea:focus-visible { outline: 2px solid var(--sea); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

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

.site-footer h4 { font-family: var(--font-display); color: var(--gold-soft); font-weight: 700; margin-bottom: 0.7rem; }

.site-footer ul { list-style: none; display: grid; gap: 0.4rem; }

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  background: var(--laterite-dark);
  color: var(--white);
  padding: 3.6rem 0 4.4rem;
  overflow: hidden;
}

.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); }

.page-hero p { max-width: 60ch; margin-top: 0.6rem; color: rgba(255,255,255,0.9); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }

  .hero-inner { padding: 4.5rem 1.25rem 6rem; }
}
