/* ==========================================================================
   Austin's Drones — design system
   ========================================================================== */

:root {
  --bg: #faf7ef;
  --bg-alt: #f3efe2;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f5f1e5;
  --border: rgba(31, 42, 34, 0.09);
  --border-strong: rgba(31, 42, 34, 0.18);
  --text: #23301f;
  --text-dim: #647060;
  --text-faint: #97a191;
  --accent: #4a7856;
  --accent-2: #97b084;
  --accent-gradient: linear-gradient(135deg, #3f6b48 0%, #8ba674 100%);
  --on-accent: #f9f6ec;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1240px;
  --font-head: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.gradient-text {
  background: var(--accent-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: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: var(--on-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(74, 120, 86, 0.45); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(74, 120, 86, 0.08); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(250, 247, 239, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions.social-row { margin-top: 0; }
.nav-actions.social-row a { width: 32px; height: 32px; border: none; }
.nav-actions.social-row a svg { width: 15px; height: 15px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 110; }
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions.social-row { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    visibility: hidden;
  }
  .mobile-menu.open { visibility: visible; }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a { font-family: var(--font-head); font-size: 26px; font-weight: 600; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(139, 166, 116, 0.35), transparent),
    radial-gradient(ellipse 50% 45% at 90% 20%, rgba(212, 197, 150, 0.3), transparent),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74, 120, 86, 0.16), transparent 45%),
    radial-gradient(circle at 78% 65%, rgba(151, 176, 132, 0.22), transparent 50%);
  filter: blur(4px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.5%, 2%, 0) scale(1.04); }
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 84px);
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-simple { min-height: 72vh; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(1); opacity: 1;} 50% { transform: scaleY(0.4); opacity: 0.4; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.portfolio-item.portrait { aspect-ratio: 3/4; grid-row: span 2; }
@media (max-width: 600px) { .portfolio-item.portrait { grid-row: span 1; } }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(20,28,18,0.85) 0%, rgba(20,28,18,0.12) 55%, transparent 100%);
  color: var(--on-accent);
  opacity: 0;
  transition: opacity 0.35s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .tag { font-size: 11px; letter-spacing: 0.1em; color: #c3d9ae; margin-bottom: 6px; text-transform: uppercase; }
.portfolio-overlay .title { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--on-accent); }
.play-badge {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20,28,18,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}
.play-badge svg { width: 12px; height: 12px; fill: var(--on-accent); margin-left: 2px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 27, 18, 0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-inner img { width: 100%; border-radius: var(--radius); }
.lightbox-inner video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16/9; }
.lightbox-caption { margin-top: 16px; color: #cfd9c8; font-size: 14px; text-align: center; }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.12); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ==========================================================================
   Instagram feed
   ========================================================================== */
.insta-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
.insta-tile {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
}
.insta-tile svg { width: 22px; height: 22px; opacity: 0.5; }
.insta-embed-slot {
  border-radius: var(--radius);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon-wrap svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; }
.contact-info-item strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: 14px; color: var(--text-dim); }
.contact-info-item a:hover { color: var(--accent); }

.social-row { display: flex; gap: 12px; margin-top: 32px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.social-row a:hover { border-color: var(--accent); background: rgba(74,120,86,0.08); transform: translateY(-3px); }
.social-row a svg { width: 17px; height: 17px; fill: var(--text); }
.nav-actions.social-row a svg { fill: var(--text-dim); }
.nav-actions.social-row a:hover svg { fill: var(--accent); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-elevated-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b5533a; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-faint);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: none; }
