/* ── Aggie Industrial — business-card style ─────────────────────────────
   Warm beige/oat paper, navy typography, red accent rule, blueprint motifs.
   Logo is intentionally SMALL (28px header mark) per owner feedback.
────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:    #F6EEDD;   /* warm oat paper */
  --paper-2:  #EFE2C8;   /* deeper oat */
  --card:     #FFFDF7;   /* near-white card */
  --ink:      #12263A;   /* navy */
  --ink-2:    #1D3A54;   /* lighter navy */
  --ink-soft: #4A5B6B;   /* muted navy-grey body text */
  --red:      #C0392B;   /* red accent rule (matches business card) */
  --red-2:    #A93226;
  --line:     #D9C9A8;   /* hairline on paper */
  --blueprint: rgba(18, 38, 58, 0.055);
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --disp: 'Oswald', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  background: var(--paper);
  border-bottom: 2px solid var(--red);
  padding: 0 2.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 28px; width: auto; object-fit: contain; } /* small mark, by design */
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.logo-main em { color: var(--red); font-style: normal; }
.logo-sub { font-size: 8.5px; letter-spacing: 3px; color: var(--ink-soft); margin-top: 2px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 12px; letter-spacing: 2px; font-weight: 600; font-family: var(--disp); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: 8px 18px; transition: background .2s !important; }
.nav-cta:hover { background: var(--red-2) !important; }

/* ── HERO ── */
.hero {
  /* faint blueprint grid on oat paper */
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 44px 44px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--disp); font-size: 11px; letter-spacing: 4px; color: var(--red);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); }
.hero h1 {
  font-family: var(--disp); font-size: clamp(34px, 4.6vw, 54px); font-weight: 700;
  line-height: 1.08; letter-spacing: .5px; color: var(--ink); margin-bottom: 1.1rem;
}
.red-rule { width: 72px; height: 3px; background: var(--red); margin: 0 0 1.1rem; }
.red-rule.small { width: 48px; height: 2px; margin: .6rem 0 1rem; }
.hero-desc { color: var(--ink-soft); font-size: 15.5px; line-height: 1.8; max-width: 480px; margin-bottom: 1.9rem; }
.btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-red {
  background: var(--red); color: #fff; padding: 13px 28px;
  font-family: var(--disp); font-size: 12px; letter-spacing: 2.5px; font-weight: 700;
  border: none; cursor: pointer; transition: background .2s; display: inline-block;
}
.btn-red:hover { background: var(--red-2); }
.btn-red:disabled { opacity: .6; cursor: default; }
.btn-outline {
  border: 1.5px solid var(--ink); color: var(--ink); padding: 12px 28px;
  font-family: var(--disp); font-size: 12px; letter-spacing: 2.5px; font-weight: 600;
  background: transparent; cursor: pointer; transition: all .2s; display: inline-block;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* hero photo: blueprint frame with corner ticks */
.hero-figure {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  box-shadow: 0 10px 30px rgba(18, 38, 58, 0.10);
  position: relative;
}
.hero-figure::before, .hero-figure::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--red);
}
.hero-figure::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hero-figure::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption {
  font-family: var(--disp); font-size: 11px; letter-spacing: 2px; color: var(--ink-soft);
  text-align: center; padding: 10px 6px 12px; text-transform: uppercase;
}

/* hero video: 16:9 frame, shown when a video URL is set in admin */
.video-frame { position: relative; width: 100%; padding-top: 56.25%; background: var(--ink); }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-frame .ph { position: absolute; inset: 0; min-height: 0; align-items: flex-end; padding-bottom: 16px; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px;
}

/* ── TRUST STRIP ── */
.trust {
  background: var(--ink);
  padding: .85rem 2rem;
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 1.8px; color: var(--paper);
  font-family: var(--disp); font-weight: 500;
}
.trust-dot { width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }

/* ── SECTIONS ── */
.sec-wrap { padding: 3.5rem 2rem; }
.inner { max-width: 1100px; margin: 0 auto; }
.sec-label {
  font-family: var(--disp); font-size: 11px; letter-spacing: 5px; color: var(--red);
  margin-bottom: .65rem; display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.sec-label::before { content: ''; width: 16px; height: 2px; background: var(--red); }
.sec-title {
  font-family: var(--disp); font-size: clamp(26px, 3.5vw, 36px); font-weight: 700;
  color: var(--ink); line-height: 1.12; margin-bottom: .5rem;
}
.sec-sub { color: var(--ink-soft); font-size: 14.5px; max-width: 560px; margin-bottom: 2rem; }

/* ── PRODUCTS ── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 1.5rem; }
.prod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 1.3rem 1.1rem;
  transition: transform .2s, border-top-color .2s;
}
.prod-card:hover { border-top-color: var(--red); transform: translateY(-2px); }
.prod-name { font-family: var(--disp); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .4px; margin-bottom: .45rem; line-height: 1.3; }
.prod-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.prod-img { width: 100%; height: 120px; object-fit: cover; margin-bottom: .7rem; }
.prod-ph {
  height: 120px; background: var(--paper-2); border: 2px dashed var(--line); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 11px; letter-spacing: 2px; margin-bottom: .7rem;
}

/* ── GALLERY ── */
.gallery-sec { border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1.5rem; }
.gallery-item { background: var(--card); border: 1px solid var(--line); padding: 8px 8px 0; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-item .ph { min-height: 180px; }
.gallery-caption {
  font-family: var(--disp); font-size: 11px; letter-spacing: 1.5px; color: var(--ink-soft);
  text-align: center; padding: 8px 4px 10px; text-transform: uppercase;
}
.prod-link { display: inline-block; margin-top: .7rem; font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; letter-spacing: .3px; }
.prod-link:hover { text-decoration: underline; }

/* ── CAPABILITIES ── */
.cap-sec { border-top: 1px solid var(--line); }
.cap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.5rem 0 2rem; }
.cap-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 1.1rem 1rem;
  text-align: center;
}
.cap-stat-value { font-family: var(--disp); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.cap-stat-label { font-family: var(--disp); font-size: 11.5px; color: var(--ink-soft); letter-spacing: 1.2px; margin-top: .35rem; text-transform: uppercase; }
.cap-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.cap-figure { border: 1px solid var(--line); background: var(--card); padding: 8px; box-shadow: 0 8px 24px rgba(18, 38, 58, 0.08); }
.cap-figure img { width: 100%; height: auto; }
.cap-figure figcaption {
  font-family: var(--disp); font-size: 11px; letter-spacing: 2px; color: var(--ink-soft);
  text-align: center; padding: 10px 6px 4px; text-transform: uppercase;
}
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cap-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink-2); padding: 1.1rem 1.15rem; }
.cap-card:nth-child(odd) { border-left-color: var(--red); }
.cap-title { font-family: var(--disp); font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .5px; margin-bottom: .3rem; }
.cap-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── WHY ── */
.why-sec { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.why-figure { border: 1px solid var(--line); background: var(--card); padding: 8px; box-shadow: 0 8px 24px rgba(18, 38, 58, 0.08); }
.why-figure img { width: 100%; height: auto; }
.why-list { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.why-card { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--card); }
.why-card:nth-child(even) { border-left-color: var(--ink-2); }
.why-title { font-family: var(--disp); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .6px; margin-bottom: .3rem; }
.why-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── HOW WE WORK ── */
.how-sec { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 1.5rem; }
.how-step { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 1.3rem 1.1rem; }
.how-step:nth-child(even) { border-top-color: var(--red); }
.how-num { font-family: var(--disp); font-size: 30px; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: .6rem; }
.how-title { font-family: var(--disp); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .4px; margin-bottom: .4rem; }
.how-text { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

/* ── CREDENTIALS ── */
.credentials {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  font-family: var(--disp); font-size: 12.5px; letter-spacing: 1.6px; color: var(--ink-soft);
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.credentials-logo { height: 30px; width: auto; flex-shrink: 0; }

/* ── QUOTE + CONTACT ── */
.quote-sec {
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 44px 44px;
}
.quote-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 3rem; align-items: start; }
.quote-form-wrap { background: var(--card); border: 1px solid var(--line); padding: 2rem; box-shadow: 0 8px 24px rgba(18, 38, 58, 0.06); }
#quote-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
#quote-form label { font-family: var(--disp); font-size: 11.5px; letter-spacing: 1.5px; color: var(--ink-2); font-weight: 600; display: flex; flex-direction: column; gap: 5px; }
#quote-form input, #quote-form select, #quote-form textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); background: #fff; padding: 10px 12px; width: 100%;
  border-radius: 0; outline: none;
}
#quote-form input:focus, #quote-form select:focus, #quote-form textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 2px rgba(18, 38, 58, 0.08); }
#quote-form input[type="file"] { font-size: 13.5px; padding: 8px 10px; }
#quote-form textarea { resize: vertical; min-height: 96px; }
.hint { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); text-transform: none; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #1E7A34; }
.form-status.err { color: var(--red-2); }
#quote-form .btn-red { align-self: flex-start; margin-top: .3rem; }

.contact-panel { background: var(--ink); color: var(--paper); padding: 1.8rem; }
.contact-panel h3 { font-family: var(--disp); font-size: 15px; letter-spacing: 3px; margin-bottom: .9rem; }
.contact-name { font-family: var(--disp); font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.contact-title { font-size: 13px; color: #B9C6D2; letter-spacing: 2px; font-family: var(--disp); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; font-size: 14.5px; }
.contact-label { display: block; font-family: var(--disp); font-size: 10.5px; letter-spacing: 2.5px; color: #8FA3B5; margin-bottom: 1px; }
.contact-list a { color: var(--paper); border-bottom: 1px solid rgba(246, 238, 221, 0.35); }
.contact-list a:hover { border-bottom-color: var(--paper); }
.contact-note { margin-top: 1.2rem; font-size: 13px; color: #B9C6D2; line-height: 1.6; }

/* ── FOOTER ── */
footer { background: #0B1826; color: #9FB0C0; padding: 2.5rem 2rem 1.5rem; font-size: 13.5px; }
.foot-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.foot-inner .logo-main { color: var(--paper); }
.foot-inner p { margin-top: .6rem; max-width: 380px; line-height: 1.7; font-size: 13px; }
.foot-contact { line-height: 1.9; text-align: right; }
.foot-contact a { color: var(--paper); border-bottom: 1px solid rgba(246, 238, 221, 0.3); }
.foot-bottom {
  max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: 12.5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .why-layout, .quote-layout, .cap-layout { grid-template-columns: 1fr; gap: 2rem; }
  .why-figure, .cap-figure { max-width: 520px; }
}
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-inner { padding: 2.5rem 1.5rem; }
  .sec-wrap { padding: 2.5rem 1.5rem; }
  .prod-grid, .form-row, .cap-list, .how-grid, .gallery-grid { grid-template-columns: 1fr; }
  .credentials { flex-wrap: wrap; gap: .75rem; }
  .foot-contact { text-align: left; }
}
