/* =========================================================
   amm-site.css
   SITEWIDE + HEADER/NAV + CONTENT BLOCK SYSTEM + MODAL + FOOTER
   ========================================================= */

/* ===================== SITEWIDE ===================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;500&display=swap');

:root {
  --color-text: #333;
  --color-text-muted: #555;
  --color-text-light: #d1d1d1;
  --color-white: #fff;
  --color-black: #111;
  --color-brand: #b11f28;
  --color-brand-light: #e03a45;
  --shadow-soft: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-medium: 0 10px 25px rgba(0,0,0,0.25);
  --shadow-strong: 0 18px 40px rgba(0,0,0,0.35);
  --shadow-button: 0 10px 25px rgba(0,0,0,0.4);
  --radius-sm: 24px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --container-width: 1100px;
  --section-padding: 80px;
  --page-gap: 60px;
  --nav-height: 64px;
  --background-white-texture: url('white-texture-tile.webp');
  --background-black-texture: url('Black-Texture-Background.webp');
  --background-red-texture: url('Red-Texture-Background.webp');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff var(--background-white-texture) repeat fixed;
  text-wrap: balance;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h2 { font-size: 2.2rem; margin-bottom: 5px; }

/* H2 link underline animation */
h2 a {
  position: relative;
  text-decoration: none;
}

h2 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.25s ease;
}

h2 a:hover::after { width: 100%; }

h3 { font-size: 1.3rem; }

p { margin-top: 0; margin-bottom: 10px; font-size: 1.05rem; }

ul { list-style: none; padding: 0; margin: 0; }
li { position: relative; margin-bottom: 15px; padding-left: 25px; }
li::before {
  content: '■';
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--color-brand);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.tagline {
  display: block;
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.content-block__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brand);
}

.content-block__text p:first-of-type {
  margin-top: 6px;
}

/* ===================== BUTTONS ===================== */
.button,
.cta-button,
.submit-button,
button:not(.quote-close),
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 18px 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.button:hover,
.cta-button:hover,
.submit-button:hover,
button:not(.quote-close):hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,.5);
}

/* CTA pair — joined pill button group */
.cta-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}

.cta-group .cta-button,
.cta-group a.cta-button {
  border-radius: 0;
}

.cta-group .cta-button:first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}

/* Secondary (right) button — black-to-red gradient, rounded right */
.cta-group .cta-button:last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-black), var(--color-brand));
}

/* Prevent seam shift on hover inside group */
.cta-group .cta-button:hover {
  transform: none;
}

/* Standalone centered button utility */
.cta-button--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== HERO (index.html only) ===================== */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

.hero-bg,
.hero-overlay,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 1;
  overflow: hidden;
  background-color: var(--color-brand);
}

.hero-slide {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: scale(1.03);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1.4s ease-in-out, clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 6s ease-out;
}

.hero-slide.active {
  z-index: 2;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.hero-slide.exit {
  z-index: 1;
  opacity: 0;
  clip-path: inset(0 0 0 0);
  transform: scale(1.01);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active .hero-img { opacity: 1; }

.hero-overlay {
  z-index: 2;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(177,31,40,0.5));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

.home-hero .logo {
  width: 50vw;
  margin: 0 auto 25px;
}

.home-hero h1 {
  width: 100%;
  margin: 10px 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
}

.hero-tagline {
  margin: 10px 0;
  font-size: 1.3rem;
  color: #eee;
}

.hero-subtagline {
  margin: 6px 0 20px;
  font-size: 1.05rem;
  color: #ddd;
}

/* ===================== HEADER / NAV ===================== */
/*
  Layout strategy:
  - index.html uses .hero-page — header sits AFTER the hero-wrapper in the DOM
    and uses position:sticky so it sticks once the hero scrolls past.
  - All other pages have the header at the top of <body>, no .hero-page class.
    The nav logo is always visible on interior pages.
*/

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.trust-bar {
  padding: 18px 0;
  background: rgba(0,0,0,.85);
  color: #fff;
  text-align: center;
}

.trust-text {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  text-align: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.nav-logo-wrap {
  display: block;
  width: 120px;
  margin-right: 40px;
  overflow: visible;
  opacity: 1;
  transform: translateX(0);
  transition: width .25s ease, margin-right .25s ease, opacity .2s ease, transform .25s ease;
  flex: 0 0 auto;
}

.nav-logo {
  width: 100%;
  height: auto;
}

.nav-links__items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-brand);
}

.nav-divider { color: rgba(0,0,0,.4); }

.nav-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--color-text);
  display: block;
}

/* ===================== SCROLL ANCHORS ===================== */
/* Apply scroll-margin to any element targeted by a hash link
   so it clears the sticky nav. */
[id] {
  scroll-margin-top: 80px;
}

/* ===================== MINI-HERO (interior pages) ===================== */
/*
  digital.html and offset.html place the mini-hero BEFORE the <header>.
  Position it relative so it flows normally; the sticky header sits on top.
*/
.mini-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.mini-hero__bg,
.mini-hero__overlay {
  position: absolute;
  inset: 0;
}

.mini-hero--digital .mini-hero__bg {
  background: url('Collateral-Materials.webp') center/cover no-repeat;
}

.mini-hero--offset .mini-hero__bg {
  background: url('Man-Press-Hero.webp') center/cover no-repeat;
}

.mini-hero__overlay {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(177,31,40,0.5));
}

.mini-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 90px 20px 80px;
  text-align: center;
}

.mini-hero__content .content-block__title {
  color: var(--color-white);
  margin-bottom: 14px;
}

.mini-hero__content .content-block__eyebrow {
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

.mini-hero__content p {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.92);
  text-wrap: balance;
}

/* ===================== CONTENT BLOCK SYSTEM ===================== */
.page-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding) 24px;
  position: relative;
}

/* Red divider between sections — but only when a page-section
   directly follows another page-section (not a hero or header). */
.page-section + .page-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--color-brand);
}

.page-section__inner {
  padding: 0;
}

.content-block {
  display: grid;
  gap: 8px;
  padding: 0 24px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "eyebrow"
    "media"
    "body";
}

.content-block__title  { grid-area: title; }
.content-block__eyebrow { grid-area: eyebrow; }
.content-block__media  { grid-area: media; }
.content-block__body   { grid-area: body; }

.content-block__media img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.content-block__media video {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  filter: saturate(70%);
}

.content-block--onecol,
.content-block--full {
  grid-template-columns: 1fr;
}

.content-block--center,
.content-block--center .content-block__title,
.content-block--center .content-block__eyebrow,
.content-block--center .content-block__body,
.content-block--center p {
  text-align: center;
}

/* Narrow: constrained width for text-heavy one-col blocks */
.content-block--narrow {
  padding-left: clamp(16px, 15%, 160px);
  padding-right: clamp(16px, 15%, 160px);
}

.content-block--twocol {
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

@media (min-width: 769px) {
  .content-block--text-first {
    grid-template-areas:
      "title  media"
      "eyebrow media"
      "body   media";
    align-items: center;
  }

  .content-block--media-first {
    grid-template-areas:
      "media title"
      "media eyebrow"
      "media body";
    align-items: center;
  }
}

/* Service feature list */
.service-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.service-feature {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.service-feature:last-child { border-bottom: 0; }

.service-feature strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
}

.service-feature span {
  color: var(--color-text-muted);
  font-size: .98rem;
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 24px 34px 0;
}

.catalog-column h3 {
  margin: 0 0 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: inherit;
}

/* Profile grid */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.profile-grid--center { justify-items: center; }

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-card--center {
  align-items: center;
  text-align: center;
}

.profile-portrait {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

/* Media carousel */
.media-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.media-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
}

.media-carousel__slide.is-active { opacity: 1; }

.media-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border-radius: 0;
}

.video-frame video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(70%);
  border-radius: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.35), rgba(177,31,40,.25));
  pointer-events: none;
  border-radius: 0;
}

.media-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 8px 12px;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(2px);
}

.media-carousel__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(176,31,41,.5);
  cursor: pointer;
  flex: 0 0 15px;
}

.media-carousel__dot.is-active { background: rgba(176,31,41,1); }

/* Review carousel */
.review-carousel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.review-carousel__viewport {
  position: relative;
  width: 100%;
}

.review-carousel__slide {
  display: none;
  width: 100%;
}

.review-carousel__slide.is-active { display: block; }

.review-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  text-align: center;
}

.review-stars {
  display: block;
  width: 96px;
  max-width: 100%;
  margin: 0 auto 14px;
}

.review-quote { margin: 0 0 12px; }

.review-attribution {
  display: block;
  font-weight: 700;
}

.review-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.review-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(176,31,41,0.45);
  cursor: pointer;
  flex: 0 0 12px;
}

.review-carousel__dot.is-active { background: rgba(176,31,41,1); }

/* Lists */
.list-left {
  text-align: left;
  display: inline-block;
}

/* ===================== MODAL ===================== */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(0,0,0,.7);
}

.quote-modal.active { display: flex; }

.quote-modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f7f7f7 var(--background-white-texture) repeat;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.quote-modal-header {
  position: relative;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  color: #fff;
}

.quote-modal-header h3 {
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quote-modal-header p {
  margin: 0;
  color: rgba(255,255,255,.9);
}

.quote-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.quote-form {
  padding: 28px;
  overflow-y: auto;
  background: transparent;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  margin-bottom: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #222;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.form-note {
  margin: 0;
  font-size: .95rem;
  color: #666;
}

/* ===================== FOOTER ===================== */
footer {
  padding: 80px 20px;
  border-top: 1px solid #eee;
  background-color: #f3f3f3;
  text-align: center;
}

.contact-info {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ===================== MOBILE STICKY CTA ===================== */
.mobile-sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 9999;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.mobile-sticky-cta a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter .2s ease;
}

.mobile-sticky-cta a:hover {
  filter: brightness(1.12);
}

.mobile-sticky-cta a:first-child {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
}

.mobile-sticky-cta a:last-child {
  background: linear-gradient(135deg, var(--color-black), var(--color-brand));
  border-left: 1px solid rgba(255,255,255,.15);
}

.mobile-sticky-cta img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .mobile-sticky-cta { display: flex; }
  body { padding-bottom: 82px; }
  /* Nav: logo left, hamburger right */
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 8px 16px;
  }

  .nav-logo-wrap {
    position: static;
    transform: none !important;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    order: 1;
  }

  .nav-logo {
    width: 100px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-toggle {
    display: flex;
    position: static;
    transform: none;
    margin-left: auto;
    order: 2;
    z-index: 3;
  }

  /* Dropdown */
  .nav-links__items {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: max-content;
    min-width: 150px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: 0;
    z-index: 2;
    text-align: left;
  }

  .nav-links__items a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links__items a:hover { background: rgba(0,0,0,0.06); }

  .nav-links.active .nav-links__items { display: flex; }

  .nav-divider { display: none; }

  /* Layout */
  .page-section { padding: 40px 0; }
  .page-section__inner { padding-left: 16px; padding-right: 16px; }

  .content-block--twocol,
  .content-block { grid-template-columns: 1fr; }

  .content-block--narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
  .profile-portrait { width: 100px; height: 100px; }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); }

  .review-card { padding: 20px 16px; }
  .review-stars { width: 84px; margin-bottom: 12px; }

  .mini-hero__content { padding: 70px 20px 60px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .submit-button { width: 100%; }

  footer { padding: 40px 20px; }

  .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .cta-group .cta-button {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
  }

  /* If they do wrap/stack, round top corners on first, bottom on last */
  .cta-group .cta-button:first-child {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .cta-group .cta-button:last-child {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .home-hero .logo { width: 80vw; }
}