/* ==========================================================================
   Easy Air Solutions — Shared Styles
   ========================================================================== */

:root {
  /* Color palette */
  --bg: #0d1117;
  --surface: #161b22;
  --surface-alt: #1c2129;
  --accent: #2d9cdb;
  --accent-light: #55b3e6;
  --accent-dim: rgba(45, 156, 219, 0.14);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --border: #21262d;
  --success: #238636;

  /* Type */
  --font-display: "Bebas Neue", "Barlow Condensed", sans-serif;
  --font-body: "Inter", "DM Sans", sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vw, 8rem);
  --max-width: 1280px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: var(--section-pad) 0;
}

/* -------------------------------- Typography ------------------------------- */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.25rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #041420;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ----------------------------------- Nav ----------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 0;
  border-bottom-color: var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-links a.active-link {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* -------------------------------- Reveal utility ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------- Footer ---------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.75rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(45, 156, 219, 0.16), transparent 60%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid svg {
  width: 100%;
  height: 100%;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(35, 134, 54, 0.2);
}

.hero h1 {
  font-size: clamp(3.25rem, 9vw, 6.5rem);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: line-up 0.8s var(--ease) forwards;
}

.hero h1 .line:nth-child(1) span {
  animation-delay: 0.15s;
}

.hero h1 .line:nth-child(2) span {
  color: var(--accent);
  animation-delay: 0.3s;
}

@keyframes line-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin: 1.75rem 0 2.5rem;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) forwards;
  animation-delay: 0.55s;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) forwards;
  animation-delay: 0.7s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line span,
  .hero-sub,
  .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.trust-bar {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-bar li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-bar li:first-child {
  padding-left: 0;
}

.trust-bar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 1px;
  height: 1.1rem;
  background: var(--accent);
}

.trust-bar li:first-child::before {
  display: none;
}

.trust-bar strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.6);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-section {
  background: var(--surface);
  position: relative;
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin-top: -3vw;
  padding-top: calc(var(--section-pad) + 3vw);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.why-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.05rem;
}

.why-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--success);
  margin-top: 0.15rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.75rem;
}

.stat-block .stat {
  display: flex;
  flex-direction: column;
}

.stat-block .stat + .stat {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  border-top: 1px dashed var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.14;
  line-height: 1;
  margin-bottom: -2.25rem;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .process-steps::before {
    display: none;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-card p.quote {
  color: var(--text-primary);
  font-size: 1rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  background: var(--surface);
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -3vw;
  padding-top: calc(var(--section-pad) + 3vw);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.contact-info p.lead {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.contact-block:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-block .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-block h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.contact-block a,
.contact-block span {
  font-size: 1.1rem;
  font-weight: 600;
}

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

.quote-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.3);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238B949E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.85rem;
  background: rgba(35, 134, 54, 0.12);
  border: 1px solid var(--success);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.gallery-hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(45, 156, 219, 0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.gallery-hero p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 1.1rem;
}

.gallery-wrap {
  padding: 3.5rem 0 6rem;
}

.masonry {
  column-count: 3;
  column-gap: 1.25rem;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.photo-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 40%, rgba(13, 17, 23, 0.92) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(13, 17, 23, 0.6);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent);
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border: 1px solid var(--border);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-nav.prev {
  left: 1.5rem;
}

.lightbox-nav.next {
  right: 1.5rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .lightbox-nav.prev {
    left: 0.5rem;
  }
  .lightbox-nav.next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}
