/* ============================================================
   GoodHomeMedia LLC - shared stylesheet
   ============================================================ */

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --ink: #16211c;          /* near-black with a green cast */
  --brand: #1d3a2f;        /* deep green from the logo */
  --brand-dark: #142b22;
  --accent: #b3804c;       /* copper from the logo mark */
  --paper: #ffffff;
  --line: #e3e7e4;
  --muted: #5f6b64;
  --wash: #f6f8f6;         /* faint green-grey section wash */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { max-width: 1280px; }

/* utility strip */
.topbar { background: var(--brand); color: rgba(255,255,255,0.9); }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 38px; font-size: 12.5px; letter-spacing: 0.02em;
}
.topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 22px; white-space: nowrap; }
.topbar-links a { color: rgba(255,255,255,0.9); font-weight: 500; transition: color .15s; }
.topbar-links a:hover { color: #fff; }

nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  height: 76px;
}

/* brand lockup: mark + name + tagline */
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; white-space: nowrap; }
.logo-mark { height: 42px; width: 42px; object-fit: cover; border-radius: 6px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name {
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: #111;
}
.logo-llc { font-weight: 700; color: #111; font-size: 17px; }
.logo-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  white-space: nowrap; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color .15s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.current { color: var(--brand); font-weight: 600; }
.nav-links a.portal { color: var(--ink); }

/* ---- Book Now button (header) ---- */
.book {
  color: #fff; background: #111;
  padding: 11px 22px; border-radius: 3px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid #111; transition: background .15s, color .15s;
  white-space: nowrap;
}
.book:hover { background: #000; color: #fff; }
/* keep Book Now text white even inside the desktop nav (which colors links muted) */
.nav-links a.book, .nav-links a.book:hover { color: #fff; }

.menu-btn {
  background: none; border: 1px solid var(--line); border-radius: 3px;
  padding: 9px 16px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink); transition: border-color .15s;
}
.menu-btn:hover { border-color: var(--brand); }

/* compact cluster (service links + Book Now + Menu), shown when nav collapses */
.nav-compact { display: none; align-items: center; gap: 18px; }
.svc-quick { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s; }
.svc-quick:hover { color: var(--brand); }
.nav-compact .book { padding: 9px 16px; }

/* mobile menu */
.mobile { display: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile.show { display: block; }
.mobile a {
  display: block; padding: 14px 24px;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 500;
}
.mobile a:first-child { border-top: none; }
.mobile a:hover { color: var(--brand); background: var(--wash); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}

section { padding: 88px 0; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 600;
  padding: 13px 28px; border: 1px solid var(--brand);
  transition: all .15s; cursor: pointer; border-radius: 3px;
  letter-spacing: 0.01em;
}
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-line { background: transparent; color: var(--brand); }
.btn-line:hover { background: var(--brand); color: #fff; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  padding: 150px 0 120px;
  background-image:
    linear-gradient(to right, rgba(13,24,19,0.86) 0%, rgba(13,24,19,0.58) 38%, rgba(13,24,19,0.18) 72%, rgba(13,24,19,0.06) 100%),
    url('hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.92); max-width: 540px; margin: 24px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-solid { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn-solid:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.hero .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-line:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* ---------- page header (sub-pages) ---------- */
.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  padding: 72px 0 56px;
}
.page-head .crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.page-head .crumb a:hover { color: var(--brand); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.page-head p.lead { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 18px; }

/* ---------- drone airspace notice band ---------- */
.notice { background: #fbf7ef; border-bottom: 1px solid #ece4d2; }
.notice p { font-size: 14px; color: var(--ink); padding: 15px 0; line-height: 1.6; max-width: 920px; }
.notice-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: 2px 9px; border-radius: 2px; margin-right: 10px; vertical-align: middle;
}

/* ---------- services ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  margin-top: 44px;
}
.svc {
  background: var(--paper);
  padding: 30px 28px; min-height: 180px;
  transition: background .15s;
}
.svc:hover { background: var(--wash); }
.svc .num { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.svc h3 { margin: 14px 0 8px; }
.svc p { font-size: 14px; color: var(--muted); }
.soon {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent);
  padding: 2px 8px; margin-left: 8px; border-radius: 2px;
  vertical-align: middle; font-weight: 600; white-space: nowrap;
}

/* detailed service rows (service pages) */
.svc-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px;
  padding: 42px 0; border-top: 1px solid var(--line); align-items: start;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .rnum {
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent); padding-top: 6px;
}
.svc-row h3 { font-size: 23px; margin-bottom: 12px; }
.svc-row p { color: var(--muted); max-width: 640px; }
.svc-row ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.svc-row li { font-size: 14px; color: var(--muted); position: relative; padding-left: 14px; }
.svc-row li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- commercial ---------- */
.commercial { background: var(--paper); color: var(--ink); }
.com-list { list-style: none; margin-top: 28px; }
.com-list li { padding: 13px 0 13px 26px; border-top: 1px solid var(--line); font-size: 15px; position: relative; }
.com-list li::before {
  content: ''; position: absolute; left: 2px; top: 22px;
  width: 12px; height: 2px; background: var(--accent);
}
.com-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* commercial sector cards */
.sector-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.sector { background: var(--paper); padding: 32px 28px; transition: background .15s; }
.sector:hover { background: var(--wash); }
.sector h3 { font-size: 20px; margin-bottom: 10px; }
.sector p { color: var(--muted); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat { border-top: 3px solid var(--brand); padding-top: 16px; }
.stat .big { font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; letter-spacing: -0.01em; color: var(--brand); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- gallery ---------- */
.tabs { display: flex; gap: 26px; margin: 28px 0 32px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500;
  color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo {
  aspect-ratio: 4/3; background: var(--wash);
  display: flex; align-items: center; justify-content: center;
  color: #a9b2ac; font-size: 13px; border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.panel { display: none; }
.panel.active { display: block; }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-soon { border: 1px solid var(--line); background: var(--wash); padding: 72px 28px; text-align: center; border-radius: 4px; }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; font: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; text-align: left; font-size: 17px; font-weight: 500;
  transition: color .15s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .sign { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--muted); max-width: 680px; }
.faq-cat {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin: 48px 0 6px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.contact-row { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-row:first-child { border-top: none; }
.contact-row span { color: var(--muted); display: inline-block; width: 70px; }
.contact-row a:hover { color: var(--brand); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 16px; }
.value { border-top: 3px solid var(--brand); padding-top: 18px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 14px; }

/* ---------- generic CTA band ---------- */
.cta-band { text-align: center; background: var(--wash); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---------- email list ---------- */
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.news-form input {
  flex: 1; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 3px; font: inherit; font-size: 15px; background: var(--paper); color: var(--ink);
}
.news-form input::placeholder { color: #a9b2ac; }
.news-form input:focus { outline: none; border-color: var(--brand); }
.news-form .btn { white-space: nowrap; }
.news-msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.news-msg.ok { color: var(--brand); font-weight: 500; }
.news-msg.err { color: #a33; }
@media (max-width: 520px) {
  .news-form { flex-direction: column; }
}

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.contact-form label { font-size: 14px; font-weight: 500; display: flex; flex-direction: column; gap: 7px; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-size: 15px; font-weight: 400;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); }
.contact-form .btn { align-self: flex-start; }

/* ---------- preview link ---------- */
.more {
  display: inline-block; margin-top: 26px; font-weight: 600; font-size: 15px;
  color: var(--brand); border-bottom: 1px solid var(--brand); padding-bottom: 2px;
  transition: opacity .15s;
}
.more:hover { opacity: .65; }

/* ---------- footer ---------- */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--wash); }
.foot-logo { height: 56px; width: auto; display: block; border-radius: 4px; margin-bottom: 28px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot .muted { font-size: 14px; }
.foot-links { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); transition: color .15s; }
.foot-links a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .com-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .value-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-compact { display: flex; }
}
@media (max-width: 880px) {
  .svc-quick { display: none; }
}
@media (max-width: 640px) {
  .svc-grid, .photo-grid, .sector-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  section { padding: 64px 0; }
  .hero { padding: 96px 0 72px; }
  .page-head { padding: 48px 0 40px; }
}

/* topbar responsiveness */
@media (max-width: 720px) {
  .topbar-note { display: none; }
  .topbar-in { justify-content: center; }
}
@media (max-width: 480px) {
  .logo-tag { display: none; }
  /* keep the utility strip and nav cluster inside a phone-width viewport */
  .topbar-links { gap: 12px; font-size: 13px; }
  .topbar-links a[href^="mailto"] { display: none; }
  .nav-compact { gap: 10px; }
  .nav-compact .book { padding: 8px 12px; }
  .menu-btn { padding: 8px 12px; }
  nav { gap: 12px; }
  .logo { gap: 9px; min-width: 0; }
  .logo-text { min-width: 0; }
  .logo-name { overflow: hidden; text-overflow: ellipsis; }
  .logo-name, .logo-llc { font-size: 15px; }
  .nav-compact { flex-shrink: 0; }
}
