/*
  Finchley Tamil Koodam static site styles.
  The stylesheet is intentionally plain CSS: no build step, no framework,
  and no dependencies beyond the small vanilla JavaScript interactions.
*/

:root {
  --ink: #050505;
  --muted: #4f4f4f;
  --soft: #f6f6f6;
  --line: #dedede;
  --paper: #ffffff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 10px 28px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --container: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 820px);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 6px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  top: 86px;
  right: 16px;
  left: 16px;
  display: none;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.primary-nav.is-open {
  display: grid;
}

.primary-nav a {
  padding: 13px 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--soft);
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.header-cta {
  display: none;
}

/* Typography and actions */
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

h1,
h2,
.feature-card h3,
.map-promo h2,
.cta-card h2 {
  font-family: var(--serif);
}

h1 {
  font-size: 2.45rem;
  max-width: 620px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: #000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.button-primary:hover {
  color: #fff;
  background: #222;
}

.button-secondary {
  color: #000;
  background: #fff;
}

/* Homepage */
.hero {
  padding: 42px 0 26px;
}

.hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy::after {
  display: block;
  width: 38px;
  height: 2px;
  margin: 22px 0 18px;
  content: "";
  background: #000;
}

.hero-copy p {
  max-width: 430px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
}

.feature-strip {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feature-card,
.map-promo,
.cta-card,
.text-card,
.info-card,
.form-card,
.contact-details,
.image-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.feature-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.feature-icon,
.map-icon,
.cta-icon {
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  font-size: 1.75rem;
  background: var(--soft);
  border-radius: 50%;
}

.feature-card p,
.map-promo p,
.cta-card p,
.text-card p,
.info-card p,
.contact-details dd,
.form-note {
  color: var(--muted);
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 900;
  text-decoration: none;
}

.homepage-panels {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.map-promo {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.map-promo-stat {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.promo-actions {
  display: grid;
  gap: 10px;
}

.small-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.cta-card {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

/* Shared sections */
.section {
  padding: 58px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 44px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.split-layout,
.form-layout,
.two-column,
.program-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.text-card,
.info-card,
.contact-details {
  padding: 22px;
}

.image-panel {
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: grayscale(1);
}

.checked-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.checked-list li {
  position: relative;
  padding-left: 30px;
}

.checked-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  background: #000;
  border-radius: 50%;
}

.pathway {
  display: grid;
  gap: 16px;
}

.pathway article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.pathway span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #000;
  border-radius: 50%;
}

.pathway p {
  margin-top: 10px;
  color: var(--muted);
}

/* Dedicated Tamil Around the World page */
.map-feature {
  min-height: calc(100vh - 86px);
  padding-top: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.global-map-card {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.global-map-intro h1 {
  max-width: 360px;
  font-size: 1.85rem;
}

.global-map-intro h1::after {
  display: block;
  width: 60px;
  height: 2px;
  margin: 22px 0;
  content: "";
  background: #000;
}

.global-map-intro p {
  max-width: 330px;
  color: var(--muted);
}

.map-text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
  color: #b98745;
  font-weight: 800;
  text-decoration: none;
}

.map-text-link:hover {
  color: #8a612f;
}

.map-visual-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.world-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: transparent;
}

.world-dot-map {
  display: block;
  width: 100%;
  height: auto;
}

.map-info-card {
  position: relative;
  align-self: stretch;
  padding: 24px;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.map-info-card h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.05;
}

.map-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #777;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

.map-panel-close:hover {
  color: #000;
  background: #f3f3f3;
}

.map-fact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.map-fact-list div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.map-fact-list span {
  color: #8f8f8f;
  font-size: 1.2rem;
  line-height: 1.15;
}

.map-fact-list p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.34;
}

.map-fact-list strong {
  color: #000;
  font-size: 0.78rem;
  text-transform: none;
}

.map-fallback-message {
  padding: 18px;
  color: #000;
  font-weight: 900;
}

.place-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.place-list button {
  width: 100%;
  padding: 11px 14px;
  color: #000;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.place-list button:hover,
.place-list button[aria-pressed="true"] {
  background: #fbf7f0;
  border-color: #d6b47c;
}

.tamil-marker {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  padding: 0;
  background: #bc8b4b;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(188, 139, 75, 0.18);
  transform: translate(-50%, -50%);
}

.tamil-marker.is-active {
  width: 18px;
  height: 18px;
  background: #5f302b;
  box-shadow: 0 0 0 5px #fff, 0 0 0 10px rgba(188, 139, 75, 0.32), 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* Forms */
.form-card {
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #000;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.22);
  outline-offset: 3px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-weight: 700;
}

.checkbox-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: #000;
  font-weight: 900;
}

.contact-details dl {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
}

.contact-details dt {
  font-weight: 900;
}

.contact-details dd {
  margin-left: 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  color: #000;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-logo {
  width: 124px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--sans);
  font-size: 1rem;
}

.site-footer p,
.site-footer span,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer address {
  font-style: normal;
}

.social-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-top: 14px;
  place-items: center;
  color: #000;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: 50%;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  color: #777;
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
