/* Thermal Aviation — colours taken from the logo (navy + red). */
:root {
  --blue: #0a2373;
  --blue-dark: #07194f;
  --red: #c8102e;
  --ink: #1c2430;
  --muted: #5b6676;
  --line: #dde3ec;
  --bg: #ffffff;
  --soft: #f3f6fa;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { line-height: 1.25; color: var(--blue-dark); }
h5 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; line-height: 0; }
.logo { display: block; width: 210px; height: auto; }
.call { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--red); white-space: nowrap; }
.call-short { display: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; }
#nav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-bottom: 10px; }
#nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
#nav a:hover, #nav a[aria-current] { color: var(--blue); border-color: var(--red); }

/* Hero */
.hero { background-size: cover; background-position: center; position: relative; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,32,66,.88), rgba(14,32,66,.45)); }
.hero-inner { position: relative; padding-top: 64px; padding-bottom: 64px; max-width: 1120px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin: .2em 0; max-width: 18ch; }
.lede { font-size: 1.2rem; max-width: 40ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0; color: #ffd3d5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; background: var(--red); color: #fff; border: 2px solid var(--red); padding: 11px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: #a00d25; border-color: #a00d25; color: #fff; }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero .btn.ghost { color: #fff; }
.btn.small { padding: 6px 14px; font-size: .9rem; }

/* Home */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 40px 0; }
.features > a { text-decoration: none; color: inherit; display: block; }
.features > a:hover { color: inherit; border-top-color: var(--red); }
.features > div, .features > a { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--blue); }
.features h3 { margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; margin: 20px 0 40px; }
.card { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.wide-photo { margin: 0 0 48px; }
.wide-photo img { width: 100%; border-radius: var(--radius); }

/* Content pages */
.page { max-width: 900px; margin: 32px auto 56px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .4em; }
.content img { border-radius: 6px; margin: 6px 0; }
.content iframe { width: 100%; max-width: 100%; border: 0; border-radius: 6px; min-height: 420px; }
.content table, table.rates { border-collapse: collapse; width: 100%; margin: 8px 0 12px; }
.table-wrap { overflow-x: auto; }
table.rates th, table.rates td, .content td, .content th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.rates th { background: var(--blue); color: #fff; font-weight: 600; }
table.rates td:not(:first-child), table.rates th:not(:first-child) { text-align: right; white-space: nowrap; }
table.rates tbody tr:nth-child(even) { background: var(--soft); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; }
.post-card:hover { border-color: var(--blue); color: inherit; }
.post-card img, .post-card .noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft); margin: 0; border-radius: 0; }
.post-card > div { padding: 12px 16px 16px; }
.post-card h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.foot { background: var(--blue-dark); color: #dfe7f5; padding: 32px 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Rate sheet (print) */
.sheet .wrap { max-width: 800px; padding-top: 20px; padding-bottom: 40px; }
@media print {
  .no-print { display: none; }
  body { font-size: 12pt; }
  table.rates th { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin */
.admin main { padding-bottom: 60px; }
.admin-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.admin-nav a { font-weight: 600; text-decoration: none; }
.admin-nav form { margin: 0; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.narrow { max-width: 380px; margin: 60px auto; }
label { display: block; margin: 0 0 12px; font-weight: 600; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid #b9c3d3; border-radius: 6px; width: 100%; background: #fff; }
.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline label { margin: 0; }
.inline input, .inline select { width: auto; }
table.edit { border-collapse: collapse; width: 100%; }
table.edit th { text-align: left; font-size: .85rem; color: var(--muted); padding: 4px 6px; }
table.edit td { padding: 4px 6px; }
table.edit input { min-width: 80px; }
table.edit input[type=checkbox] { width: auto; min-width: 0; }
table.edit .tiny, .tiny { width: 64px; min-width: 0; }
table.edit .wide { min-width: 280px; }
tr.new input { border-style: dashed; }
.flash { padding: 10px 14px; border-radius: 8px; }
.flash.ok { background: #e7f6ec; color: #155c2c; }
.flash.err { background: #fde8e9; color: #8a1419; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo { width: 150px; }
  .call-num { display: none; }
  .call-short { display: inline; border: 2px solid var(--red); border-radius: 8px; padding: 4px 12px; }
  .call { font-size: .95rem; }
  .menu-btn { display: block; }
  #nav { display: none; flex-direction: column; gap: 0; }
  .nav-open #nav { display: flex; }
  #nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; grid-template-columns: 1fr; }
  .admin-nav { width: 100%; margin: 6px 0 0; }
  .admin .top-row { flex-wrap: wrap; }
}


/* Fuel price board */
.fuel-board { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(7,25,79,.18); margin: 16px 0; }
.fuel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fuel { display: flex; flex-direction: column; background: var(--soft); border-radius: 8px; padding: 10px 14px; border-left: 5px solid var(--red); }
.fuel + .fuel { border-left-color: var(--blue); }
.fuel .grade { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--muted); }
.fuel .price { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; color: var(--blue-dark); line-height: 1.1; }
.fuel .sub, .fuel .gal { font-size: .85rem; color: var(--muted); }
.fuel .gal { font-weight: 600; color: var(--ink); margin-top: 2px; }
.fuel-board .asof { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.fuel-board.compact .fuel .price { font-size: 1.7rem; }
.hero .fuel-board { margin: 0; }

/* Content helpers */
.small { font-size: .88rem; }
.note { background: #fff6e5; border-left: 4px solid #e0a100; padding: 8px 12px; border-radius: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 4px; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-row { display: flex; gap: 16px; align-items: center; }
.media-row img { width: 180px; flex: none; border-radius: 8px; }
figure { margin: 16px 0; }
figure > a > img, figure > img { border-radius: 8px; display: block; }
figcaption ul { padding-left: 1.2em; }
.c-red { color: #c8102e; } .c-yellow { color: #a37a00; } .c-blue { color: #1f4fd1; }
.split.even { grid-template-columns: 1.5fr 1fr; margin-top: 0; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: 8px; }
iframe.pay { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 8px; }
.ask textarea { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea { font: inherit; padding: 7px 9px; border: 1px solid #b9c3d3; border-radius: 6px; width: 100%; }
table.edit .num { width: 90px; min-width: 0; }
.msg p { margin: 0 0 8px; }
.pre { white-space: pre-wrap; }
.tag { font-size: .75rem; background: #eef1f6; border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.sheet-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.sheet-head .logo { width: 220px; }
.sheet-head p { margin: 0; }
@media (max-width: 760px) {
  .fuel-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fuel { padding: 8px 10px; }
  .media-row { flex-direction: column; align-items: flex-start; }
  .split.even { grid-template-columns: 1fr; }
  iframe.pay { height: 1100px; }
}

/* Contact QR in the Find us / Visit us card */
.card .qr { display: flex; gap: 14px; align-items: center; margin: 4px 0 0; }
.card .qr img { flex: none; width: 220px; height: 220px; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.card .qr p { margin: 0; font-size: .9rem; }
@media (max-width: 420px) { .card .qr { flex-direction: column; align-items: flex-start; } }
