/* ============================================================
   InvesAlign — main.css
   CSS variables, reset, typography, grid utilities
   ============================================================ */


:root {
  /* Primary palette */
  --clr-green-dark: #1B5E20;
  --clr-green-primary: #2E7D32;
  --clr-green-mid: #388E3C;
  --clr-green-light: #4CAF50;
  --clr-green-pale: #E8F5E9;
  --clr-green-xpale: #F1F8F1;

  /* Gold premium accents */
  --clr-gold: #C9A84C;
  --clr-gold-light: #F0C96B;
  --clr-gold-dark: #A07830;

  /* Neutrals */
  --clr-white: #FFFFFF;
  --clr-off-white: #F9FBF9;
  --clr-grey-100: #F5F5F5;
  --clr-grey-200: #EEEEEE;
  --clr-grey-300: #E0E0E0;
  --clr-grey-500: #9E9E9E;
  --clr-grey-600: #757575;
  --clr-grey-800: #424242;
  --clr-grey-900: #212121;

  /* Gradients */
  --grad-hero: linear-gradient(145deg, #1a3d1f 0%, #2d6a31 40%, #1e5c28 75%, #162e19 100%);
  --grad-card-hover: linear-gradient(135deg, #2E7D32, #388E3C);
  --grad-gold: linear-gradient(90deg, var(--clr-gold-dark), var(--clr-gold-light), var(--clr-gold-dark));

  /* Typography */
  --font-en: 'Poppins', sans-serif;
  --font-ta: 'Noto Sans Tamil', sans-serif;
  --font-brand: 'Playfair Display', serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Effects */
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-green: 0 8px 32px rgba(46, 125, 50, 0.25);
  --shadow-gold: 0 4px 16px rgba(201, 168, 76, 0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--sp-6);
  --nav-height: 72px;
  --topbar-height: 40px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-grey-900);
  background-color: var(--clr-off-white);
  overflow-x: hidden;
}

body.lang-ta {
  font-family: var(--font-ta);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---- Typography utilities ---- */
.text-xs {
  font-size: var(--fs-xs);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-base {
  font-size: var(--fs-base);
}

.text-lg {
  font-size: var(--fs-lg);
}

.text-xl {
  font-size: var(--fs-xl);
}

.text-2xl {
  font-size: var(--fs-2xl);
}

.text-3xl {
  font-size: var(--fs-3xl);
}

.text-4xl {
  font-size: var(--fs-4xl);
}

.text-5xl {
  font-size: var(--fs-5xl);
}

.font-light {
  font-weight: var(--fw-light);
}

.font-medium {
  font-weight: var(--fw-medium);
}

.font-semi {
  font-weight: var(--fw-semi);
}

.font-bold {
  font-weight: var(--fw-bold);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--clr-white);
}

.text-green {
  color: var(--clr-green-primary);
}

.text-gold {
  color: var(--clr-gold);
}

.text-grey {
  color: var(--clr-grey-600);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-4);
}

.section-heading {
  font-family: var(--font-brand);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-green-dark);
  margin-bottom: var(--sp-4);
}

.section-heading span {
  color: var(--clr-green-primary);
}

.section-subtext {
  font-size: var(--fs-lg);
  color: var(--clr-grey-600);
  line-height: var(--lh-loose);
  max-width: 600px;
}

/* ---- Layout utilities ---- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--sp-4);
}

.gap-6 {
  gap: var(--sp-6);
}

.gap-8 {
  gap: var(--sp-8);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.section {
  padding-block: var(--sp-20);
}

.section-sm {
  padding-block: var(--sp-12);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-green-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--clr-green-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  font-size: var(--fs-lg);
  padding: var(--sp-4) var(--sp-10);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.5);
}

.btn-outline {
  border: 2px solid var(--clr-green-primary);
  color: var(--clr-green-primary);
  padding: calc(var(--sp-3) - 2px) calc(var(--sp-8) - 2px);
}

.btn-outline:hover {
  background: var(--clr-green-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid var(--clr-white);
  color: var(--clr-white);
  padding: calc(var(--sp-3) - 2px) calc(var(--sp-8) - 2px);
}

.btn-outline-white:hover {
  background: var(--clr-white);
  color: var(--clr-green-primary);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--clr-green-dark);
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}

/* ---- Trust pills ---- */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid rgba(201, 168, 76, 0.6);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-gold-light);
  background: rgba(201, 168, 76, 0.08);
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Cards ---- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-6px);
}

/* ---- Dividers ---- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: var(--radius-pill);
  margin-block: var(--sp-4);
}

.gold-divider-center {
  margin-inline: auto;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--sp-4);
    --fs-5xl: 2rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.375rem;
    --fs-2xl: 1.25rem;
    --sp-20: 3.5rem;
    --sp-24: 4rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: var(--fs-3xl);
  }

  .section {
    padding-block: var(--sp-12);
  }

  .section-sm {
    padding-block: var(--sp-8);
  }

  .btn-whatsapp {
    font-size: var(--fs-base);
    padding: var(--sp-3) var(--sp-8);
  }
}

@media (max-width: 480px) {
  :root {
    --fs-4xl: 1.5rem;
    --fs-3xl: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}