/* ==============================================================
   Alex Ackel Auctions
   Styles, top to bottom:
     1. Tokens        2. Base          3. Layout helpers
     4. Buttons       5. Navigation    6. Hero + slideshow
     7. About         8. Why           9. Services
    10. Testimonials 11. Videos       12. Contact + form
    13. Footer       15. Fade-in
    16. Responsive   17. Reduced motion
   ============================================================== */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --maroon:        #5A1F24;  /* primary: buttons, accents, logo wordmark */
  --maroon-dark:   #431619;  /* hover states, testimonials band, footer */
  --maroon-light:  #7A3138;  /* subtle highlights */
  --cream:         #F6F1E7;  /* main page background */
  --cream-deep:    #ECE3D2;  /* alternating section background */
  --card:          #FFFDF8;  /* cards and form fields */
  --ink:           #221C1A;  /* body text */
  --muted:         #5F5550;  /* secondary text */
  --line:          #DDD2C0;  /* borders and dividers */
  --wood:          #7B4B33;  /* warm brown from the logo, use sparingly */

  --font-head: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --nav-h: 76px;
  --container: 1180px;
  --section-pad: clamp(4rem, 8vw, 6.5rem);
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1.1rem; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-dark); }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--maroon);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* 3. Layout helpers ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--cream-deep); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--maroon);
  margin: 0 0 0.75rem;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-intro { color: var(--muted); font-size: 1.125rem; }

.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col-reverse { grid-template-columns: 7fr 5fr; }

.framed-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

/* 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--maroon);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--maroon); color: var(--cream); }
.btn-primary:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--cream); box-shadow: 0 4px 14px rgba(67, 22, 25, 0.18); }
.btn-secondary { background: transparent; color: var(--maroon); }
.btn-secondary:hover { background: var(--maroon); color: var(--cream); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* 5. Navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(34, 28, 26, 0.08); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name span { color: var(--maroon); }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-link:hover { color: var(--maroon); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--maroon); }

.nav-cta {
  background: var(--maroon);
  color: var(--cream);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-cta::after { display: none; }
.nav-cta:hover, .nav-cta.active { background: var(--maroon-dark); color: var(--cream); }

.social-links { display: flex; gap: 0.4rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--maroon);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.social-links a:hover { background: var(--maroon); color: var(--cream); }
.nav-social { padding-left: 1.25rem; border-left: 1px solid var(--line); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
/* All three bars sit on the button's center line and are offset with
   transforms, so the X always lands exactly in the middle. */
.nav-toggle-bar {
  position: absolute;
  left: 11px;
  top: calc(50% - 1px);
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--maroon);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bar:nth-child(1) { transform: translateY(-7px); }
.nav-toggle-bar:nth-child(3) { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg); }

/* 6. Hero + slideshow ----------------------------------------- */
.hero {
  min-height: calc(85vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-deep);
  touch-action: pan-y;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--maroon);
  cursor: pointer;
  opacity: 0.92;
  transition: background-color 0.2s, color 0.2s;
}
.slide-arrow:hover { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.slide-prev { left: 0.9rem; }
.slide-next { right: 0.9rem; }

.slide-dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.slide-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slide-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--maroon);
  transition: background-color 0.2s, transform 0.2s;
}
.slide-dot[aria-current="true"]::before { background: var(--maroon); transform: scale(1.15); }

/* 7. About ----------------------------------------------------- */
#about .col-text p { color: var(--ink); }


/* 8. Why a professional --------------------------------------- */
#why .btn { margin-top: 0.75rem; }

/* 9. Services -------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  color: var(--ink);
  border-color: var(--maroon-light);
  box-shadow: 0 6px 20px rgba(34, 28, 26, 0.07);
  transform: translateY(-2px);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  background: var(--cream-deep);
  color: var(--maroon);
  font-size: 1.35rem;
}
.service-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
.service-text { color: var(--muted); font-size: 1rem; }

.service-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 2.25rem 2.25rem;
  border-left: 5px solid var(--maroon);
}
.service-featured .service-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin: 0;
  background: var(--maroon);
  color: var(--cream);
  font-size: 1.8rem;
}
.service-featured-bottom { margin-top: 0; }
.service-featured .service-body { flex: 1; }
.service-photo {
  width: 300px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.service-featured .service-body { display: flex; flex-direction: column; gap: 0.6rem; }
.service-featured .service-title { font-size: 1.6rem; }
.service-featured .service-text { font-size: 1.0625rem; max-width: 62rem; }

/* 10. Testimonials (the one full-width maroon band) ------------ */
.testimonials {
  background: var(--maroon-dark);
  color: var(--cream);
  border-top: 0;
}
.testimonials.is-hidden { display: none; }
.testimonials h2 { color: var(--cream); }
.testimonials .section-label { color: #E6C9A8; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  margin: 0;
  padding: 2rem;
  background: var(--maroon);
  border: 1px solid rgba(246, 241, 231, 0.18);
  border-radius: var(--radius);
}
.testimonial-icon { font-size: 1.6rem; color: #E6C9A8; margin-bottom: 1rem; }
.testimonial-card blockquote {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cream);
}
.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 231, 0.18);
}
.testimonial-card figcaption strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.testimonial-card figcaption span { font-size: 0.9rem; color: #E3D6C6; }

/* 11. Get a Taste (videos) ------------------------------------ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.video-grid.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--maroon-dark);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--maroon-dark);
  cursor: pointer;
}
.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.88;
}
.video-play:hover img,
.video-play:focus-visible img { transform: scale(1.03); opacity: 1; }
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--maroon);
  border: 2px solid var(--cream);
  color: var(--cream);
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}
.video-play-icon i, .video-play-icon svg { margin-left: 4px; }
.video-play:hover .video-play-icon { transform: scale(1.08); background: var(--maroon-light); }
.video-play:focus-visible { outline: 3px solid var(--cream); outline-offset: -6px; }

/* 12. Contact + form ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact-list a { overflow-wrap: anywhere; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--maroon);
  color: var(--cream);
}

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.req { color: var(--maroon); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #C9BBA5;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(90, 31, 36, 0.15);
}
.field.invalid input,
.field.invalid textarea { border-color: #A12A2A; }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 1.25rem; }
.form-error {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #D7A8A8;
  border-left: 4px solid #A12A2A;
  border-radius: var(--radius);
  background: #FBEDEB;
  color: #6E1B1B;
  font-size: 0.95rem;
}
.form-error a { color: #6E1B1B; font-weight: 600; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success { text-align: center; padding: 3rem 1rem; }
.form-success:focus { outline: none; }
.form-success i { font-size: 3rem; color: var(--maroon); margin-bottom: 1rem; }
.form-success h3 { font-size: 1.75rem; }
.form-success p { color: var(--muted); margin: 0; }

/* 13. Footer --------------------------------------------------- */
.site-footer { background: var(--maroon-dark); color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.brand-light .brand-name { color: var(--cream); }
.brand-light .brand-name span { color: #E6C9A8; }
.brand-light .brand-logo {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 4px;
}
.footer-brand p { margin: 1.25rem 0; color: #E3D6C6; max-width: 26rem; }
.site-footer .social-links a { color: var(--cream); border: 1px solid rgba(246, 241, 231, 0.25); }
.site-footer .social-links a:hover { background: var(--cream); color: var(--maroon-dark); }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #E6C9A8;
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.6rem; color: #E3D6C6; }
.footer-col i { width: 1.2em; color: #E6C9A8; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--cream); }

.footer-bottom { border-top: 1px solid rgba(246, 241, 231, 0.15); padding: 1.25rem 0; }
.footer-bottom p { margin: 0; font-size: 0.875rem; color: #E3D6C6; }

/* 15. Fade-in on scroll (only when JS has added .js-fade) ----- */
.js-fade .fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-fade .fade-in.visible { opacity: 1; transform: none; }

/* 16. Responsive ---------------------------------------------- */
@media (max-width: 1024px) {
  .nav-menu { gap: 1.1rem; }
  .nav-links { gap: 1.1rem; }
  .nav-social { padding-left: 0.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-photo { width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* Hamburger menu */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(34, 28, 26, 0.08);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-menu.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-cta { text-align: center; padding: 0.85rem 1rem; }
  .nav-social { border-left: 0; padding: 1rem 0 0; justify-content: center; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  body { font-size: 1.0625rem; }

  .hero { min-height: auto; }
  .hero-inner,
  .two-col,
  .two-col-reverse,
  .contact-grid { grid-template-columns: 1fr; }

  /* Text first in the stacked hero; image first in About */
  #why .col-media { order: 2; }
  #about .col-media { max-width: 420px; }

  .service-featured { flex-direction: column; padding: 2rem 1.75rem; gap: 1rem; }
  .service-photo { width: 100%; order: -1; }
  .service-featured .service-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-play-icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.2rem; }
  .brand-logo { height: 38px; }
  .btn-row .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slide-arrow { width: 38px; height: 38px; }
}

/* 17. Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js-fade .fade-in { opacity: 1; transform: none; }
}
