@font-face {
  font-family: "Noto Sans Tamil Local";
  src: url("assets/fonts/noto-sans-tamil-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}

@font-face {
  font-family: "Noto Sans Tamil Local";
  src: url("assets/fonts/noto-sans-tamil-700.woff2") format("woff2");
  font-weight: 700 899;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}

@font-face {
  font-family: "Noto Sans Tamil Local";
  src: url("assets/fonts/noto-sans-tamil-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}

:root {
  --ink: #102026;
  --muted: #5d6970;
  --line: #c4d2d5;
  --field-line: #a8bdc2;
  --field-bg: #fbfefe;
  --field-focus: #007979;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #008c8c;
  --teal-dark: #006868;
  --blue: #2459c7;
  --gold: #c98718;
  --red: #d84444;
  --shadow: 0 18px 48px rgba(16, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Tamil Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.welcome-celebration {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.18), transparent 24%),
    rgba(5, 15, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.welcome-celebration.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#fireworksCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(16, 32, 38, 0.94), rgba(0, 104, 104, 0.88)),
    rgba(16, 32, 38, 0.94);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s ease;
}

.welcome-celebration.show .welcome-panel {
  transform: translateY(0) scale(1);
}

.welcome-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.24), transparent 38%);
  pointer-events: none;
}

.welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.welcome-close svg {
  width: 20px;
  height: 20px;
}

.welcome-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(#102026, #102026) padding-box,
    linear-gradient(135deg, #00a6a6, #2459c7 38%, #f59e0b 70%, #ef4444) border-box;
  border: 3px solid transparent;
  font-size: 1.12rem;
  font-weight: 900;
}

.welcome-kicker,
.welcome-panel h2,
.welcome-panel p {
  position: relative;
  z-index: 1;
}

.welcome-kicker {
  margin: 0 0 8px;
  color: #8ff0df;
  font-size: 0.82rem;
  font-weight: 900;
}

.welcome-panel h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
}

.welcome-panel p:last-child {
  margin: 14px auto 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  min-height: 78px;
  gap: clamp(12px, 2vw, 24px);
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(#102026, #102026) padding-box,
    linear-gradient(135deg, #00a6a6, #2459c7 38%, #f59e0b 70%, #ef4444) border-box;
  border: 3px solid transparent;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 20px rgba(0, 140, 140, 0.24);
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.main-nav a,
.call-link,
.language-control select {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
}

.main-nav a:hover,
.call-link:hover {
  background: #edf5f3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-link-header {
  gap: 8px;
  color: var(--teal-dark);
  background: #eef8f5;
  white-space: nowrap;
  animation: callBlink 1.4s infinite;
}

.call-link-header svg {
  width: 18px;
  height: 18px;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding-left: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-control svg {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
  flex: 0 0 18px;
}

.language-control select {
  max-width: 142px;
  border: 0;
  padding-left: 0;
  background: transparent;
}

.icon-button,
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 5vw, 68px) clamp(16px, 4vw, 56px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.86) 36%, rgba(247, 250, 249, 0.08) 74%),
    linear-gradient(0deg, rgba(16, 32, 38, 0.08), rgba(16, 32, 38, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 22px 0 0;
  color: #334349;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.submit-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.primary-button,
.submit-button {
  color: #fff;
  background: var(--teal-dark);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 56px);
}

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

.service-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.policy-grid article,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 32, 38, 0.06);
}

.service-card,
.policy-grid article {
  min-height: 220px;
  padding: 22px;
}

.service-card p,
.policy-grid p,
.site-footer p {
  color: var(--muted);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.service-icon.gst { background: var(--teal); }
.service-icon.tax { background: var(--blue); }
.service-icon.accounts { background: var(--gold); }
.service-icon.business { background: var(--red); }

.portal-section {
  display: grid;
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
  background: #edf5f3;
}

.auth-panel {
  padding: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f6faf9;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.auth-tab.active {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: #26363c;
  font-weight: 800;
}

input,
textarea,
.contact-form select {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--field-line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--field-bg);
  box-shadow: inset 0 1px 0 rgba(16, 32, 38, 0.04);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input:hover,
textarea:hover,
.contact-form select:hover {
  border-color: #78959c;
  background: #fff;
}

input:focus,
textarea:focus,
.contact-form select:focus {
  border-color: var(--field-focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 121, 121, 0.14), inset 0 1px 0 rgba(16, 32, 38, 0.03);
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 560px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--white);
}

.contact-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

address {
  margin-top: 16px;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-actions a {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  font-weight: 850;
}

.contact-actions .cta-call,
.contact-actions .cta-whatsapp {
  color: #fff;
  border-color: transparent;
}

.contact-actions .cta-call {
  background: var(--teal-dark);
}

.contact-actions .cta-whatsapp {
  background: #25d366;
}

.contact-actions strong {
  font-size: 0.92rem;
}

.contact-actions svg {
  width: 22px;
  height: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  box-shadow: var(--shadow);
}

.full-field {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(160px, 1fr));
  gap: 30px;
  padding: 42px clamp(16px, 4vw, 56px);
  color: #d8e5e6;
  background: #102026;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin-top: 0;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-top: 9px;
  color: #d8e5e6;
}

.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-contact-list a,
.footer-contact-list p {
  width: min(100%, 320px);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  line-height: 1.35;
}

.footer-contact-list p {
  align-items: flex-start;
  color: #334349;
}

.footer-contact-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--teal-dark);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.header-social {
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 0;
}

.social {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: default;
}

.header-social .social {
  width: 34px;
  height: 34px;
}

.social::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.facebook { background: #1877f2; }
.facebook::after { content: "f"; font-size: 1.4rem; }
.instagram { background: radial-gradient(circle at 30% 110%, #feda75, #fa7e1e 30%, #d62976 55%, #962fbf 75%, #4f5bd5); }
.instagram::after { content: "◎"; font-size: 1.2rem; }
.linkedin { background: #0a66c2; }
.linkedin::after { content: "in"; font-size: 1rem; }
.x { background: #000; }
.x::after { content: "X"; font-size: 1rem; }
.youtube { background: #ff0000; }
.youtube::after { content: "▶"; font-size: 1rem; }

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.34);
  animation: blinkPulse 1.35s infinite;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
}

@keyframes blinkPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.22); }
}

@keyframes callBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 104, 104, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(0, 104, 104, 0.08); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

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

  .main-nav a {
    justify-content: center;
  }

  .header-actions {
    justify-self: end;
  }

  .header-social {
    display: none;
  }

  .call-link-header span {
    display: none;
  }

  .call-link-header {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .service-grid,
  .policy-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 0.92rem;
  }

  .brand-name {
    max-width: 112px;
    white-space: normal;
    line-height: 1;
  }

  .main-nav {
    top: 68px;
  }

  .language-control {
    padding-left: 8px;
  }

  .language-control select {
    width: 64px;
    max-width: 64px;
    padding: 0 4px 0 0;
  }

  .hero {
    min-height: 570px;
    padding-top: 34px;
    align-items: start;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.9) 48%, rgba(247, 250, 249, 0.24) 100%),
      linear-gradient(0deg, rgba(16, 32, 38, 0.08), rgba(16, 32, 38, 0.08));
  }

  .hero-image {
    object-position: 63% center;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .service-grid,
  .policy-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-card,
  .policy-grid article {
    min-height: 0;
  }

  .auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .contact-actions a {
    width: 100%;
  }
}
