/* ============================================================
   Orme Energy — Design tokens
   ============================================================ */
:root {
  --ink: #170F0D;
  --ink-raised: #241815;
  --crimson: #A02533;
  --ember: #E0552E;
  --paper: #FAF6F2;
  --white: #FFFFFF;
  --line: #E8E1D9;
  --white-muted: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(23, 15, 13, 0.68);
  --gradient: linear-gradient(135deg, var(--crimson), var(--ember));
  --radius: 8px;
  --radius-lg: 16px;
  --wrap: 1160px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--ember); }

.h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-muted); max-width: 640px; }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lede { color: var(--white-muted); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(160, 37, 51, 0.55);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(160, 37, 51, 0.65); }

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--crimson); color: var(--crimson); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 15, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  gap: 24px;
}
.logo img { height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav a {
  color: var(--white-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.header-cta { margin-left: 8px; padding: 11px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin: 0 auto;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { height: 88px; }
  .logo img { height: 60px; }
  .site-nav {
    position: fixed;
    top: 88px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a { width: 100%; padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav .header-cta-mobile { display: block; margin: 16px 24px; }
}
.header-cta-mobile { display: none; }
@media (max-width: 860px) { .header-cta-mobile { display: inline-flex; } }

/* ============================================================
   Hero (index)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23,15,13,0.35) 0%, rgba(23,15,13,0.45) 45%, rgba(23,15,13,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 96px; width: 100%; }
.hero-headline { max-width: 780px; }
.hero-headline .h1 { color: var(--white); }
.hero-line-2 {
  display: block;
  opacity: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--white-muted); max-width: 540px; }
.hero-cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
}
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 24px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--white-muted), transparent);
}

/* ============================================================
   Page hero (non-home pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 168px 0 88px;
}
.page-hero .h1 { color: var(--white); max-width: 720px; }
.page-hero .lede { margin-top: 18px; }

/* ============================================================
   Services (index)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover img { transform: scale(1.08); }
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,15,13,0.92) 0%, rgba(23,15,13,0.25) 55%, rgba(23,15,13,0.05) 100%);
}
.service-card-body { position: relative; z-index: 2; padding: 28px; }
.service-card-body h3 { color: var(--white); margin-bottom: 8px; }
.service-card-body span { font-size: 14px; color: var(--white-muted); display: inline-flex; align-items: center; gap: 6px; }
.service-card-body svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-card-body svg { transform: translateX(4px); }

/* ============================================================
   Why Orme strip
   ============================================================ */
.why-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 768px) { .why-strip { grid-template-columns: 1fr; gap: 28px; } }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 24px; height: 24px; color: var(--white); }
.why-item h4 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--ink-muted); font-size: 14.5px; }

/* ============================================================
   Clients / partners roller
   ============================================================ */
.clients-section { padding: 80px 0; }
.clients-copy { text-align: center; color: var(--white-muted); font-size: 15px; margin-bottom: 40px; }
.roller {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.roller-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: roller-scroll 32s linear infinite;
}
.roller:hover .roller-track { animation-play-state: paused; }
.roller-track img { height: 40px; width: auto; opacity: 0.85; filter: grayscale(1) brightness(1.8); transition: opacity 0.25s, filter 0.25s; }
.roller-track img:hover { opacity: 1; filter: none; }
@keyframes roller-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.clients-empty { text-align: center; color: var(--white-muted); font-size: 14px; padding: 20px 0; }

/* ============================================================
   Stats bar
   ============================================================ */
.stats-bar { background: var(--paper); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 8px; color: var(--ink-muted); font-size: 15px; letter-spacing: 0.02em; }

/* ============================================================
   Final CTA banner
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 110px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.4) saturate(1.1);
  transform: scale(1.1);
}
.cta-banner-inner { position: relative; z-index: 2; }
.cta-banner .h2 { color: var(--white); max-width: 640px; margin: 0 auto; }
.cta-banner .lede { color: var(--white-muted); margin: 18px auto 32px; }

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-media { border-radius: var(--radius-lg); overflow: hidden; }
.about-copy p { color: var(--ink-muted); margin-top: 18px; }
.about-copy p:first-of-type { margin-top: 22px; }

.growth-section { background: var(--ink); color: var(--white); }
.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 860px) { .growth-grid { grid-template-columns: 1fr; } }
.growth-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--ink-raised);
  border: 1px solid rgba(255,255,255,0.06);
}
.growth-card h4 { color: var(--white); margin-bottom: 10px; font-size: 18px; }
.growth-card p { color: var(--white-muted); font-size: 14.5px; }

/* ============================================================
   Solutions page
   ============================================================ */
.solution-block { padding: 88px 0; }
.solution-block:nth-of-type(even) { background: var(--white); }
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr; gap: 32px; } }
.solution-block.reverse .solution-grid { direction: rtl; }
.solution-block.reverse .solution-grid > * { direction: ltr; }
.solution-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; }
.benefit-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.benefit-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-muted); }
.benefit-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--crimson); margin-top: 1px; }
.solution-block .btn { margin-top: 32px; }

/* ============================================================
   Projects page
   ============================================================ */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease);
}
.filter-tab:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-tab.active { background: var(--gradient); color: var(--white); border-color: transparent; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--ink-raised);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gradient);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.project-card-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(23,15,13,0.94) 0%, rgba(23,15,13,0.1) 60%, transparent 100%);
  color: var(--white);
}
.project-card-info h4 { color: var(--white); font-size: 17px; }
.project-card-info .loc { font-size: 13px; color: var(--white-muted); margin-top: 4px; }
.project-card-desc {
  font-size: 13px; color: var(--white-muted); margin-top: 10px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
}
.project-card:hover .project-card-desc { max-height: 60px; opacity: 1; }

.projects-empty {
  text-align: center;
  padding: 90px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.projects-empty svg { width: 44px; height: 44px; color: var(--crimson); margin: 0 auto 18px; }
.projects-empty h3 { margin-bottom: 8px; }
.projects-empty p { color: var(--ink-muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 15, 13, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 920px; width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 720px) { .lightbox-inner { grid-template-columns: 1fr; } }
.lightbox-img { aspect-ratio: 4/3; overflow: hidden; }
.lightbox-img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-body { padding: 32px; }
.lightbox-body h3 { margin-bottom: 6px; }
.lightbox-body .loc { color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.lightbox-body p { color: var(--ink-muted); font-size: 15px; margin-bottom: 20px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; min-height: 2.6em; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(96, 165, 96, 0.12); color: #3f7a3f; border: 1px solid rgba(96,165,96,0.3); }
.form-status.error { background: rgba(200, 60, 60, 0.1); color: var(--crimson); border: 1px solid rgba(160,37,51,0.25); }

.info-block { margin-bottom: 32px; }
.info-block h4 { font-size: 15px; margin-bottom: 10px; }
.info-block p { color: var(--ink-muted); font-size: 15px; }
.info-block a { color: var(--crimson); font-weight: 600; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--line);
  margin-bottom: 28px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-logo { height: 68px; margin-bottom: 16px; }
.footer-brand p { color: var(--white-muted); font-size: 14px; max-width: 280px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.social-icons a:hover { background: var(--gradient); border-color: transparent; }
.social-icons svg { width: 17px; height: 17px; }
.footer-links h4, .footer-contact h4 { font-size: 14px; margin-bottom: 18px; color: var(--white); }
.footer-links a, .footer-contact p { display: block; color: var(--white-muted); font-size: 14.5px; margin-bottom: 12px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 13px; color: var(--white-muted); }

/* ============================================================
   WhatsApp floating button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }

/* ============================================================
   Scroll-reveal utility (JS-driven via GSAP)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(60px); }
.no-js .reveal, .reduced-motion .reveal { opacity: 1; transform: none; }
