/* Shared contact details and footer, using the site's existing palette. */
.masthead nav {
  display: flex;
  gap: 8px;
}

.site-footer {
  padding: 40px clamp(16px, 5vw, 64px);
  background: #56192E;
  color: #F7F2E9;
  font-family: var(--body);
  line-height: 1.6;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(247, 242, 233, 0.25);
}

.footer-name {
  font-family: var(--display);
  font-size: 1.5rem;
  text-decoration: none;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: #E8BDC7;
}

.site-footer a:focus-visible {
  outline: 3px solid #F7F2E9;
  outline-offset: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.contact-block h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.contact-block address {
  margin-bottom: 12px;
  font-style: normal;
}

.contact-block > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-block > a + a {
  margin-top: 8px;
}

.contact-main {
  max-width: 1228px;
  margin: 0 auto;
  padding: 150px clamp(16px, 5vw, 64px) 80px;
}

.contact-eyebrow {
  margin: 0 0 12px;
  color: var(--kumkum);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-main h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
}

.contact-intro {
  max-width: 520px;
  margin: 0 0 40px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.contact-offices {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  line-height: 1.7;
}

.contact-offices a {
  color: var(--kumkum);
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-offices {
    padding: 24px;
  }
  .contact-main {
    padding-top: 120px;
    padding-bottom: 48px;
  }
}

@media (max-width: 380px) {
  .masthead nav a {
    padding-inline: 12px;
  }
}

/* The language control is shared by the home, contact and service pages. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--kumkum);
  flex-shrink: 0;
}
.language-switch button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.85rem var(--body);
  line-height: 1.4;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  background: var(--kumkum);
  color: #fff;
}
.masthead .language-switch {
  color: var(--page);
}
.masthead .language-switch button[aria-pressed="true"] {
  background: var(--page);
  color: var(--kumkum);
}
.masthead .language-switch button:focus-visible {
  outline: 2px solid var(--page);
  outline-offset: 2px;
}
.bar-inner .language-switch {
  margin-left: auto;
}
.bar-inner .service-switch {
  min-width: 0;
  flex: 1;
}
html[lang="ta"] {
  --body: "Noto Sans Tamil", "Mukta", system-ui, sans-serif;
  --display: "Noto Sans Tamil", system-ui, sans-serif;
}
html[lang="ta"] .contact-block,
html[lang="ta"] .steps,
html[lang="ta"] .cell .description {
  line-height: 1.65;
}
html[lang="ta"] .cell .name {
  font-size: 0.95rem;
  line-height: 1.6;
}
html[lang="ta"] .center {
  min-width: 0;
}
html[lang="ta"] .center h2 {
  max-width: 100%;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
html[lang="ta"] .center p {
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.7;
}
html[lang="ta"] .contact-main h1 {
  line-height: 1.5;
}
html[lang="ta"] .group-title,
html[lang="ta"] .label {
  line-height: 1.6;
}
@media (max-width: 700px) {
  .masthead {
    flex-wrap: wrap;
    gap: 8px;
  }
  .masthead nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }
  .masthead nav a {
    padding-inline: 10px;
    font-size: 0.85rem;
  }
  .masthead nav .language-switch {
    margin-left: auto;
  }
  html[lang="ta"] .masthead nav a {
    font-size: 0.75rem;
  }
  .language-switch button {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  html[lang="ta"] .center h2 {
    line-height: 1.5;
  }
}

@media (max-width: 640px) {
  .masthead {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .masthead nav {
    display: contents;
  }
  .masthead nav > a {
    grid-row: 2;
    width: fit-content;
    height: 32px;
    white-space: nowrap;
  }
  .masthead nav > a:nth-child(2) {
    justify-self: end;
  }
  .masthead nav > .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .contact-main {
    padding-top: 160px;
  }
  html[lang="ta"] .service-switch select {
    font-size: 0.85rem;
  }
  html[lang="ta"] .submit {
    height: auto;
    min-height: 56px;
    padding-block: 12px;
    gap: 12px;
    font-size: 0.95rem;
  }
}

/* Match the Tamil font's visual scale to the original typography. */
html[lang="ta"] body {
  font-size: 0.95rem;
}
html[lang="ta"] .contact-intro {
  font-size: 0.95rem;
}
html[lang="ta"] .contact-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}
html[lang="ta"] .contact-block h2,
html[lang="ta"] .summary h1 {
  font-size: 1.1rem;
}
html[lang="ta"] .control {
  font-size: 1rem;
}
html[lang="ta"] .label {
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.footer-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
html[lang="ta"] .footer-links {
  font-size: 0.85rem;
}
