/* ==========================================================================
   McClain Farm Services — brand stylesheet
   Brand: navy + barn red + equipment orange, Oswald display / Inter body
   ========================================================================== */

:root {
  --navy: #1d2b4a;
  --navy-deep: #141d33;
  --red: #c62b2b;
  --red-deep: #9f1f1f;
  --orange: #e2541f;
  --orange-deep: #c44517;
  --cream: #f7f4ee;
  --sand: #eae3d4;
  --paper: #ffffff;
  --ink: #1b2330;
  --muted: #5d6675;
  --line: #e4ded1;

  --shadow-sm: 0 1px 2px rgba(20, 29, 51, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(20, 29, 51, 0.28);
  --shadow-lg: 0 24px 60px -20px rgba(20, 29, 51, 0.4);

  --radius: 14px;
  --radius-sm: 9px;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--navy);
  font-weight: 600;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 15px;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: var(--shadow-md); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-lg { font-size: 17px; padding: 1em 1.75em; }

/* ---- kicker + section headings ------------------------------------------ */
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 13px;
  color: var(--orange);
  margin: 0 0 0.9em;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}
.kicker-light { color: #ffd9c2; }
.kicker-light::before { background: #ffd9c2; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

.section { padding: 6.5rem 0; }

/* ---- header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 48px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--navy);
  font-weight: 600;
  font-size: 19px;
}
.brand-text em { font-style: normal; font-size: 11px; letter-spacing: 0.28em; color: var(--red); font-weight: 500; }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.4em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.2s ease;
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.phone-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  font-size: 16px;
}
.phone-link:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,29,51,0.92) 0%, rgba(20,29,51,0.72) 45%, rgba(20,29,51,0.35) 100%);
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--red) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 6rem 0; max-width: 760px; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(40px, 6.4vw, 74px);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.hero-content h1 .accent { color: #ffb37d; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-points li {
  display: flex; align-items: center; gap: 0.55em;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.92);
}
.hero-points li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 800;
}

/* ---- trust bar ---------------------------------------------------------- */
.trustbar { background: var(--navy); color: #fff; padding: 1.4rem 0; border-bottom: 3px solid var(--orange); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; justify-content: center; }
.trustbar span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13.5px;
  font-weight: 500;
  color: #cfd7e6;
}
.trustbar span b { color: #fff; font-weight: 600; }

/* ---- about -------------------------------------------------------------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.about-copy h2 { font-size: clamp(30px, 4vw, 44px); }
.about-copy p { color: var(--muted); font-size: 18px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.feature h4 { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.feature p { margin: 0; font-size: 14.5px; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-media .badge {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 15px;
  padding: 0.9em 1.2em; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.about-media .badge b { display: block; font-size: 21px; }

/* ---- equipment ---------------------------------------------------------- */
.equipment { background: var(--cream); border-block: 1px solid var(--line); }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(20,29,51,0.82); color: #fff;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 11.5px;
  padding: 0.45em 0.8em; border-radius: 6px;
}
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { font-size: 24px; margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.card-body .cta-line {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 14px; font-weight: 600;
  color: var(--orange);
  display: inline-flex; align-items: center; gap: 0.4em;
}
.card-body .cta-line:hover { color: var(--orange-deep); }

.equipment-note { text-align: center; color: var(--muted); margin-top: 2.4rem; font-size: 16px; }
.equipment-note a { color: var(--orange); font-weight: 600; }
.equipment-note a:hover { text-decoration: underline; }

/* ---- location ----------------------------------------------------------- */
.location { background: var(--paper); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
.location-card {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.3rem;
  box-shadow: var(--shadow-lg);
}
.location-card h2 { color: #fff; font-size: 34px; }
.location-card .address {
  display: flex; gap: 0.9rem; align-items: flex-start;
  font-size: 17px; line-height: 1.5;
}
.location-card .address .icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
  font-size: 20px;
}
.location-card .routes-note { color: #cfd7e6; font-size: 15px; margin: 0; }
.location-card .btn { align-self: flex-start; margin-top: 0.6rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 360px; background: var(--cream); }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---- commitment --------------------------------------------------------- */
.commitment { background: var(--cream); border-block: 1px solid var(--line); }
.commitment-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.commitment-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; max-height: 460px; }
.commitment-copy blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 500;
}
.commitment-copy blockquote::before {
  content: "“";
  display: block;
  font-size: 64px;
  line-height: 0.4;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.commitment-copy p { color: var(--muted); font-size: 17px; margin-top: 1.4rem; }
.commitment-copy .signature {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 600;
  font-size: 15px;
}

/* ---- instagram ---------------------------------------------------------- */
.instagram { background: var(--paper); }
.insta-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.insta-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0; }
.insta-handle {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--red); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.insta-strip img {
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insta-strip img:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }

/* ---- reviews ------------------------------------------------------------ */
.reviews { background: var(--cream); border-block: 1px solid var(--line); }
.review-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 860px; margin-inline: auto; }
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.8rem; align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-card .stars { color: #f5b301; font-size: 22px; letter-spacing: 0.2em; }
.review-card h3 { font-size: 22px; margin: 0; }
.review-card p { color: var(--muted); margin: 0; font-size: 15px; flex: 1; }

/* ---- final CTA ---------------------------------------------------------- */
.cta { position: relative; background: var(--navy); color: #fff; text-align: center; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); }
.cta p { color: #cfd7e6; font-size: 18px; max-width: 560px; margin: 0 auto 2rem; }
.cta .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #b9c1d2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 15px; margin: 0 0 1.4rem; max-width: 300px; }
.footer-col h4 {
  color: #fff; font-size: 14px; letter-spacing: 0.1em; margin-bottom: 1.1rem;
  text-transform: uppercase; font-family: var(--font-display);
}
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: #b9c1d2; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 0.7rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.4rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom a { color: #e8ecf4; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---- reveal animation --------------------------------------------------- */
/* Only hide content when JS is active (html gets a .js class). Without JS the
   page renders fully visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .about-grid, .commitment-grid, .location-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .insta-strip { grid-template-columns: repeat(3, 1fr); }
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .mobile-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.4rem; gap: 0;
  }
  .mobile-open .main-nav a { padding: 0.8em 0; border-bottom: 1px solid var(--line); }
  .mobile-open .main-nav a:last-child { border-bottom: 0; }
  .mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .equipment-grid, .review-cards, .about-features { grid-template-columns: 1fr; }
  .hero-points { flex-direction: column; gap: 0.7rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .phone-link { display: none; }
}
