/* ==========================================================================
   Shreeji Ink — common.css
   Shared across every page: reset, tokens, typography, header/nav, footer,
   buttons, cards, section spacing, utilities, floating WhatsApp button.
   ========================================================================== */

:root {
  /* Brand colors (from logo) */
  --color-navy: #12235b;
  --color-navy-dark: #0b1839;
  --color-red: #c1272d;
  --color-gold: #d9a441;
  --color-gold-light: #f0d9a6;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-text: #1a1a1a;
  --color-text-muted: #5b5f6b;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;
  --color-border: #e6e5e1;

  /* Typography */
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Spacing scale (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-15: 7.5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-rest: 0 4px 20px rgba(18, 35, 91, 0.08);
  --shadow-hover: 0 12px 32px rgba(18, 35, 91, 0.16);

  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 2vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 var(--space-2);
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- Focus states (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-8);
  background: var(--color-bg);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: linear-gradient(160deg, var(--color-navy-dark), var(--color-navy));
  color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-1);
}

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

/* ---------- Page hero / banner (shared across all pages) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

/* Dark gradient overlay so text stays readable over any photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 24, 57, 0.92) 0%,
    rgba(18, 35, 91, 0.86) 45%,
    rgba(11, 24, 57, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
  padding-block: var(--space-8);
  margin-inline: auto;
}

.hero-content h1,
.hero-content .eyebrow {
  color: #fff;
}

.hero-sub {
  color: #e3e7f6;
  font-size: 1.05rem;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

@media (max-width: 899px) {
  .hero {
    min-height: 560px;
  }
}

@media (max-width: 599px) {
  .hero {
    min-height: 520px;
    padding-block: var(--space-4);
  }
  .hero-content {
    padding-block: var(--space-4);
  }
  .hero-content h1 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }
}

.grid {
  display: grid;
  gap: var(--space-3);
}

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

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

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

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

@media (max-width: 1023px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-navy-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.section-dark .btn-outline {
  color: #fff;
  border-color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-rest);
  padding: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow-wrap: break-word;
}

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

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-red);
  border-color: var(--color-gold);
}

.nav-cta {
  display: none;
}

.nav-cta-mobile {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-navy);
}

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding-block: 0.9rem;
  }

  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: var(--space-2);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: var(--space-2);
  bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #e9ecf5;
  padding-block: var(--space-8) var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

.footer-brand img {
  height: 48px;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: #b7bdd6;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #b7bdd6;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  text-align: center;
  color: #8890ac;
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
