/* Arima Site Foundation 0.12.0 — header/footer for the "Arima — Public Page (2026)" template.
   Loaded only on pages that use that template. Page content is styled in Elementor. */
.arima-public-page {
  --ap-white: #FFFFFF; --ap-ink: #0F1A2B; --ap-ink-soft: #4A5568; --ap-navy: #0B3461; --ap-navy-deep: #082545;
  --ap-orange: #D97757; --ap-orange-deep: #A9502D; --ap-mist: #EEF2F7; --ap-line: #DCE3EC; --ap-on-navy-soft: #B9C7DA;
  --ap-head: "Archivo Narrow", "Arial Narrow", sans-serif; --ap-body: "Archivo", system-ui, sans-serif;
  --ap-ta-head: "Catamaran", "Noto Sans Tamil", sans-serif; --ap-ta-body: "Noto Sans Tamil", sans-serif;
  margin: 0; background: var(--ap-white); color: var(--ap-ink); font-family: var(--ap-body);
}
.arima-public-page.arima-lang-ta { font-family: var(--ap-ta-body); }
.arima-public-page *, .arima-public-page *::before, .arima-public-page *::after { box-sizing: border-box; }
.arima-public-page :focus-visible { outline: 3px solid var(--ap-orange-deep); outline-offset: 3px; }
.ap-main { display: block; outline: none; }

.ap-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ap-navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.ap-skip:focus { left: 12px; }

/* ---------- Header ---------- */
.ap-header { position: sticky; top: 0; z-index: 900; background: var(--ap-white); padding: 10px 0 4px; transition: box-shadow .2s; }
.admin-bar .ap-header { top: 32px; }
.ap-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(8,37,69,.35); }
.ap-bar { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; min-height: 72px; }
.ap-strip { position: absolute; left: 54px; right: 60px; top: 50%; height: 40px; transform: translateY(-50%); background: var(--ap-mist); z-index: 0; }
.ap-header.has-lang .ap-strip { right: 108px; }
.ap-logo { position: relative; z-index: 1; flex: none; width: 68px; height: 68px; border-radius: 50%; display: block; }
.ap-logo__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ap-wordmark { position: relative; z-index: 1; margin-left: 14px; font-family: var(--ap-head); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -.01em; color: var(--ap-ink); text-decoration: none; white-space: nowrap; }
.ap-nav { position: relative; z-index: 1; margin-left: auto; display: flex; gap: 4px; }
.ap-nav a { font-family: var(--ap-body); font-size: 15.5px; line-height: 1.3; text-transform: lowercase; text-decoration: none; padding: 7px 13px; border-radius: 999px; color: var(--ap-ink); }
.ap-nav a:hover { background: rgba(255,255,255,.8); }
.ap-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ap-login { position: relative; z-index: 1; margin-left: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 22px; border-radius: 999px; background: var(--ap-navy); color: #fff; font-family: var(--ap-body); font-weight: 500; font-size: 15px; text-transform: lowercase; text-decoration: none; white-space: nowrap; transition: background .2s; }
.ap-login:hover { background: var(--ap-navy-deep); color: #fff; }
.arima-lang-ta .ap-nav a, .arima-lang-ta .ap-login { text-transform: none; font-family: var(--ap-ta-body); font-size: 14.5px; }

/* Language icon + menu */
.ap-lang { position: relative; z-index: 2; margin-left: 8px; }
.ap-lang__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--ap-mist); color: var(--ap-navy); cursor: pointer; transition: box-shadow .2s; }
.ap-lang__btn:hover, .ap-lang__btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(11,52,97,.14); }
.ap-lang__btn svg { display: block; }
.ap-ico-fill { fill: var(--ap-mist); }
.ap-lang__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(8,37,69,.35); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.ap-lang__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.ap-lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ap-ink); font-family: var(--ap-body); font-size: 15.5px; }
.ap-lang__menu a[lang="ta"] { font-family: var(--ap-ta-body); }
.ap-lang__menu a:hover { background: var(--ap-mist); }
.ap-lang__menu a[aria-current="true"] { font-weight: 600; color: var(--ap-navy); }
.ap-lang__menu a[aria-current="true"]::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%230B3461' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Mobile menu */
.ap-menu-btn { display: none; position: relative; z-index: 1; margin-left: 4px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--ap-line); background: #fff; color: var(--ap-ink); cursor: pointer; }
.ap-menu-btn span, .ap-menu-btn span::before, .ap-menu-btn span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s; }
.ap-menu-btn span::before { position: absolute; top: -6px; }
.ap-menu-btn span::after { position: absolute; top: 6px; }
.ap-menu-btn[aria-expanded="true"] span { background: transparent; }
.ap-menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.ap-menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.ap-mobile { display: none; }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ap-navy-deep); color: var(--ap-on-navy-soft); padding: 72px 0 36px; font-family: var(--ap-body); font-size: 16px; line-height: 1.6; }
.arima-lang-ta .ap-footer { font-family: var(--ap-ta-body); }
.ap-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ap-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ap-footer__logo { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-family: var(--ap-head); font-weight: 700; font-size: 26px; }
.ap-footer__img { width: 56px; height: 56px; border-radius: 50%; background: #fff; object-fit: contain; }
.ap-footer__brand p { margin: 18px 0 0; max-width: 22rem; }
.ap-footer__title { margin: 0 0 16px; font-family: var(--ap-head); font-weight: 600; font-size: 18px; color: #fff; }
.arima-lang-ta .ap-footer__title { font-family: var(--ap-ta-head); }
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-footer a { color: inherit; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ap-footer__base { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }

/* ---------- Existing Arima Contact Form, restyled for this template ---------- */
.arima-public-page .arima-contact-form { display: grid; gap: 8px; font-family: var(--ap-body); font-size: 16px; }
.arima-public-page .arima-contact-form label { font-weight: 600; margin-top: 10px; color: var(--ap-ink); }
.arima-public-page .arima-contact-form input:not([type=hidden]), .arima-public-page .arima-contact-form textarea { width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; color: var(--ap-ink); background: #fff; border: 1.5px solid #C7D1DE; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.arima-public-page .arima-contact-form textarea { min-height: 170px; resize: vertical; }
.arima-public-page .arima-contact-form input:focus, .arima-public-page .arima-contact-form textarea:focus { outline: none; border-color: var(--ap-navy); box-shadow: 0 0 0 4px rgba(11,52,97,.12); }
.arima-public-page .arima-contact-form button { justify-self: start; margin-top: 16px; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--ap-navy); color: #fff; font: 600 16px var(--ap-body); cursor: pointer; }
.arima-public-page .arima-contact-form button:hover { background: var(--ap-navy-deep); }
.arima-public-page .arima-contact-form button:disabled { opacity: .65; }
.arima-public-page .arima-contact-form .arima-form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.arima-public-page .arima-form-status { margin: 12px 0 0; font-weight: 600; color: var(--ap-navy); }
.arima-public-page .arima-form-status:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ap-nav { display: none; }
  .ap-login { margin-left: auto; font-size: 14.5px; padding: 8px 20px; }
  .ap-menu-btn { display: inline-block; }
  .ap-wordmark { font-size: 22px; }
  .ap-strip { right: 106px; }
  .ap-header.has-lang .ap-strip { right: 154px; }
  .ap-mobile { display: block; position: absolute; left: 20px; right: 20px; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ap-line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(8,37,69,.35); padding: 12px; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: opacity .2s; }
  .ap-mobile.is-open { max-height: 560px; opacity: 1; visibility: visible; }
  .ap-mobile a { display: block; padding: 14px 16px; border-radius: 12px; font-size: 18px; text-decoration: none; text-transform: lowercase; color: var(--ap-ink); }
  .arima-lang-ta .ap-mobile a { text-transform: none; font-size: 17px; }
  .ap-mobile a[aria-current="page"] { background: var(--ap-mist); font-weight: 600; }
  .ap-mobile .ap-login--block { display: flex; margin: 8px 0 0; color: #fff; }
  .ap-footer__top { grid-template-columns: 1fr 1fr; }
  .ap-footer__top > div:first-child { grid-column: 1 / -1; }
}
/* Tamil labels run longer: collapse the menu earlier */
@media (max-width: 1320px) {
  .arima-lang-ta .ap-nav { display: none; }
  .arima-lang-ta .ap-login { margin-left: auto; }
  .arima-lang-ta .ap-menu-btn { display: inline-block; }
  .arima-lang-ta .ap-header.has-lang .ap-strip { right: 154px; }
  .arima-lang-ta .ap-mobile { display: block; position: absolute; left: 20px; right: 20px; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ap-line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(8,37,69,.35); padding: 12px; max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: opacity .2s; }
  .arima-lang-ta .ap-mobile.is-open { max-height: 560px; opacity: 1; visibility: visible; }
  .arima-lang-ta .ap-mobile a { display: block; padding: 14px 16px; border-radius: 12px; font-size: 17px; text-decoration: none; color: var(--ap-ink); }
  .arima-lang-ta .ap-mobile .ap-login--block { display: flex; margin: 8px 0 0; color: #fff; }
}
@media (max-width: 782px) { .admin-bar .ap-header { top: 46px; } }
@media (max-width: 640px) {
  .ap-header { padding-top: 10px; }
  .ap-bar { min-height: 62px; padding: 0 14px; }
  .ap-logo { width: 58px; height: 58px; }
  .ap-strip, .ap-header.has-lang .ap-strip, .arima-lang-ta .ap-header.has-lang .ap-strip { left: 43px; right: 58px; height: 36px; }
  .ap-header.has-lang .ap-strip, .arima-lang-ta .ap-header.has-lang .ap-strip { right: 102px; }
  .ap-wordmark { font-size: 19px; margin-left: 10px; }
  .ap-bar > .ap-login { display: none; }
  .ap-lang { margin-left: auto; }
  .ap-menu-btn { width: 40px; height: 40px; }
  .ap-header:not(.has-lang) .ap-menu-btn { margin-left: auto; }
  .ap-mobile, .arima-lang-ta .ap-mobile { left: 14px; right: 14px; }
  .ap-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .ap-bar { padding: 0 10px; min-height: 56px; }
  .ap-logo { width: 52px; height: 52px; }
  .ap-strip, .ap-header.has-lang .ap-strip, .arima-lang-ta .ap-header.has-lang .ap-strip { left: 36px; height: 34px; }
  .ap-header.has-lang .ap-strip, .arima-lang-ta .ap-header.has-lang .ap-strip { right: 92px; }
  .ap-wordmark { font-size: 17px; margin-left: 8px; }
  .ap-menu-btn { width: 38px; height: 38px; margin-left: 2px; }
  .ap-lang__btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-header, .ap-lang__menu, .ap-mobile, .ap-menu-btn span::before, .ap-menu-btn span::after { transition: none; }
}
