/* ==========================================================================
   Redline Welding & Fabrication - site styles
   --------------------------------------------------------------------------
   Loaded AFTER foundation-float.css, so anything here overrides Foundation.
   Foundation provides: the float grid (.row / .columns / .small-12 ...),
   .button, .menu, .top-bar, .title-bar, .callout, form inputs,
   visibility helpers (show-for-medium, hide-for-medium) and resets.

   TABLE OF CONTENTS
     1. Brand variables
     2. Base + typography
     3. Buttons
     4. Promo bar + skip link
     5. Header + navigation
     6. Page header + generic sections
     7. Hero
     8. Materials strip
     9. Cards (service, feature, tile)
    10. Lists, links and photography
    11. Emergency callout + call-to-action band
    12. Contact form
    13. Footer
    14. Textures
    15. Animations
    16. Utilities
   ========================================================================== */


/* 1. BRAND VARIABLES
   Change a color here and it changes everywhere.
   -------------------------------------------------------------------------- */
:root {
  --red:         #d8281b;   /* main brand red */
  --red-dark:    #b01e13;   /* hover state */
  --red-text:    #c2200f;   /* red used for text on light backgrounds (passes contrast) */
  --red-bright:  #f04030;   /* accents on dark backgrounds */
  --black:       #0d0d0e;
  --silver:      #e9ebee;   /* page background */
  --ink:         #1d2025;   /* body text */
  --muted:       #454851;   /* secondary text */
  --line:        #c5c9ce;   /* borders on light backgrounds */
  --font-head:   'Exo 2', 'Arial Narrow', Arial, sans-serif;
  --font-body:   'Work Sans', Arial, sans-serif;
  --gutter:      0.9375rem; /* Foundation's default column padding */
}


/* 2. BASE + TYPOGRAPHY
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--silver);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black);
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
}

/* Keyboard focus ring (mouse clicks do not show it) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

/* Small red slash + uppercase label above headings */
.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 0.5rem;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--red);
  transform: skewX(-30deg);
}

.eyebrow--light {
  color: #ff6a58;
}


/* 3. BUTTONS
   Foundation's .button and .button.hollow, recolored.
   -------------------------------------------------------------------------- */
.button {
  margin: 0.25rem 0.75rem 0.25rem 0;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--red);
  border-radius: 0;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--red);
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus {
  border-color: var(--red-dark);
  color: #fff;
  background-color: var(--red-dark);
  transform: translateY(-2px);
}

/* Outline button on light backgrounds */
.button.hollow {
  border-color: var(--black);
  color: var(--black);
  background-color: transparent;
}

.button.hollow:hover,
.button.hollow:focus {
  border-color: var(--black);
  color: #fff;
  background-color: var(--black);
}

/* Outline button on dark backgrounds */
.button.hollow.on-dark {
  border-color: #fff;
  color: #fff;
}

.button.hollow.on-dark:hover,
.button.hollow.on-dark:focus {
  color: var(--black);
  background-color: #fff;
}

/* Black button (used on the red call-to-action band) */
.button--dark {
  border-color: var(--black);
  background-color: var(--black);
}

.button--dark:hover,
.button--dark:focus {
  border-color: #fff;
  color: var(--black);
  background-color: #fff;
}


/* 4. PROMO BAR + SKIP LINK
   -------------------------------------------------------------------------- */
.promo-bar {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  color: #fff;
  background-color: var(--red);
}

.promo-bar a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fff;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--black);
  background: #fff;
}

.skip-link:focus {
  left: 0;
}


/* 5. HEADER + NAVIGATION
   Markup: .site-header > .title-bar (small screens) + .top-bar (menu).
   Foundation's data-responsive-toggle shows/hides #main-menu on small screens.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-height: 100vh;
  overflow-y: auto;
  color: #d6d8dc;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}

.site-logo {
  display: block;
  width: auto;
  max-height: 2.75rem;
}

/* --- small screens: title bar --- */
.title-bar {
  padding: 0.6rem 1rem;
  background: transparent;
}

.title-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.title-bar__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-right: 0.5rem;
  color: #fff;
  background: var(--red);
}

/* Foundation draws the hamburger with ::after; make it white and give it a 44px tap target */
.title-bar .menu-icon {
  box-sizing: content-box;
  width: 22px;
  height: 18px;
  margin: 0;
  padding: 13px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.title-bar .menu-icon::after,
.title-bar .menu-icon:hover::after {
  width: 22px;
  top: 13px;              /* Foundation positions the bars absolutely; offset by our padding */
  left: 11px;
  background: #fff;
  box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
}

/* --- menu (dropdown on small screens, horizontal bar on medium+) --- */
.top-bar {
  padding: 0;
  background: transparent;
}

.top-bar ul,
.top-bar .menu {
  background: transparent;
}

.top-bar .menu > li > a {
  padding: 1rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e3e6ea;
  border-bottom: 1px solid #222326;
}

.top-bar .menu > li > a:hover,
.top-bar .menu > li.is-active > a {
  color: #fff;
}

.top-bar .menu > li.is-active > a {
  border-left: 4px solid var(--red-bright);
  padding-left: 0.75rem;
}

.top-bar .menu > li.menu__cta > a.button {
  display: block;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  text-align: center;
  color: #fff;
  border: 2px solid var(--red);
}

.top-bar .menu > li.menu__cta > a.button.hollow {
  border-color: #fff;
  background: transparent;
}

.top-bar-left,
.top-bar-right {
  padding: 0.25rem 1.25rem 1.25rem;
}

.top-bar .row {
  max-width: 75rem;
}

/* --- medium and up: horizontal bar --- */
@media screen and (min-width: 40em) {
  .top-bar-left,
  .top-bar-right {
    padding: 0.75rem 0.9375rem;
  }

  .top-bar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .top-bar .menu > li > a {
    margin-left: 1.5rem;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    border-bottom: 2px solid transparent;
  }

  .top-bar .menu > li > a:hover,
  .top-bar .menu > li.is-active > a {
    border-bottom-color: var(--red-bright);
  }

  .top-bar .menu > li.is-active > a {
    border-left: 0;
    padding-left: 0;
  }

  .top-bar .menu > li.menu__cta > a.button {
    display: inline-block;
    margin: 0 0 0 1.5rem;
    padding: 0.6rem 1.1rem;
  }
}


/* 6. PAGE HEADER + GENERIC SECTIONS
   -------------------------------------------------------------------------- */
.page-header {
  padding: 4.5rem 0 3rem;
}

.page-header h1 {
  font-size: clamp(2.1rem, 8vw, 3rem);
}

.section {
  padding: 4.5rem 0;
}

.section--tight-top {
  padding-top: 1rem;
}

.section h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
}

/* Dark band: white headings, light text */
.section--dark {
  color: #c9ccd2;
  background-color: var(--black);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
}

.note a,
.text-link {
  font-weight: 600;
  color: var(--red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* 7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* Big translucent red slash behind the hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8%;
  bottom: 0;
  width: 42%;
  background: var(--red);
  opacity: 0.09;
  transform: skewX(-20deg);
}

.hero .row {
  position: relative;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 8.5vw, 3.25rem);
}

.hero .lead {
  margin-top: 0;
}

.hero__callline {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__callline a {
  font-weight: 800;
  color: var(--red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Photo with an offset red block behind it */
.hero__visual {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.hero__visual::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  left: 0;
  background: var(--red);
}

.hero__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 62%;
}

.hero__tag {
  position: relative;
  display: inline-block;
  margin-top: -1rem;
  margin-left: 1rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--black);
}


/* 8. MATERIALS STRIP
   -------------------------------------------------------------------------- */
.materials-strip {
  padding: 1.5rem 0;
  color: #e3e6ea;
  background-color: var(--black);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%);
}

.materials-strip .columns {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 3.6vw, 1.125rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* 9. CARDS
   -------------------------------------------------------------------------- */

/* Service card (home page grid). data-equalizer-watch keeps heights equal. */
.service-card {
  display: block;
  margin-bottom: 1.875rem;
  padding: 1.75rem;
  border: 1px solid #cfd3d8;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-6px);
}

.service-card h3 {
  margin: 0.75rem 0;
  font-size: 1.625rem;
}

.service-card p {
  color: var(--muted);
}

.service-card__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}

.more-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
}

/* Feature block: red rule on top, heading, text */
.feature {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--red-bright);
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Tile: dark card used for the materials list */
.tile {
  margin-bottom: 1.875rem;
  padding: 1.25rem;
  border-top: 3px solid var(--red-bright);
  background: #161617;
}

.tile h3 {
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
}

.tile p {
  margin: 0;
  color: #c9ccd2;
}

/* Services page: one row per service */
.service-row {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-row h3 {
  font-size: 2rem;
}

.service-row p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.service-row .more-link {
  display: inline-block;
  margin-top: 0.75rem;
}


/* 10. LISTS, LINKS AND PHOTOGRAPHY
   -------------------------------------------------------------------------- */
.check-list {
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.4rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.7rem;
  height: 0.35rem;
  background: var(--red);
  transform: skewX(-30deg);
}

.section--dark .check-list li {
  color: #c9ccd2;
}

.call-number {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  color: var(--red-text);
}


/* Emergency callout (services + about pages) */
.emergency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.75rem;
  border-left: 6px solid var(--red);
  color: #c9ccd2;
  background: var(--black);
}

.emergency h3 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  color: #fff;
}

.emergency p {
  max-width: 38rem;
  margin: 0;
}

.emergency .button {
  margin: 0;
}


/* Photography: home photo band, services banner, about side photo.
   Images are rendered placeholders in assets/img/. Replace the files (same
   names) with real photos at any time; object-fit crops them to fit. */
.photo-band {
  background: var(--black);
}

.photo-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3rem 1.5rem 1.25rem;
  color: #d6d8dc;
  background: linear-gradient(to top, rgba(13, 13, 14, 0.92), rgba(13, 13, 14, 0));
}

.photo-tile figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.photo-tile figcaption span {
  font-size: 0.9375rem;
}

.banner {
  height: clamp(14rem, 28vw, 22rem);
  overflow: hidden;
  border-bottom: 4px solid var(--red);
  background: var(--black);
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.side-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  object-fit: cover;
  object-position: 55% 50%;
  border-bottom: 4px solid var(--red);
}


/* 11. EMERGENCY CALLOUT + CALL-TO-ACTION BAND
   -------------------------------------------------------------------------- */
.cta-band {
  padding: 3.25rem 0;
  color: #fff;
  background-color: var(--red);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  color: #fff;
}

.cta-band p {
  margin: 0;
}

.cta-band .button {
  margin-top: 0.5rem;
}

.cta-band__phone {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.cta-band__phone:hover {
  text-decoration: underline;
}


/* 12. CONTACT FORM
   Foundation already styles inputs, selects and textareas; these are tweaks.
   -------------------------------------------------------------------------- */
.quote-form label {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.quote-form input[type='text'],
.quote-form input[type='email'],
.quote-form input[type='tel'],
.quote-form select,
.quote-form textarea {
  margin-bottom: 1.1rem;
  padding: 0.8rem;
  height: auto;
  border: 1px solid #8a8c92;
  box-shadow: none;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}

.quote-form select {
  height: 3.1rem;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(216, 40, 27, 0.35);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Honeypot: off-screen. Must NOT be display:none (bots skip those). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success / error message (Foundation .callout, color set by app.js) */
#form-status {
  margin: 0 var(--gutter) 1.25rem;
  font-weight: 600;
}

#form-status.success {
  border-color: #16a34a;
  color: #14532d;
  background: #e6f4ea;
}

#form-status.alert {
  border-color: var(--red);
  color: #7a1710;
  background: #fdecea;
}


/* 13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3.5rem 0 1.5rem;
  color: #b4b7bd;
  background-color: var(--black);
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.site-footer .site-logo {
  max-height: 3.5rem;
  margin-bottom: 1rem;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-strong {
  font-weight: 600;
  color: #fff;
}

.footer-quote {
  margin-top: 1rem;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2a2b2e;
  font-size: 0.875rem;
  color: #9a9da4;
}

@media screen and (min-width: 40em) {
  .text-right-medium {
    text-align: right;
  }
}


/* 14. TEXTURES (pure CSS, no image files)
   -------------------------------------------------------------------------- */
body {
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 3px);
}

.section--dark {
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 16px);
}

.cta-band {
  background-image: repeating-linear-gradient(-60deg, rgba(0, 0, 0, 0.09) 0 18px, transparent 18px 38px);
}

.site-footer {
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 16px);
}


/* 15. ANIMATIONS
   Everything is wrapped in "no-preference" so people who ask their device
   for reduced motion get a still page.
   Scroll reveal: add class="animate-in" to any element. It fades up as it
   scrolls into view (modern browsers; others just show it normally).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {

  @keyframes rise    { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
  @keyframes grow-bar { from { width: 0; } to { width: 1.5rem; } }
  @keyframes slash-in { from { opacity: 0; } to { opacity: 0.09; } }

  /* Page-load animation for the hero and page headers */
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .button,
  .page-header .columns > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .hero h1,
  .page-header h1      { animation-delay: 0.1s; }
  .hero .lead,
  .page-header .lead   { animation-delay: 0.2s; }
  .hero .button        { animation-delay: 0.3s; }

  .hero__visual,
  .hero__tag {
    animation: slide-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards;
  }

  .hero::before {
    animation: slash-in 1.2s ease-out backwards;
  }

  /* Scroll-driven reveal (Chrome, Edge, Safari 26+). Other browsers skip it. */
  @supports (animation-timeline: view()) {
    .animate-in,
    .service-row,
    .materials-strip .columns,
    .site-footer .columns {
      animation: rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    .eyebrow::before {
      animation: grow-bar linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
  }
}


/* 16. UTILITIES
   -------------------------------------------------------------------------- */
/* Foundation's .no-bullet only removes bullets; also reset padding */
.no-bullet {
  margin: 0;
  padding: 0;
}

/* Keep the last card in a row on the left when a row wraps (Foundation floats it right by default) */
[data-equalizer] > .columns:last-child:not(:first-child) { float: left; }
