/* ============================================
   SOLARITAS — Premium Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette — golden solar energy */
  --gold: #F5C518;
  --gold-dark: #D4A800;
  --gold-light: #FFE066;
  --gold-glow: rgba(245, 197, 24, 0.25);

  /* Neutrals */
  --black: #0A0A0A;
  --dark: #141414;
  --dark-2: #1A1A1A;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #4A4A4A;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-400: #AAAAAA;
  --gray-300: #CCCCCC;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

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

  /* Layout */
  --container: 1280px;
  --container-narrow: 900px;
  --header-height: 80px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.16);
  --shadow-gold: 0 8px 32px rgba(245, 197, 24, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

address { font-style: normal; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-title span {
  color: var(--gold);
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo img {
  height: 40px;
  width: auto;
  transition: opacity var(--duration-fast);
}

.logo:hover img { opacity: 0.8; }

.main-nav ul {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gold);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.header-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  text-align: center;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--duration-fast);
}

.mobile-link:hover { color: var(--gold); }

.mobile-cta {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gold);
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-full);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video,
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.3) 100%),
    linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  padding-top: var(--header-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero h1 .gold {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.75);
  max-width: 550px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: var(--gold);
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

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

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

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

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDown 2s var(--ease-in-out) infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================
   WORKFLOW SECTION
   ============================================ */
.workflow {
  padding: var(--space-3xl) 0;
  background: var(--white);
  position: relative;
}

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

.workflow-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line between steps */
.workflow-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
  opacity: 0.3;
}

.workflow-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.workflow-card:hover {
  background: var(--gray-100);
  transform: translateY(-4px);
}

.workflow-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.workflow-number span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
}

.workflow-icon {
  width: 40px;
  height: 40px;
  color: var(--black);
}

.workflow-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.workflow-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   INNOVATION / ABOUT SECTION
   ============================================ */
.innovation {
  position: relative;
  padding: var(--space-3xl) 0;
  color: var(--white);
  overflow: hidden;
}

.innovation-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.innovation-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.innovation-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.65) 100%);
}

.innovation-content {
  position: relative;
  z-index: 1;
}

.innovation-text {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.innovation-text h2 {
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.innovation-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.stat-item:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: rgba(245, 197, 24, 0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* CEO Signature */
.ceo-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ceo-signature img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.ceo-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.ceo-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners {
  padding: var(--space-3xl) 0;
  background: var(--gray-100);
}

.partners-header {
  margin-bottom: var(--space-2xl);
}

.partners-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 500px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.partner-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-normal) var(--ease-out);
}

.partner-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.partner-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  color: var(--gold);
}

.partner-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.projects-header {
  margin-bottom: var(--space-2xl);
}

.projects-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
}

.projects-gallery {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: var(--space-md);
  height: 520px;
}

.project-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-item:hover::after {
  opacity: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.cta-section h2 {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.cta-section .btn-primary {
  font-size: 1.05rem;
  padding: 1.1rem 2.8rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}

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

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero h1 .gold { color: var(--gold); }

.page-hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
}

.about-mission {
  padding: var(--space-3xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text h2 {
  color: var(--gold-dark);
  margin-bottom: var(--space-md);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* About values grid */
.about-values {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.value-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-normal) var(--ease-out);
}

.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form-wrap h2 {
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}

.contact-form-wrap > p {
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  grid-column: 1 / -1;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

/* Required field indicator */
.form-required {
  color: #ef4444;
  font-weight: 700;
}

/* Validation error state */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Honeypot – hidden from real users */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Submit button loading state */
.contact-form__submit {
  position: relative;
  min-width: 200px;
}

.contact-form__submit.is-loading .contact-form__submit-text {
  color: transparent;
}

.contact-form__submit-spinner {
  display: none;
}

.contact-form__submit.is-loading .contact-form__submit-spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form success/error messages */
.form-message {
  grid-column: 1 / -1;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-message--success {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}

.form-message--error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

/* Turnstile widget */
.cf-turnstile iframe {
  border-radius: var(--radius-sm);
}

/* Form note */
.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.6rem;
}

.contact-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 480px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.contact-info-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin: 0 auto var(--space-sm);
}

.contact-info-card h4 {
  margin-bottom: 0.4rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact-info-card a:hover {
  color: var(--gold-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  position: relative;
}

.footer-wave {
  color: var(--white);
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 80px;
}

/* Smooth transition from page hero to white content */
.page-hero + .about-mission,
.page-hero + .contact-section {
  position: relative;
}

.page-hero + .about-mission::before,
.page-hero + .contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--gray-100), transparent);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-col address,
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact-link {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.4rem;
  transition: color var(--duration-fast);
}

.footer-contact-link:hover {
  color: var(--gold);
}

.footer-nav li + li { margin-top: 0.5rem; }

.footer-nav a {
  font-size: 0.88rem;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
}

.footer-bottom p {
  font-size: 0.82rem;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--duration-fast) var(--ease-out);
}

.back-to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid::before { display: none; }

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

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

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

  .projects-gallery {
    height: auto;
    grid-template-columns: 1fr;
  }

  .projects-gallery .project-item {
    height: 300px;
  }

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

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

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    text-align: center;
    justify-content: center;
  }

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

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

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

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

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }

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

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ============================================
   CUSTOM CURSOR GLOW (desktop only)
   ============================================ */
@media (hover: hover) {
  .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
  }

  .cursor-glow.active {
    opacity: 0.4;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-sun {
  width: 60px;
  height: 60px;
  position: relative;
}

.loader-sun-core {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.loader-sun-rays {
  width: 100%;
  height: 100%;
  animation: rotateSun 2s linear infinite;
}

.loader-sun-rays span {
  position: absolute;
  width: 3px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
  top: 0;
  left: 50%;
  transform-origin: 50% 30px;
}

.loader-sun-rays span:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.loader-sun-rays span:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.loader-sun-rays span:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.loader-sun-rays span:nth-child(4) { transform: translateX(-50%) rotate(135deg); }
.loader-sun-rays span:nth-child(5) { transform: translateX(-50%) rotate(180deg); }
.loader-sun-rays span:nth-child(6) { transform: translateX(-50%) rotate(225deg); }
.loader-sun-rays span:nth-child(7) { transform: translateX(-50%) rotate(270deg); }
.loader-sun-rays span:nth-child(8) { transform: translateX(-50%) rotate(315deg); }

@keyframes rotateSun {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
