/* Scottsdale Flying Club — site styles
   Plain CSS, no build step. Edit colors in :root below. */

:root {
  --sky:        #8fb8d8;
  --sky-deep:   #4a7ba7;
  --ink:        #202833;   /* matches the navy in the logo */
  --ink-soft:   #5c6672;
  --rule:       #dfe4e9;
  --paper:      #ffffff;
  --paper-alt:  #f5f7f9;
  --accent:     #a8623c;   /* desert clay — used sparingly for links */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(168, 98, 60, .35); }
a:hover { border-bottom-color: var(--accent); }

/* ---------- Masthead: logo + navigation ---------- */

.masthead {
  background: var(--paper);
  padding: 24px 20px 18px;
  text-align: center;
}

.masthead__logo { display: inline-block; border-bottom: none; }
.masthead__logo img { height: 88px; width: auto; margin: 0 auto; }

.nav { margin-top: 18px; }
.nav ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 6px 26px;
}
.nav a {
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  color: #fff;
  background-color: var(--sky);
  background-image: linear-gradient(180deg, #a9cbe4 0%, #7ea9cd 60%, #6d9ac2 100%);
  background-size: cover;
  background-position: center;
}

/* Scrim is weighted to the top so the name reads against the sky while the
   aircraft below stays bright. */
.hero--photo {
  min-height: 55vh;
  align-items: flex-start;
  background-image:
    linear-gradient(180deg,
      rgba(12, 20, 32, .58) 0%,
      rgba(12, 20, 32, .30) 40%,
      rgba(12, 20, 32, .10) 70%,
      rgba(12, 20, 32, .10) 100%),
    url("../images/hero.jpg");
  background-position: center 66%;
}

.hero__inner { max-width: 980px; }

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  color: inherit;   /* beat the generic h1 color rule below */
  font-size: clamp(34px, 6.4vw, 76px);
  letter-spacing: .06em;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.hero__tagline {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

/* Short banner for interior pages */
.banner {
  min-height: 0;
  padding: 52px 20px;
}
.banner .wordmark { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: .1em; }

/* ---------- Page body ---------- */

.wrap { max-width: 860px; margin: 0 auto; padding: 62px 22px; }
.wrap--wide { max-width: 1120px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; }
h1 { font-size: 34px; letter-spacing: .04em; margin: 0 0 8px; }
h2 { font-size: 25px; margin: 44px 0 10px; }
h3 { font-size: 19px; margin: 28px 0 6px; }

.lede { font-size: 19px; color: var(--ink-soft); margin-top: 0; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 46px 0; }

/* A single wide photo set into the page body */
.feature { margin: 0 0 38px; }
.feature img { width: 100%; }
.feature figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 8px;
}

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.facts li:first-child { border-top: 1px solid var(--rule); }
.facts strong { font-weight: 600; }

.callout {
  background: var(--paper-alt);
  border-left: 3px solid var(--sky-deep);
  padding: 18px 22px;
  margin: 32px 0;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 26px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn:hover { background: var(--sky-deep); border: none; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-alt);
}
.gallery figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 6px;
}
.gallery a { border-bottom: none; display: block; }
.gallery a:hover img { opacity: .88; }

/* Placeholder tile, for slots with no photo yet */
.tile-empty {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt);
  border: 1px dashed var(--rule);
  color: var(--ink-soft);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Contact form ---------- */

.form { margin: 28px 0 0; max-width: 620px; }

.form label {
  display: block;
  margin: 20px 0 6px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 2px rgba(74, 123, 167, .18);
}
.form textarea { resize: vertical; }

.form button { margin-top: 26px; cursor: pointer; font-family: inherit; }

/* Honeypot — hidden from people, visible to bots that fill every field. */
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- Video ---------- */

.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 0 0 34px;
  background: var(--paper-alt);
}
.video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #b9c2cc;
  font-size: 14px;
  text-align: center;
  padding: 34px 20px;
}
.footer a { color: #e2e8ee; border-bottom-color: rgba(226, 232, 238, .35); }
.footer p { margin: 6px 0; }

@media (max-width: 600px) {
  .masthead { padding: 18px 16px 14px; }
  .masthead__logo img { height: 62px; }
  .nav ul { gap: 4px 16px; }
  .nav a { font-size: 14px; }
  .hero { min-height: 38vh; padding: 44px 18px; }
  .wrap { padding: 44px 20px; }
}
