/* ==========================================================================
   FleetEase site: home page only (index.html)
   ========================================================================== */

.btn-big { min-height: 60px; padding: 0 34px; font-size: 21px; }

/* ---------- 1. Hero: full-screen photo under a charcoal shade ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));   /* phones: ignores the browser's toolbar */
  padding-top: clamp(48px, 7vh, 96px);
  background: var(--charcoal-deep);             /* shows if the photo is missing */
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
}
.hero-shade {   /* darker on the left where the words are, lighter on the right so the photo shows */
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(38, 41, 42, .93) 0%, rgba(61, 64, 65, .82) 45%, rgba(80, 84, 85, .45) 100%),
    linear-gradient(0deg, rgba(38, 41, 42, .55), rgba(38, 41, 42, 0) 45%);
}
.hero-inner { position: relative; }
.hero-logo { width: clamp(190px, 22vw, 300px); margin-bottom: clamp(26px, 4vh, 44px); }
.hero-title {
  font-size: clamp(60px, 9.5vw, 150px);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-lead {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 36ch;
  font-size: clamp(20px, 2vw, 25px); font-weight: 500; line-height: 1.4;
  color: #E8EBEB;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4.5vh, 44px); }

/* ---------- 2. Services: dark cards on a light band ---------- */
.services { background: var(--steel); color: var(--text-on-light); padding-bottom: clamp(64px, 8vw, 104px); }
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px 64px; align-items: end; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 68px); text-transform: uppercase; color: var(--charcoal-ink); }
.section-head > p { font-size: 19px; line-height: 1.55; color: var(--muted-on-light); max-width: 44ch; }

.service-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: clamp(36px, 4.5vw, 56px);
}
.service-card {
  position: relative;
  padding: 34px 34px 36px;
  background: var(--charcoal);
  color: var(--text-on-dark);
  border-top: 4px solid var(--orange);
  border-radius: 2px 2px 6px 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(38, 41, 42, .55); background: #4A4E4F; }
.service-icon {
  width: 46px; height: 46px; margin-bottom: 22px;
  fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08); }
.service-card h3 { font-size: clamp(27px, 2.6vw, 32px); text-transform: uppercase; letter-spacing: .01em; }
.service-card p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted-on-dark); }
.service-card .service-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-dark); color: #fff; font-weight: 600; }

.services-close {
  display: flex; align-items: flex-start; gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  font: 700 clamp(30px, 3.6vw, 46px)/1.08 var(--font-display); text-transform: uppercase;
  color: var(--charcoal-ink);
  max-width: 30ch;
}
.services-close::before { content: ""; flex: none; width: 6px; align-self: stretch; background: var(--orange); }

/* ---------- 3. Why FleetEase: dark band ---------- */
.why { background: var(--charcoal-ink); padding-top: clamp(64px, 8vw, 104px); }
.why-inner { }   /* lines up with the other sections; the text blocks set their own widths */
.why-statement { font: 700 clamp(38px, 5.4vw, 72px)/.98 var(--font-display); text-transform: uppercase; max-width: 18ch; }
.why-body { margin-top: 26px; max-width: 58ch; color: var(--muted-on-dark); font-size: 19px; }
.why-next {
  display: inline-block; margin-top: 36px; padding: 18px 22px 18px 20px;
  border-left: 4px solid var(--orange); background: rgba(255, 255, 255, .05);
  font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.4; max-width: 52ch;
}

/* ---------- 4. Contact ---------- */
.contact { background: var(--charcoal); padding-bottom: clamp(64px, 8vw, 104px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px 72px; align-items: start; }
.contact-intro h2 { font-size: clamp(46px, 6vw, 80px); text-transform: uppercase; }
.contact-intro p { margin-top: 20px; max-width: 36ch; font-size: 19px; color: var(--muted-on-dark); }
.contact-intro .contact-email { margin-top: 34px; }
.contact-email a {
  display: inline-block; margin-top: 6px;
  font: 700 clamp(24px, 2.5vw, 30px)/1.2 var(--font-display); letter-spacing: .02em;
  color: #fff; text-decoration: none; word-break: break-word;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 100% 2px no-repeat;
  padding-bottom: 4px; transition: color .2s, background-size .3s var(--ease);
}
.contact-email a:hover { color: var(--orange); background-size: 40% 2px; }

.form-panel {
  background: #fff; color: var(--text-on-light);
  border-top: 4px solid var(--orange); border-radius: 2px 2px 6px 6px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font: 600 15px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal-ink); }
.field .optional { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--muted-on-light); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #B9BEBF; border-radius: 3px; background: #FAFBFB;
  font: 17px/1.4 var(--font-body); color: var(--text-on-light);   /* 16px+ stops iPhone zooming in */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover, .field textarea:hover { border-color: #8F9596; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(243, 95, 7, .35); }
.field textarea::placeholder { color: #8A8F90; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field-error, .form-error { color: #B3261E; font-size: 15px; font-weight: 600; margin-top: 6px; }
.field-error:empty, .form-error:empty { display: none; }
.form-error { margin: 0 0 14px; }
.botcheck { display: none; }
.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

.form-success:focus { outline: none; }
.form-success h3 { font-size: 40px; text-transform: uppercase; color: var(--charcoal-ink); padding-bottom: 14px; border-bottom: 3px solid var(--orange); display: inline-block; }
.form-success p { margin: 18px 0 28px; font-size: 19px; color: var(--muted-on-light); }
.btn-ghost-dark { background: transparent; color: var(--charcoal-ink); border-color: var(--charcoal); }
.btn-ghost-dark:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; box-shadow: none; }

/* ---------- iPad portrait and smaller ---------- */
@media (max-width: 900px) {
  .section-head, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: min(calc(100svh - var(--header-h)), 820px); }
}
/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 28px 24px 30px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; padding-top: 40px; min-height: calc(100svh - var(--header-h)); }
  .hero-shade { background: linear-gradient(180deg, rgba(38, 41, 42, .9), rgba(61, 64, 65, .78) 60%, rgba(38, 41, 42, .9)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .services-close { gap: 14px; }
}
