/* ==========================================================================
   Red Kite Technology Solutions — Design System
   "Nature Distilled" — warm, organic, grounded
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Colour palette */
  --primary: #B03A2E;
  --accent: #3D1F24;
  --background: #FAF8F5;
  --background-warm: #F3EDE6;
  --highlight: #D27860;
  --support: #5E5E5E;
  --card: #FFFFFF;
  --text: #2D2D2D;
  --border: #E8E0D8;
  --success: #2D7D46;
  --error: #C53030;

  /* Typography */
  --font-heading: 'Work Sans', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-accent: 'Saira', sans-serif;

  /* Elevation */
  --shadow-card: 0 4px 24px rgba(61, 31, 36, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(61, 31, 36, 0.12);
  --shadow-nav: 0 2px 12px rgba(61, 31, 36, 0.06);

  /* Radii */
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-hero: 24px;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 200ms ease-out;
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

h5 {
  font-size: 18px;
  font-weight: 600;
}

h6 {
  font-size: 16px;
  font-weight: 600;
}

p {
  max-width: 75ch;
}

small, .text-small {
  font-size: 14px;
}

.font-accent {
  font-family: var(--font-accent);
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}


/* ==========================================================================
   4. CONTAINER & LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.container--narrow {
  max-width: 720px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

@media (min-width: 1024px) {
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Grid utilities */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--sp-8);
}

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF; }


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.nav,
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo,
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__links,
.navbar__links {
  display: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  gap: var(--sp-8);
}

.nav__links li a,
.navbar__links li a {
  color: var(--text);
  padding: var(--sp-2) var(--sp-1);
  transition: color 200ms ease-out;
}

.nav__links li a:hover,
.navbar__links li a:hover,
.nav__links li a.active,
.navbar__links li a.active {
  color: var(--primary);
}

.nav__cta,
.navbar__cta {
  display: none;
}

/* Hamburger toggle */
.nav__toggle,
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.nav__toggle span,
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* Mobile nav open state */
.nav-open .nav__links,
.nav-open .navbar__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--card);
  padding: var(--sp-6);
  gap: 0;
  box-shadow: var(--shadow-card);
  animation: slideDown 250ms ease-out;
}

.nav-open .nav__links li a,
.nav-open .navbar__links li a {
  display: block;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.nav-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__links,
  .navbar__links {
    display: flex;
    align-items: center;
  }

  .nav__cta,
  .navbar__cta {
    display: inline-flex;
  }

  .nav__toggle,
  .navbar__toggle {
    display: none;
  }
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 200ms ease-out;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary,
.cta-button.primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn--primary:hover,
.cta-button.primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn--outline,
.btn--secondary,
.cta-button.secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover,
.btn--secondary:hover,
.cta-button.secondary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--large,
.cta-button.large {
  padding: 16px 36px;
  font-size: 18px;
}

/* Inverted button for dark backgrounds */
.btn--inverted,
.cta-button.inverted {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

.btn--inverted:hover,
.cta-button.inverted:hover {
  background-color: var(--background);
  border-color: var(--background);
  transform: translateY(-2px);
}


/* ==========================================================================
   7. CARDS
   ========================================================================== */

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-8);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: scale(1.01);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  color: var(--primary);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.card__text {
  color: var(--support);
  font-size: 16px;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin-top: var(--sp-4);
  transition: gap 200ms ease-out;
}

.card__link:hover {
  gap: var(--sp-3);
  color: var(--accent);
}


/* ==========================================================================
   8. HERO SECTION (Homepage)
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-warm) 100%);
  padding: 80px 0 64px;
  overflow: hidden;
}

/* Grain texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.hero__subtitle {
  font-size: 20px;
  color: var(--support);
  margin-bottom: var(--sp-8);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image img,
.hero__image svg {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius-hero);
}

@media (min-width: 1024px) {
  .hero {
    padding: 120px 0 96px;
  }

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

  .hero__subtitle {
    font-size: 22px;
  }

  .hero__image img,
  .hero__image svg {
    max-width: 420px;
  }
}


/* ==========================================================================
   9. PAGE HERO
   ========================================================================== */

.page-hero {
  background-color: var(--accent);
  color: #FFFFFF;
  text-align: center;
  padding: 64px 0;
}

.page-hero__title {
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
}

.page-hero__subtitle {
  font-size: 20px;
  opacity: 0.85;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 80px 0;
  }
}


/* ==========================================================================
   10. SECTION DIVIDERS
   ========================================================================== */

.section-divider {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 0;
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-divider--to-warm svg { fill: var(--background-warm); }
.section-divider--to-white svg { fill: var(--card); }
.section-divider--to-default svg { fill: var(--background); }


/* ==========================================================================
   11. SERVICES GRID
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   12. BENEFITS GRID
   ========================================================================== */

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

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  text-align: center;
  padding: var(--sp-6);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto var(--sp-4);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--sp-2);
}

.benefit-card__text {
  color: var(--support);
  font-size: 16px;
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--primary);
}

.testimonial__quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 48px;
  line-height: 0;
  color: var(--highlight);
  vertical-align: -0.3em;
  margin-right: 4px;
}

.testimonial__citation {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--highlight);
}

.testimonial__role {
  font-weight: 400;
  color: var(--support);
}


/* ==========================================================================
   14. CREDENTIALS
   ========================================================================== */

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.credentials__badge {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: var(--background-warm);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.credentials__badge i,
.credentials__badge svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   15. SERVICE AREA
   ========================================================================== */

.service-area__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.service-area__pill {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
}


/* ==========================================================================
   16. CONTACT SECTION
   ========================================================================== */

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-option {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-6);
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact-option + .contact-option {
  margin-top: var(--sp-4);
}

.contact-option__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.contact-option__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--sp-1);
}

.contact-option__detail {
  color: var(--support);
  font-size: 16px;
}

.contact-option__detail a {
  color: var(--primary);
  font-weight: 500;
}


/* ==========================================================================
   17. CONTACT FORM
   ========================================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contact-form__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.contact-form__input,
.contact-form__textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
  outline: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(176, 58, 46, 0.12);
}

.contact-form__textarea,
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--support);
}

.contact-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.12);
}

.error-message {
  font-size: 14px;
  color: var(--error);
  margin-top: var(--sp-1);
}

.form-message {
  padding: var(--sp-4);
  border-radius: var(--radius-button);
  font-weight: 500;
  text-align: center;
  margin-top: var(--sp-4);
}

.form-message--success {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message--error {
  background: #fde8e8;
  color: var(--error);
  border: 1px solid var(--error);
}


/* ==========================================================================
   18. SERVICE DETAIL PAGES
   ========================================================================== */

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail__content h2 {
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.service-detail__content p {
  margin-bottom: var(--sp-4);
  color: var(--support);
}

.service-detail__image {
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--background-warm);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project timeline box */
.project-timeline {
  background: var(--background-warm);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  margin-top: var(--sp-8);
}

.project-timeline__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.project-timeline__step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-3) 0;
}

.project-timeline__step + .project-timeline__step {
  border-top: 1px solid var(--border);
}

.project-timeline__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-timeline__label {
  font-weight: 600;
  font-size: 16px;
}

.project-timeline__desc {
  color: var(--support);
  font-size: 14px;
}

/* Approach steps */
.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .approach-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.approach-step {
  text-align: center;
  padding: var(--sp-6);
}

.approach-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--sp-4);
}

.approach-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--sp-2);
}

.approach-step__text {
  color: var(--support);
  font-size: 14px;
}


/* ==========================================================================
   19. ABOUT PAGE
   ========================================================================== */

/* Story layout */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 768px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
  }
}

.about-story__text p {
  margin-bottom: var(--sp-4);
  color: var(--support);
}

.about-story__image {
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--background-warm);
}

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--accent);
}

.expertise-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.expertise-card__text {
  color: var(--support);
  font-size: 16px;
}

/* Philosophy / principle cards */
.philosophy-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .philosophy-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
}

.principle-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.principle-card__text {
  color: var(--support);
}

/* Values list */
.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .values-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin: 0 auto var(--sp-4);
}

.value-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--sp-3);
}

.value-card__text {
  color: var(--support);
  font-size: 16px;
}

/* Experience grid */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.experience-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

.experience-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.experience-card__text {
  color: var(--support);
  font-size: 14px;
}


/* ==========================================================================
   20. PRODUCTS PAGE
   ========================================================================== */

/* Feature product section */
.product-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 768px) {
  .product-feature {
    grid-template-columns: 1fr 1fr;
  }
}

.product-feature__content h2 {
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.product-feature__content p {
  color: var(--support);
  margin-bottom: var(--sp-4);
}

.product-feature__image {
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--background-warm);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-feature__badge {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--background-warm);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: var(--sp-4);
}

/* Product pipeline / future products */
.product-pipeline {
  text-align: center;
}

.product-pipeline__title {
  margin-bottom: var(--sp-4);
}

.product-pipeline__text {
  color: var(--support);
  max-width: 55ch;
  margin: 0 auto var(--sp-8);
}

.product-pipeline__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .product-pipeline__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-pipeline__items {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   21. INSIGHTS PAGE
   ========================================================================== */

/* Tag filter bar */
.tag-filter {
  padding: var(--sp-6) 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.tag-filter__bar,
.insights-listing__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag-filter__btn {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  color: var(--support);
  background: var(--card);
  border: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms ease-out;
}

.tag-filter__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-filter__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Insights listing grid */
.insights-listing {
  padding: var(--sp-16) 0;
}

.insights-listing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .insights-listing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .insights-listing__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Insight card */
.insight-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.insight-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: scale(1.01);
}

.insight-card__date {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  color: var(--support);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.insight-card__read-time {
  font-size: 13px;
  color: var(--support);
  opacity: 0.7;
}

.insight-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.insight-card__title a {
  color: inherit;
  text-decoration: none;
}

.insight-card__title a:hover {
  color: var(--primary);
}

.insight-card__excerpt {
  color: var(--support);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.insight-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
}

.insight-card__tag {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  color: var(--highlight);
  background: rgba(210, 120, 96, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Card filtering visibility */
.article-card.hidden,
.insight-card.hidden {
  display: none;
}


/* ==========================================================================
   22. ARTICLE (Insights single page)
   ========================================================================== */

.article {
  padding: var(--sp-16) 0;
}

.article__header {
  margin-bottom: var(--sp-12);
}

.article__title {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

@media (min-width: 1024px) {
  .article__title {
    font-size: 40px;
  }
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  font-size: 14px;
  color: var(--support);
  margin-bottom: var(--sp-4);
}

.article__read-time::before {
  content: '\00B7';
  margin-right: var(--sp-4);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.article__tags .tag {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  color: var(--highlight);
  background: rgba(210, 120, 96, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Prose content — rendered markdown */
.article__content,
.prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 28px;
  color: var(--accent);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.prose h3 {
  font-size: 22px;
  color: var(--accent);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.prose h4 {
  font-size: 18px;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-6);
  max-width: 65ch;
}

.prose ul,
.prose ol {
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-8);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--sp-2);
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--accent);
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  margin: var(--sp-8) 0;
  padding: var(--sp-4) var(--sp-6);
  background: var(--background-warm);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  font-style: italic;
  color: var(--support);
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875em;
  background: var(--background-warm);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.prose pre {
  margin: var(--sp-8) 0;
  padding: var(--sp-6);
  background: var(--accent);
  color: #e6d5c3;
  border-radius: var(--radius-card);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.prose img {
  border-radius: var(--radius-card);
  margin: var(--sp-8) 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-12) 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  background: var(--background-warm);
}

/* Back link */
.article__back {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}


/* ==========================================================================
   23. CTA SECTION
   ========================================================================== */

.cta-section {
  background-color: var(--accent);
  color: #FFFFFF;
  text-align: center;
  padding: 64px 0;
}

.cta-section__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: var(--sp-8);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn--primary,
.cta-section .cta-button.primary {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

.cta-section .btn--primary:hover,
.cta-section .cta-button.primary:hover {
  background: var(--background);
  border-color: var(--background);
  color: var(--accent);
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 96px 0;
  }
}


/* ==========================================================================
   24. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  opacity: 0.8;
  font-size: 16px;
  line-height: 1.6;
  max-width: 35ch;
}

.footer__nav h4,
.footer__contact h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.footer__nav ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__nav a,
.footer__contact a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: color 200ms ease-out;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: #FFFFFF;
}

.footer__contact li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--sp-6) 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 14px;
  opacity: 0.6;
  max-width: none;
}


/* ==========================================================================
   25. ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--stagger-delay, 0ms);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   26. ACCESSIBILITY
   ========================================================================== */

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--primary);
  color: #FFFFFF;
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--radius-button) var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 9999;
  transition: top 200ms ease-out;
}

.skip-to-content:focus {
  top: 0;
  color: #FFFFFF;
}

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */

@media print {
  .nav,
  .navbar,
  .footer,
  .cta-section,
  .cta-button,
  .btn,
  .nav__toggle,
  .tag-filter {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .hero,
  .page-hero,
  .section,
  .section--warm {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 20px 0;
  }

  .page-hero__title,
  .hero__title,
  h1, h2, h3, h4 {
    color: #000000 !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
