/* ============================================================
   Keystone Sustainability Governance - Main Stylesheet
   Design: Minimal, Premium, Corporate
   Colors: Keystone Blue + Keystone Teal + White/Grey
   ============================================================ */

/* ---- Google Fonts Import ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---------------------------------------- */
:root {
  /* Colors — Keystone Brand Palette */
  --navy:       #1A3270;   /* Keystone deep blue  */
  --navy-light: #1E3D85;   /* Keystone mid blue   */
  --navy-mid:   #243A80;   /* Keystone blue-mid   */
  --petrol:     #1B6B5A;   /* Keystone teal green */
  --petrol-light: #22876F;
  --petrol-pale:  #E8F5F2;
  --white:      #FFFFFF;
  --grey-50:    #F8F9FA;
  --grey-100:   #F1F3F5;
  --grey-200:   #E9ECEF;
  --grey-300:   #DEE2E6;
  --grey-400:   #CED4DA;
  --grey-500:   #ADB5BD;
  --grey-600:   #6C757D;
  --grey-700:   #495057;
  --grey-800:   #343A40;
  --grey-900:   #212529;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 4px 20px rgba(13,27,42,0.12);
  --shadow-lg:  0 8px 40px rgba(13,27,42,0.16);

  /* Transitions */
  --transition: 0.3s ease;

  /* Container */
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--grey-700); }
p:last-child { margin-bottom: 0; }

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--grey {
  background: var(--grey-50);
}

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

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: var(--grey-300);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: var(--space-xs);
}

.section--navy .section__label {
  color: var(--petrol-light);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Grid ------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

.btn--primary:hover {
  background: var(--petrol-light);
  border-color: var(--petrol-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

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

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

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Navigation ------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: all var(--transition);
}

.navbar--scrolled {
  background: var(--white);
  backdrop-filter: none;
  padding: 0.85rem 0;
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__logo-mark {
  width: 42px;
  height: 42px;
  background: var(--petrol);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.navbar__logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--grey-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-700);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--petrol);
  transition: width var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--navy);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  font-size: 0.8rem;
  padding: 0.65rem 1.4rem;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ---- Navbar Dropdown -------------------------------------- */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-arrow {
  display: inline-block;
  margin-left: 3px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.navbar__dropdown:hover .navbar__dropdown-arrow {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
  z-index: 200;
  border: 1px solid var(--grey-200);
}

.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--grey-200);
  border-top: 1px solid var(--grey-200);
  transform: translateX(-50%) rotate(45deg);
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: calc(100% + 10px);
}

.navbar__dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--grey-700);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.navbar__dropdown-item:hover {
  background: var(--petrol-pale);
  color: var(--petrol);
}

.navbar__dropdown-item--all {
  font-weight: 600;
  color: var(--petrol);
}

.navbar__dropdown-item--all:hover {
  background: var(--petrol);
  color: var(--white);
}

.navbar__dropdown-divider {
  height: 1px;
  background: var(--grey-200);
  margin: 0.4rem 0;
}

/* Mobile: dropdown as accordion */
@media (max-width: 768px) {
  .navbar__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--grey-100);
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .navbar__dropdown-menu::before { display: none; }
  .navbar__dropdown.open .navbar__dropdown-menu { display: block; }
  .navbar__dropdown-item { color: var(--grey-600); padding: 0.5rem 1.5rem; }
  .navbar__dropdown-item:hover { background: var(--petrol-pale); color: var(--petrol); }
  .navbar__dropdown-item--all { color: var(--petrol-light); }
}

/* ---- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 50%, var(--navy-mid) 100%);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(27,107,90,0.15) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 8rem 0 6rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petrol-light);
  margin-bottom: 1.5rem;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--petrol-light);
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--petrol-light);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--grey-400);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-500);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--grey-500));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Hero Slider ------------------------------------------ */
.hero-slider {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--navy);
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  position: relative;
}

.hero-slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__bg--default {
  background: linear-gradient(135deg, var(--navy) 50%, var(--navy-mid) 100%);
  background-image: radial-gradient(circle at 70% 50%, rgba(27,107,90,0.15) 0%, transparent 60%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(13,27,42,0.65) 0%, rgba(13,27,42,0.35) 60%, rgba(13,27,42,0.10) 100%);
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Slider arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.hero-slider__arrow--prev { left: 2rem; }
.hero-slider__arrow--next { right: 2rem; }

/* Dots */
.hero-slider__dots {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}

.hero-slider__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 768px) {
  .hero-slider__arrow { display: none; }
  .hero-slider__dots { bottom: 4.5rem; }
}

/* ---- Page Hero -------------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.page-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(27,107,90,0.12) 0%, transparent 60%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
}

.page-hero__breadcrumb a {
  color: var(--grey-400);
  transition: color var(--transition);
}

.page-hero__breadcrumb a:hover { color: var(--white); }
.page-hero__breadcrumb span { color: var(--grey-600); }

.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petrol-light);
  margin-bottom: 1rem;
}

.page-hero__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--grey-400);
  max-width: 600px;
}

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--grey-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--petrol-pale);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--grey-100);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-md);
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol);
  background: var(--petrol-pale);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card__text {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--grey-500);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--petrol);
  transition: gap var(--transition);
}

.card__link:hover { gap: 0.7rem; color: var(--petrol-light); }

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--petrol);
  transition: height var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--petrol-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--petrol);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--petrol);
  transition: stroke var(--transition);
}

.service-card:hover .service-card__icon svg {
  stroke: var(--white);
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Sector Card */
.sector-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.sector-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: var(--navy-mid);
}

.sector-card:hover .sector-card__image {
  transform: scale(1.08);
}

.sector-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.9) 0%, rgba(13,27,42,0.3) 60%, transparent 100%);
  transition: background var(--transition);
}

.sector-card:hover .sector-card__overlay {
  background: linear-gradient(to top, rgba(27,107,90,0.85) 0%, rgba(13,27,42,0.5) 60%, transparent 100%);
}

.sector-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  color: var(--white);
}

.sector-card__title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.sector-card__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

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

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--petrol-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Why Keystone Section --------------------------------- */
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(27,107,90,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--petrol-light);
}

.why-item__title {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.why-item__text {
  font-size: 0.9rem;
  color: var(--grey-400);
  margin: 0;
  line-height: 1.6;
}

/* ---- CTA Banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--petrol) 0%, var(--navy-mid) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* ---- Forms ------------------------------------------------ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-800);
  background: var(--white);
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(27,107,90,0.1);
}

.form-control::placeholder {
  color: var(--grey-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ---- Alert / Flash ---------------------------------------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
}

.alert--success {
  background: #d1fadf;
  border-color: #a3efbb;
  color: #1a5c35;
}

.alert--error {
  background: #ffe0e0;
  border-color: #ffc0c0;
  color: #9b1c1c;
}

.alert--info {
  background: var(--petrol-pale);
  border-color: rgba(27,107,90,0.2);
  color: var(--petrol);
}

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--grey-50);
  color: var(--grey-800);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--grey-200);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--grey-200);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--grey-600);
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--grey-600);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--petrol); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--grey-600);
  margin-bottom: 0.75rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--petrol);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--grey-500);
}

/* ---- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1.5px solid var(--grey-200);
  color: var(--grey-700);
}

.pagination__item:hover,
.pagination__item.active {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: var(--space-md);
  color: var(--grey-500);
}

.breadcrumb a { color: var(--petrol); }
.breadcrumb a:hover { color: var(--petrol-light); }

/* ---- Team Card -------------------------------------------- */
.team-card {
  text-align: center;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--grey-200);
  border: 3px solid var(--petrol-pale);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-card__title {
  font-size: 0.85rem;
  color: var(--petrol);
  margin-bottom: 0.75rem;
}

/* ---- Project Card ----------------------------------------- */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
}

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

.project-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-mid);
  position: relative;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(13,27,42,0.8);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
}

.project-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-card__meta svg {
  width: 12px;
  height: 12px;
  stroke: var(--grey-400);
}

.project-card__title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.project-card__excerpt {
  font-size: 0.875rem;
  color: var(--grey-600);
  line-height: 1.5;
}

/* ---- Filter Tabs ------------------------------------------ */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 30px;
  border: 1.5px solid var(--grey-300);
  color: var(--grey-600);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--white);
}

/* ---- Utilities -------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-petrol { color: var(--petrol); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--grey-500); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.divider {
  height: 1px;
  background: var(--grey-200);
  margin: var(--space-lg) 0;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  :root { --space-2xl: 4rem; --space-xl: 3rem; }

  .navbar__nav { display: none; }
  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .navbar__nav.open .navbar__link { font-size: 1.4rem; color: var(--navy); }
  .navbar__hamburger { display: flex; }
  .navbar__close { display: block; position: absolute; top: 1.5rem; right: 1.5rem; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-tabs { justify-content: center; }
}
