/*
Theme Name: Skyline Aviation
Theme URI: https://ulfapp.com/
Author: Ulf App
Description: A fast, plugin-free website theme for aviation maintenance businesses — repair stations, parts dealers, avionics shops and flight schools. Activating it builds a complete starter site (pages, menu, services, quote form) that you then edit with the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyline-aviation
*/

:root {
  --c-primary: #0b2a52;
  --c-accent: #ff6a13;
  --c-ink: #14213d;
  --c-muted: #5b6b82;
  --c-bg: #ffffff;
  --c-soft: #f3f6fb;
  --c-line: #dde4ee;
  --radius: 14px;
  --maxw: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--c-ink); background: var(--c-bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--c-primary); }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--c-primary); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); } h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); } h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 999; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--c-accent); color: #fff; } .btn-accent:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; } .btn-ghost:hover { background: #fff; color: var(--c-primary); }
.btn-primary { background: var(--c-primary); color: #fff; } .btn-primary:hover { color: #fff; filter: brightness(1.15); }

/* Top bar + header */
.topbar { background: var(--c-primary); color: #dbe6f7; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-primary); }
.brand img { max-height: 52px; width: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--c-accent); }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--c-ink); font-weight: 600; font-size: .98rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--c-soft); color: var(--c-primary); }
.main-nav .menu-cta > a { background: var(--c-accent); color: #fff; } .main-nav .menu-cta > a:hover { filter: brightness(1.08); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--c-primary); }
.nav-toggle svg { width: 30px; height: 30px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 520px at 85% -10%, #1d4f93 0%, transparent 60%), linear-gradient(135deg, #061a36 0%, var(--c-primary) 55%, #123d73 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 110px; }
.hero h1 { color: #fff; max-width: 14em; }
.hero p.lead { font-size: 1.25rem; max-width: 36em; color: #d6e3f7; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: absolute; right: -40px; bottom: -10px; width: min(900px, 90%); opacity: .9; z-index: 1; pointer-events: none; }
.certs { background: var(--c-soft); border-bottom: 1px solid var(--c-line); }
.certs .wrap { display: flex; gap: 12px 30px; flex-wrap: wrap; justify-content: center; padding-top: 18px; padding-bottom: 18px; color: var(--c-primary); font-weight: 700; font-size: .95rem; }
.certs span::before { content: "✓ "; color: var(--c-accent); }

/* Sections */
.section { padding: 84px 0; } .section.soft { background: var(--c-soft); }
.section-head { max-width: 40em; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { color: var(--c-accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; display: block; margin-bottom: 10px; }
.grid { display: grid; gap: 24px; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 14px 34px rgba(11,42,82,.12); transform: translateY(-3px); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff1e8; color: var(--c-accent); margin-bottom: 16px; }
.card .icon svg { width: 28px; height: 28px; }
.card a.more { font-weight: 700; text-decoration: none; }
.why .num { font-size: 2.6rem; font-weight: 800; color: var(--c-accent); line-height: 1; margin-bottom: 8px; }
.cta-band { background: linear-gradient(135deg, var(--c-accent), #ff8a3d); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; } .cta-band .btn { background: #fff; color: var(--c-primary); }

/* Content pages */
.page-hero { background: linear-gradient(135deg, #061a36, var(--c-primary)); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.content { padding: 56px 0 80px; }
.content .entry { max-width: 820px; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.entry th { background: var(--c-soft); color: var(--c-primary); }
.entry ul { padding-left: 1.2em; } .entry li { margin: .35em 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.info-card { background: var(--c-soft); border-radius: var(--radius); padding: 28px; border: 1px solid var(--c-line); }
.info-card h3 { margin-top: 0; } .info-card dl { margin: 0; } .info-card dt { font-weight: 800; color: var(--c-primary); margin-top: 14px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; } .info-card dd { margin: 2px 0 0; }

/* Forms */
.sa-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(11,42,82,.06); }
.sa-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sa-form label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; color: var(--c-primary); }
.sa-form .field { margin-bottom: 16px; }
.sa-form input[type=text], .sa-form input[type=email], .sa-form input[type=tel], .sa-form select, .sa-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9d3e2; border-radius: 10px; font: inherit; background: #fff; color: var(--c-ink); }
.sa-form input:focus, .sa-form select:focus, .sa-form textarea:focus { outline: 3px solid rgba(255,106,19,.25); border-color: var(--c-accent); }
.sa-form textarea { min-height: 140px; resize: vertical; }
.sa-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sa-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.sa-notice.ok { background: #e7f7ee; color: #14623a; border: 1px solid #b6e3c8; } .sa-notice.err { background: #fdeaea; color: #8a1f1f; border: 1px solid #f2bcbc; }

/* Footer */
.site-footer { background: #061a36; color: #b9c8e0; padding: 60px 0 0; }
.site-footer a { color: #fff; text-decoration: none; } .site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 8px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-note { background: #fff7d6; color: #5c4a00; text-align: center; font-size: .85rem; padding: 8px 12px; font-weight: 600; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); padding: 12px 22px 20px; }
  .main-nav.open { display: block; } .main-nav ul { flex-direction: column; align-items: stretch; }
  .contact-grid, .footer-grid, .sa-form .row { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 64px; padding-bottom: 80px; } .section { padding: 60px 0; }
  .hero-art { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
