/* ============================================================================
   style.css
   Corporate landing page — Purple / Material Design theme
   Compiled equivalent of assets/scss/*. Organised into the same sections:
     1. Tokens (CSS variables)      5. Layout helpers
     2. Reset & base                6. Sections
     3. Typography                  7. Footer
     4. Components                  8. Utilities & motion
     9. Responsive
   ========================================================================== */

/* ============================================================================
   1. DESIGN TOKENS  ( :root CSS variables — change the theme here )
   ========================================================================== */
:root {
  /* Purple corporate palette */
  --color-primary: #6a1b9a; /* deep purple */
  --color-primary-dark: #4a148c;
  --color-primary-light: #9c4dcc;
  --color-primary-100: #f3e9fa; /* tint for backgrounds */
  --color-accent: #ffb300; /* amber — CTAs & ribbon highlight */
  --color-on-primary: #ffffff;

  /* Surfaces & text */
  --color-bg: #f6f4fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0ebf8;
  --color-text: #201a2b;
  --color-text-muted: #6b6480;
  --color-border: #e7e0f2;

  /* Material elevation (soft, purple-tinted shadows) */
  --elevation-1:
    0 1px 3px rgba(74, 20, 140, 0.12), 0 1px 2px rgba(74, 20, 140, 0.1);
  --elevation-2:
    0 3px 8px rgba(74, 20, 140, 0.14), 0 2px 4px rgba(74, 20, 140, 0.1);
  --elevation-4:
    0 10px 20px rgba(74, 20, 140, 0.15), 0 4px 8px rgba(74, 20, 140, 0.1);
  --elevation-8:
    0 18px 38px rgba(74, 20, 140, 0.2), 0 8px 16px rgba(74, 20, 140, 0.12);

  /* Typography */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout & shape */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 72px;

  /* Motion */
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emph: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--color-on-primary);
}

.section__lead {
  font-size: 1.075rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-top: 1rem;
}

/* Event Card Container Setup */
.event-card {
  position: relative;
}

.event-card .event__media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.event-card .event__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Event Ribbon Tag (Overlay on Top-Left of Image) */
.event-card .event__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  color: #ffffff;
  background-color: #64748b; /* Default fallback */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Ribbon Color Modifiers for Event Cards */
.event-card .event__tag.tag--news {
  background-color: #0284c7; /* Sky Blue */
}

.event-card .event__tag.tag--careers,
.event-card .event__tag.tag--career {
  background-color: #059669; /* Emerald Green */
}

.event-card .event__tag.tag--event,
.event-card .event__tag.tag--webinar {
  background-color: #7c3aed; /* Purple */
}

.event-card .event__tag.tag--training,
.event-card .event__tag.tag--workshop {
  background-color: #ea580c; /* Orange */
}

.event-card .event__tag.tag--award {
  background-color: #d97706; /* Gold / Amber */
}

.event-card .event__tag.tag--conference {
  background-color: #16a34a; /* Green */
}

.event-card .event__tag.tag--notice,
.event-card .event__tag.tag--article {
  background-color: #475569; /* Slate Gray */
}

/* ============================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- Container ---- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---- Buttons (Material: filled / outlined, elevation + ripple) ---- */
.btn {
  --btn-bg: var(--color-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  overflow: hidden; /* clips the ripple */
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
  will-change: transform;
}
.btn:active {
  transform: translateY(1px);
}

.btn--filled {
  background: var(--btn-bg);
  color: var(--color-on-primary);
  box-shadow: var(--elevation-2);
}
.btn--filled:hover {
  box-shadow: var(--elevation-4);
  transform: translateY(-2px);
}

.btn--outlined {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outlined:hover {
  background: var(--color-primary-100);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}
.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}
.btn--block {
  width: 100%;
}

/* Ripple span injected by JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.5);
  animation: ripple 600ms linear;
  pointer-events: none;
}
.btn--outlined .ripple {
  background: rgba(106, 27, 154, 0.2);
}
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---- Card (Material elevation surface) ---- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--elevation-1);
  padding: 1.75rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

/* ---- Chip ---- */
.chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-primary-100);
  color: var(--color-primary-dark);
}

/* ---- Inline link with icon ---- */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-primary);
  font-weight: 600;
}
.link .material-icons-round {
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.link:hover .material-icons-round {
  transform: translateX(4px);
}

/* ---- Placeholder media block (for CMS image slots, no external assets) ---- */
.placeholder {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 220px;
  box-shadow: var(--elevation-2);
}
.placeholder--tall {
  min-height: 420px;
}

/* ============================================================================
   5. LAYOUT HELPERS
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--color-surface-alt);
}
.section__head {
  max-width: 720px;
  margin-bottom: 3rem;
}

/* ============================================================================
   6a. RIBBON / BANNER
   ========================================================================== */
.ribbon {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--color-primary-dark),
    var(--color-primary),
    var(--color-primary-light)
  );
  background-size: 200% 100%;
  color: var(--color-on-primary);
  font-size: 0.9rem;
  animation: ribbonShift 8s linear infinite;
}
@keyframes ribbonShift {
  to {
    background-position: 200% 0;
  }
}

.ribbon__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
}
.ribbon__icon {
  font-size: 1.2rem;
}
.ribbon__text {
  flex: 1 1 auto;
}
.ribbon__link {
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
.ribbon__close {
  color: inherit;
  display: grid;
  place-items: center;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background var(--transition);
}
.ribbon__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   6b. NAVBAR (sticky, shadow-on-scroll)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  transition:
    box-shadow var(--transition),
    background var(--transition);
}
.navbar.is-scrolled {
  box-shadow: var(--elevation-2);
  background: rgba(255, 255, 255, 0.95);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: #fff;
}
.brand--light {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__link {
  position: relative;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover {
  color: var(--color-primary);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  color: var(--color-primary);
}

/* ============================================================================
   6c. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 60% at 80% 10%,
      rgba(156, 77, 204, 0.18),
      transparent 60%
    ),
    radial-gradient(
      50% 50% at 10% 90%,
      rgba(106, 27, 154, 0.14),
      transparent 60%
    );
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: var(--color-on-primary);
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}
.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.hero__highlight .material-icons-round {
  color: var(--color-primary);
  font-size: 1.15rem;
}

/* Hero animated visual — floating elevated cards + glowing orb */
.hero__visual {
  position: relative;
  height: 380px;
}
/* .hero__orb {
  position: absolute; inset: 0; margin: auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-primary-light), var(--color-primary-dark));
  box-shadow: var(--elevation-8);
  animation: float 6s var(--ease-emph) infinite;
} */
.hero__orb {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.55),
      transparent 35%
    ),
    linear-gradient(135deg, #f3e8ff, #d8b4fe, #a5b4fc, #93c5fd);
  box-shadow:
    0 20px 60px rgba(138, 36, 133, 0.18),
    0 0 80px rgba(96, 165, 250, 0.12),
    inset 0 2px 10px rgba(255, 255, 255, 0.7);
  animation: float 6s var(--ease-emph) infinite;

  /* Center the logo */
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero__logo {
  width: 140px; /* Adjust as needed */
  height: auto;
  object-fit: contain;
  z-index: 2;
}
.hero__card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--elevation-4);
  color: var(--color-primary);
}
.hero__card .material-icons-round {
  font-size: 2rem;
}
.hero__card--1 {
  top: 8%;
  left: 4%;
  animation: float 5s ease-in-out infinite;
}
.hero__card--2 {
  top: 12%;
  right: 8%;
  animation: float 7s ease-in-out infinite 0.6s;
}
.hero__card--3 {
  bottom: 8%;
  left: 18%;
  animation: float 6s ease-in-out infinite 1.2s;
}
.hero__spark {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 179, 0, 0);
  }
}

/* ============================================================================
   6d. ABOUT
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.checklist .material-icons-round {
  color: var(--color-primary);
  font-size: 1.3rem;
}

/* ============================================================================
   6e. FEATURE CARDS (services)
   ========================================================================== */
.feature {
  text-align: left;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
}
.feature__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feature__text {
  color: var(--color-text-muted);
}

/* ============================================================================
   6f. STATISTICS
   ========================================================================== */
.stats {
  padding-block: var(--section-y);
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  color: #fff;
}
.stats__title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto 3rem;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
}
.stat__suffix {
  color: var(--color-accent);
}
.stat__label {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   6g. EVENT CARDS
   ========================================================================== */
.event {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.event:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}
.event__date {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  padding: 0.6rem 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: #fff;
  text-align: center;
}
.event__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.event__month {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.event__body {
  flex: 1;
}
.event__tag {
  margin-bottom: 0.5rem;
}
.event__title {
  font-size: 1.15rem;
  margin: 0.25rem 0 0.5rem;
}
.event__text {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================================
   6h. CAREER CARDS
   ========================================================================== */
.career:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}
.career__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.career__role {
  font-size: 1.2rem;
}
.career__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}
.career__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.career__meta .material-icons-round {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ============================================================================
   6i. CONTACT
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__info {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__info-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--color-primary-100);
  color: var(--color-primary);
}
.contact__info-label {
  display: block;
  font-weight: 600;
  color: var(--color-on-primary);
}
.contact__info-value {
  display: block;
  color: var(--color-text-muted);
}

/* Form */
.contact__form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-100);
}
.field textarea {
  resize: vertical;
}
.field__error {
  color: #c62828;
  font-size: 0.8rem;
  min-height: 1em;
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c62828;
}

.contact__success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2e7d32;
  font-weight: 600;
}

/* ============================================================================
   7. FOOTER
   ========================================================================== */
.footer {
  background: #1b1024;
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--section-y);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__about {
  margin: 1rem 0 1.5rem;
  max-width: 40ch;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    background var(--transition),
    transform var(--transition);
}
.footer__social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__col-title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer__links {
  display: grid;
  gap: 0.6rem;
}
.footer__links a {
  transition: color var(--transition);
}
.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  text-align: center;
}

/* ============================================================================
   8. BACK-TO-TOP & MOTION UTILITIES
   ========================================================================== */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--elevation-4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--color-primary-dark);
}

/* Scroll-reveal: elements start hidden, JS adds .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-emph),
    transform 0.7s var(--ease-emph);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================================
   9. RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    height: 300px;
    order: -1;
  }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile: collapse nav into a slide-in drawer */
@media (max-width: 720px) {
  .nav__toggle {
    display: grid;
    place-items: center;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    box-shadow: var(--elevation-4);
    padding: 1rem var(--gutter) 1.5rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition:
      clip-path var(--transition),
      opacity var(--transition);
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item {
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link {
    display: block;
    padding: 0.9rem 0;
  }
  .nav__cta {
    margin-top: 1rem;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .hero__highlights {
    gap: 0.75rem 1.25rem;
  }
  .ribbon__text {
    font-size: 0.82rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

/* .brand__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
} */

/* Ensure hidden elements stay hidden until toggled by JS */
.contact__success[hidden] {
  display: none !important;
}

/* Optional styling when visible */
.contact__success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981; /* Green success color */
  margin-top: 12px;
}
