/* ===========================================================
   Tamil Media Marketing — Design Tokens
   Palette:  charcoal #14110F | ivory #F5EFE6 | marigold #E8A33D
             vermilion #C1272D | teal #00A99D | muted #8A8378
   Display : "Baloo 2"   Body: "Inter"   Data/labels: "Space Mono"
   =========================================================== */

:root {
  --charcoal: #0F0F0F;
  --charcoal-2: #181818;
  --ivory: #FFFFFF;
  --marigold: #FF0000;
  --vermilion: #FF0000;
  --teal: #AAAAAA;
  --muted: #717171;
  --line: rgba(255, 255, 255, 0.12);

  --font-display: 'Baloo 2', 'Noto Sans Tamil', sans-serif;
  --font-body: 'Inter', 'Noto Sans Tamil', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 14px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand .brand-tam {
  color: var(--marigold);
}
.brand .brand-dot {
  color: var(--vermilion);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ivory);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--marigold);
}

.nav-cta {
  background: var(--vermilion);
  color: var(--ivory);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: #CC0000; transform: translateY(-2px); }

.nav-toggle { display: none; }

/* ---------- Ticker (signature element) ---------- */
.ticker-band {
  background: var(--marigold);
  color: var(--charcoal);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--charcoal);
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: scroll-left 28s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.ticker-track span::after {
  content: "●";
  color: var(--vermilion);
  font-size: 8px;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background:
    radial-gradient(ellipse 700px 420px at 82% -10%, rgba(232, 163, 61, 0.20), transparent 60%),
    radial-gradient(ellipse 500px 400px at -5% 90%, rgba(0, 169, 157, 0.14), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  margin: 18px 0 22px;
}
.hero h1 .hl-marigold { color: var(--marigold); }
.hero h1 .hl-vermilion { color: var(--vermilion); }

.hero p.lede {
  font-size: 18px;
  color: var(--ivory);
  opacity: 0.82;
  max-width: 46ch;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--vermilion);
  color: var(--ivory);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255, 0, 0, 0.42); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--marigold); color: var(--marigold); }

/* Hero visual: stacked "reel" cards */
.hero-visual {
  position: relative;
  height: 380px;
}
.reel-card {
  position: absolute;
  width: 250px;
  border-radius: var(--radius);
  padding: 22px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.reel-card .rc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}
.reel-card h4 { font-size: 19px; margin: 10px 0 6px; }
.reel-card p { font-size: 13.5px; color: var(--muted); }
.reel-1 { top: 0; right: 40px; transform: rotate(4deg); }
.reel-2 { top: 130px; right: 190px; transform: rotate(-6deg); background: linear-gradient(155deg, var(--vermilion), #B00000); border: none; }
.reel-2 h4, .reel-2 p, .reel-2 .rc-num { color: var(--ivory); opacity: 0.95; }
.reel-3 { top: 250px; right: 10px; transform: rotate(-2deg); }

/* ---------- Filmstrip divider ---------- */
.filmstrip {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 34px 0;
  opacity: 0.55;
}
.filmstrip span {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.filmstrip span:nth-child(3n) { background: var(--marigold); border-color: var(--marigold); }

/* ---------- Section shell ---------- */
section { padding: 90px 0; }
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

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

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--marigold);
}
.service-card .sc-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--vermilion);
}
.service-card h3 { font-size: 21px; margin: 14px 0 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}
.stat h3 {
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--marigold);
}
.stat p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- Process ---------- */
.process-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.process-step:first-child { border-top: 1px solid var(--line); }
.process-step .ps-num {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--teal);
  opacity: 0.7;
}
.process-step h4 { font-size: 20px; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 14.5px; max-width: 60ch; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 3px solid var(--vermilion);
}
.testi-card p.quote { font-size: 15px; color: var(--ivory); opacity: 0.9; margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--marigold), var(--vermilion));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--charcoal);
}
.testi-who h5 { font-size: 14.5px; }
.testi-who span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--vermilion), #B00000 60%);
  border-radius: 20px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin: 0 auto;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 18ch; }
.cta-band .btn-ghost { border-color: rgba(245,239,230,0.5); }
.cta-band .btn-ghost:hover { border-color: var(--ivory); color: var(--ivory); }

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--marigold);
}
.field textarea { resize: vertical; min-height: 120px; }

.alert {
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 600;
}
.alert-success { background: rgba(0, 169, 157, 0.15); border: 1px solid var(--teal); color: var(--teal); }
.alert-error { background: rgba(255, 0, 0, 0.15); border: 1px solid var(--vermilion); color: #ff8f8f; }

/* ---------- Contact info cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card .eyebrow { margin-bottom: 12px; }
.info-card p { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 32ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--marigold);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.page-header p { color: var(--muted); margin-top: 14px; max-width: 60ch; }

/* ---------- About page bits ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.value-list { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.value-item { display: flex; gap: 16px; }
.value-item .vi-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,163,61,0.15);
  color: var(--marigold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.value-item h5 { font-size: 16px; margin-bottom: 4px; }
.value-item p { color: var(--muted); font-size: 14px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--teal), var(--charcoal-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
}
.team-card h5 { font-size: 15px; }
.team-card span { font-size: 12.5px; color: var(--muted); }

/* ---------- Video section ---------- */
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.video-wrap iframe { display: block; border: 0; }

/* ---------- Photo carousel (testimonials) ---------- */
.photo-carousel {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.photo-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: photo-scroll 32s linear infinite;
  animation-play-state: paused;
}
.photo-carousel-track.is-ready { animation-play-state: running; }
.photo-carousel:hover .photo-carousel-track { animation-play-state: paused; }
@keyframes photo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.photo-tile {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
  cursor: pointer;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo-tile:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; margin-top: 30px; }
  .reel-card { width: 200px; }
  .services-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 30px; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; background: none; border: none; color: var(--ivory); font-size: 22px; }
  .services-grid, .testi-grid, .stats-strip, .footer-grid, .team-grid, .contact-info-grid { grid-template-columns: 1fr; }
  .photo-tile { width: 150px; height: 150px; }
  .form-row { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 50px 1fr; }
  section { padding: 60px 0; }
}

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .photo-tile, input, textarea { cursor: none; }
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--vermilion);
    border: 2px solid rgba(255, 179, 71, 0.6);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
  }
  .custom-cursor.is-hover {
    width: 34px;
    height: 34px;
    background: rgba(255, 179, 71, 0.25);
    border-color: var(--marigold);
    box-shadow: 0 0 18px rgba(255, 179, 71, 0.5);
  }
}
