/* ============================================================
   ApexFlyer.com — Stylesheet
   Design direction: modern local media brand, navy + sky blue
   + warm orange accents, soft gray backgrounds.
   ============================================================ */

:root {
  --navy: #0f2942;
  --navy-deep: #0a1c2e;
  --sky: #2f9bdb;
  --sky-light: #eaf6fd;
  --orange: #f2884b;
  --orange-dark: #d96f36;
  --gray-bg: #f6f7f9;
  --gray-border: #e3e7ec;
  --text-main: #1c2b3a;
  --text-muted: #55697c;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 41, 66, 0.10);
  --max-width: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.eyebrow {
  color: var(--orange-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin: 0 0 0.6em;
}
.center { text-align: center; }
.eyebrow.center { text-align: center; }

.section { padding: 72px 0; }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner.narrow { max-width: 760px; }
.alt-bg { background: var(--gray-bg); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-visual { order: 1; }

.section-lede {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.4em;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 6px; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--sky); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sky); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--white) 100%);
  padding: 64px 0 80px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-subhead {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.7em;
}
.hero-intro { font-size: 1.05rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.6em; flex-wrap: wrap; }

/* Brand concept mock browser card */
.brand-concept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  position: relative;
  border: 1px solid var(--gray-border);
}
.concept-label {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.mock-browser {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}
.mock-browser-bar {
  background: var(--gray-bg);
  padding: 9px 12px;
  display: flex;
  gap: 6px;
}
.mock-browser-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #cfd7de;
}
.mock-browser-body { background: var(--white); padding: 20px; }
.mock-flyer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock-flyer-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), var(--navy));
}
.mock-flyer-nav { display: flex; gap: 10px; }
.mock-flyer-nav span {
  width: 34px; height: 8px; border-radius: 4px; background: var(--gray-border);
}
.mock-flyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mock-flyer-card {
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
}
.mock-card-a { background: var(--sky-light); }
.mock-card-b { background: #fdeee3; }
.mock-card-c { background: #eef7ee; }
.mock-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.mock-card-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(15, 41, 66, 0.18);
  margin-bottom: 6px;
}
.mock-card-line.short { width: 60%; }

/* ------------------------------------------------------------
   Concept image blocks (CSS-gradient fallback, used when actual
   photography isn't uploaded yet)
   ------------------------------------------------------------ */
.concept-image {
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.community-image { background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%); }
.marketing-image { background: linear-gradient(135deg, var(--orange) 0%, var(--navy-deep) 100%); }
.concept-image .concept-label { position: relative; }

/* ------------------------------------------------------------
   Card grids
   ------------------------------------------------------------ */
.card-grid { display: grid; gap: 22px; margin-top: 2.4em; }
.card-grid-8 { grid-template-columns: repeat(4, 1fr); }
.card-grid-6 { grid-template-columns: repeat(3, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.use-card, .feature-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.use-card:hover, .feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.use-card h3, .feature-card h3 { font-size: 1.05rem; }
.use-card p, .feature-card p { font-size: 0.94rem; margin-bottom: 0; }

.alt-bg .use-card, .alt-bg .feature-card { background: var(--white); }

/* Brand concept direction cards */
.concept-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.concept-card-visual {
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.concept-visual-community { background: linear-gradient(135deg, var(--sky), var(--navy)); }
.concept-visual-marketing { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.concept-visual-digital { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.concept-card h3, .concept-card p { padding: 0 20px; }
.concept-card h3 { margin-top: 18px; }
.concept-card p { padding-bottom: 20px; margin-bottom: 0; }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list { max-width: 720px; margin: 2em auto 0; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--sky);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ------------------------------------------------------------
   Inquiry / form
   ------------------------------------------------------------ */
.inquiry-points {
  padding-left: 20px;
  color: var(--text-muted);
  margin-top: 1.4em;
}
.inquiry-points li { margin-bottom: 0.5em; }

.col-form {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.inquiry-form .form-row { margin-bottom: 18px; }
.inquiry-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.inquiry-form .optional { font-weight: 400; color: var(--text-muted); }
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-main);
  background: var(--white);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 155, 219, 0.18);
}
.inquiry-form textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.field-error { color: var(--orange-dark); font-size: 0.85rem; margin: 6px 0 0; }
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.6em;
  font-weight: 600;
}
.form-alert-error {
  background: #fdeee3;
  color: var(--orange-dark);
  border: 1px solid #f4c9a8;
}

/* Contact / legal / 404 / thank-you pages */
.section-contact-page, .section-legal, .section-404, .section-thankyou {
  padding-top: 56px;
}
.section-legal h2 { margin-top: 1.4em; font-size: 1.3rem; }
.section-legal ul { color: var(--text-muted); padding-left: 20px; }
.legal-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gray-border);
  padding-top: 1.4em;
  margin-top: 2em;
}
.section-thankyou, .section-404 { text-align: center; padding: 100px 0; }

/* ------------------------------------------------------------
   Ads
   ------------------------------------------------------------ */
.ad-slot {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 0 24px;
  text-align: center;
}
.ad-slot-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: #cfd9e3;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand-name { color: var(--white); }
.footer-description { color: #9fb0c0; font-size: 0.92rem; margin-top: 14px; }
.footer-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfd9e3; font-size: 0.92rem; }
.footer-col a:hover { color: var(--sky); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #8296a8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-text,
  .two-col.reverse .col-visual { order: initial; }
  .card-grid-8 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 0; width: 100%; }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .card-grid-8 { grid-template-columns: 1fr; }
  .card-grid-6 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 48px 0; }
}
