/* ===================================================================
   Drone Tasmania — styles.css
   Lightweight, dependency-free. Edit colours via the variables below.
   =================================================================== */

:root {
  --navy:       #0d1b2a;
  --navy-700:   #1b2a3d;
  --slate:      #2e4259;
  --sky:        #2e9be6;
  --sky-dark:   #1f7ec2;
  --ink:        #1a2330;
  --muted:      #5a6b7b;
  --line:       #e1e7ee;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fa;
  --white:      #ffffff;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(13, 27, 42, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sky-dark);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: var(--white); box-shadow: 0 8px 20px rgba(46,155,230,.35); }
.btn-primary:hover { background: var(--sky-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark circle { fill: var(--sky); }
.brand-mark path { stroke: var(--navy); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.brand-mark rect { fill: var(--navy); }
.brand-text { font-size: 1.18rem; color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 800; }

.primary-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--slate); font-weight: 600; font-size: 0.98rem; }
.primary-nav a:hover { color: var(--navy); text-decoration: none; }
.primary-nav .nav-cta {
  background: var(--sky); color: var(--white);
  padding: .55rem 1.1rem; border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--sky-dark); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  /* TODO: drop a real photo at assets/hero.jpg — it will layer over this gradient.
     Replace the gradient line below with: url("assets/hero.jpg") center/cover no-repeat; */
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(46,155,230,.55), transparent 60%),
    linear-gradient(160deg, #0d1b2a 0%, #15324b 55%, #1f4d6b 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.15), rgba(13,27,42,.55));
  pointer-events: none;
}
.hero-inner { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 1.25rem clamp(3.5rem, 7vw, 6rem); max-width: 760px; }
.hero h1 { color: #ffffff; text-shadow: 0 2px 18px rgba(13, 27, 42, .45); }
.hero .eyebrow { color: #9fd8f8; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Services ---------- */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe6f8; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(145deg, #e8f4fd, #d3ecfb);
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sky-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- About + trust ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
.about-copy p { color: var(--slate); }

.trust-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.trust-card h3 { color: var(--white); margin-bottom: 1rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.trust-list li { display: flex; align-items: flex-start; gap: .6rem; color: rgba(255,255,255,.92); font-weight: 500; }
.trust-list span { color: #6fc3f6; font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.1fr; align-items: start; }
.contact-intro p { color: var(--slate); }
.contact-details { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .9rem; }
.contact-details li { display: flex; flex-direction: column; }
.contact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-details a { font-size: 1.1rem; font-weight: 600; }
.contact-note { color: var(--muted); font-size: .95rem; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy-700); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46,155,230,.18); background: var(--bg);
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; margin-top: .3rem; }
.form-hint { font-size: .85rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }
.form-hint--error { color: #c0392b; font-weight: 600; }

/* Honeypot spam trap — visually hidden but still submitted; keep it out of tab order */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 2.8rem 0 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { color: var(--white); font-size: 1.25rem; }
.footer-tag { color: rgba(255,255,255,.7); margin: .4rem 0 0; max-width: 30ch; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; text-align: right; }
.footer-contact a { color: rgba(255,255,255,.9); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2rem; padding-top: 1.2rem;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { text-align: center; margin-top: .7rem; padding: .8rem; border-bottom: 0; }

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

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
