/* Rutland Aerial Photography — shared styles */

:root {
  --navy: #16232e;
  --navy-light: #223244;
  --ink: #1c2420;
  --cream: #f7f4ee;
  --cream-alt: #efeadf;
  --gold: #b1863f;
  --gold-light: #cda869;
  --white: #ffffff;
  --line: rgba(22, 35, 46, 0.1);

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }

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

.btn-outline-dark {
  background: transparent;
  border-color: rgba(22, 35, 46, 0.3);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 106;
  padding: 1.4rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(22, 35, 46, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

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

.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 0.15rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.35s var(--ease);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 24px; }

.nav-toggle.is-open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.55) 0%, rgba(16, 26, 34, 0.45) 45%, rgba(16, 26, 34, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
}

.hero-content .eyebrow { color: var(--gold-light); }

.hero-content p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollcue 2s infinite;
}

@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 9.5rem 0 4rem;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, #0f1922 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(177, 134, 63, 0.18), transparent 45%);
}

.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero p.lead { max-width: 60ch; color: rgba(255,255,255,0.82); font-size: 1.1rem; }

/* ---------- Sections ---------- */

section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--cream-alt);
}

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

.section-navy .eyebrow { color: var(--gold-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head.left {
  margin: 0 0 3.5rem;
  text-align: left;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

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

.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.15s; }
.stagger-item:nth-child(3) { transition-delay: 0.25s; }
.stagger-item:nth-child(4) { transition-delay: 0.35s; }
.stagger-item:nth-child(5) { transition-delay: 0.45s; }
.stagger-item:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-media img { transform: none !important; }
  .scroll-cue::before { animation: none; }
}

/* ---------- Intro / about blocks ---------- */

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

.intro-grid .media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -20px rgba(22, 35, 46, 0.35);
}

.intro-grid .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.intro-grid .media:hover img {
  transform: scale(1.05);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2.4rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(22, 35, 46, 0.28);
}

.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.card ul {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}

.card ul li { margin-bottom: 0.4rem; }

.price-note {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Portfolio grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 21, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  padding: 2rem;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 3px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
  z-index: 1;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ---------- Service area / list rows ---------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  background: var(--gold);
  border-radius: 50%;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.area-tag {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--white);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(160deg, var(--navy), #0f1922);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 30%, rgba(177,134,63,0.2), transparent 45%);
}

.cta-band .container { position: relative; }

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.4rem;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-method:last-child { border-bottom: none; }

.contact-method .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.contact-method-link {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.copy-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.copy-btn.is-copied {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ---------- Site search ---------- */

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
}

.search-trigger svg {
  width: 20px;
  height: 20px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(15, 25, 33, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 6vh 1.5rem 2rem;
  overflow-y: auto;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-inner {
  max-width: 640px;
  margin: 0 auto;
}

.search-overlay-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

.search-overlay-top svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--white);
  padding: 0.4rem 0;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  flex-shrink: 0;
  display: flex;
}

.search-close svg {
  width: 22px;
  height: 22px;
}

.search-results {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.search-result {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  color: var(--white);
  transition: background 0.2s var(--ease);
}

.search-result:hover,
.search-result.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.search-result .result-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-result .result-title mark {
  background: var(--gold);
  color: var(--navy);
  border-radius: 2px;
  padding: 0 2px;
}

.search-result .result-snippet {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.search-result .result-snippet mark {
  background: none;
  color: var(--gold-light);
  font-weight: 600;
}

.search-empty {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.search-hint {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Before / after slider ---------- */

.ba-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22, 35, 46, 0.35);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-slider .ba-after {
  clip-path: inset(0 50% 0 0);
}

.ba-tag {
  position: absolute;
  top: 1.2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 25, 33, 0.65);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.ba-tag-before { left: 1.2rem; }
.ba-tag-after { right: 1.2rem; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ba-handle-grip svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
}

.ba-handle:focus-visible .ba-handle-grip {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0f1922;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 1.6rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.featured { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--navy);
    align-items: center;
    justify-content: center;
  }

  .main-nav.mobile-open ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .main-nav.mobile-open a { font-size: 1.4rem; }

  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.featured { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
