/* ==========================================================================
   The Blade Barbershop — site stylesheet
   --------------------------------------------------------------------------
   Rebuilds the design layer that the original build served from
   automatic.css, automatic-oxygen.css and oxygen/css/universal.css.
   Those three files were never archived, so the tokens (--primary, --shade,
   --space-*, --text-*) and every utility/BEM class used by the markup are
   defined here instead. 13.css, 2.css and 49.css still supply the
   page-specific overrides and expect these names to exist.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --primary: #9e1b1e;
  --primary-light: #d4484c;
  --primary-dark: #741315;
  --shade: #16181a;
  --shade-light: #2b2f33;
  --white: #ffffff;
  --black: #0b0c0d;

  /* Surfaces & text */
  --body-bg: #ffffff;
  --body-text: #23262a;
  --muted-text: #5c6167;
  --hairline: #e3e5e8;

  /* Spacing scale */
  --space-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --space-s: clamp(0.75rem, 0.6rem + 0.5vw, 1.125rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --space-xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Type scale */
  --text-s: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-m: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-l: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --text-larger: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);

  --h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
  --h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);

  /* Layout */
  --content-width: 78rem;
  --radius: 3px;

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Oswald", "Helvetica Neue", Impact, Haettenschweiler, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sticky header clearance for in-page anchors */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--body-bg);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: 1.65;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-block: 0 0.5em;
}

p {
  margin-block: 0 1em;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Oxygen element defaults
   -------------------------------------------------------------------------- */

.ct-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ct-section > .ct-section-inner-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--content-width);
  padding: var(--space-xl) var(--space-m);
}

.ct-div-block,
.ct-inner-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ct-text-block,
.ct-headline {
  display: block;
}

.ct-span {
  display: inline;
}

.ct-link,
.ct-link-text,
.ct-link-button {
  text-decoration: none;
}

.ct-link {
  display: inline-block;
}

.ct-image {
  display: block;
  max-width: 100%;
}

.oxy-dynamic-list {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Utilities (the automatic.css surface this markup relies on)
   -------------------------------------------------------------------------- */

/* Section padding */
.pad-section--none > .ct-section-inner-wrap {
  padding-block: 0;
  max-width: 100%;
  padding-inline: 0;
}

.pad-section--xs > .ct-section-inner-wrap {
  padding-block: var(--space-m);
}

.pad-section--s > .ct-section-inner-wrap {
  padding-block: var(--space-l);
}

/* Full-bleed */
.breakout--full {
  width: 100%;
}

/* Grids */
.grid--auto-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
}

.grid--auto-2-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  align-items: center;
}

.gap--s {
  gap: var(--space-s);
}

.gap--l {
  gap: var(--space-l);
}

.gap--xl {
  gap: var(--space-xl);
}

/* Spacing */
.margin-top--l {
  margin-top: var(--space-l);
}

/* Alignment */
.self--center {
  align-self: center;
}

.center--all {
  text-align: center;
  align-items: center;
}

.center--all > .ct-section-inner-wrap {
  align-items: center;
}

.text--left {
  text-align: left;
}

/* Width */
.width--l {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

/* Type */
.text--l {
  font-size: var(--text-l);
}

.text--larger {
  font-size: var(--text-larger);
}

/* Backgrounds */
.bg--primary {
  background-color: var(--primary);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.oxy-header-wrapper {
  width: 100%;
}

.oxy-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
}

.oxy-header-row {
  width: 100%;
}

.oxy-header-container {
  max-width: var(--content-width);
  padding-inline: var(--space-m);
  align-items: center;
  gap: var(--space-m);
}

.pad-header--s .oxy-header-container {
  padding-block: var(--space-s);
}

.oxy-header-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.oxy-header-center {
  flex: 1 1 auto;
}

.oxy-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex: 0 0 auto;
}

.logo {
  width: clamp(9rem, 14vw, 12.5rem);
  height: auto;
}

/* Skip link — visible only on keyboard focus */
.link--skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--shade);
  font-weight: 600;
  z-index: 1000;
}

.link--skip:focus,
.link--skip:focus-visible {
  left: var(--space-s);
  top: var(--space-s);
}

/* Primary navigation */
.oxy-pro-menu .oxy-pro-menu-list .menu-item a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-m);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5em 0.85em;
  border-bottom-width: 2px;
  transition-duration: 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.oxy-header.oxy-sticky-header-active .oxy-pro-menu .menu-item a {
  text-shadow: none;
}

.oxy-pro-menu-mobile-open-icon,
.oxy-pro-menu-mobile-close-icon {
  color: var(--white);
}

.oxy-pro-menu-mobile-open-icon > svg,
.oxy-pro-menu-mobile-close-icon > svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* The mobile overlay uses --shade, so its links need light type (13.css) */
@media (max-width: 767px) {
  .oxy-pro-menu-open-container .oxy-pro-menu-list .menu-item a {
    color: var(--white);
    text-shadow: none;
  }

  .oxy-pro-menu-mobile-close-icon {
    top: var(--space-m);
    z-index: 1;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(34rem, 82vh, 54rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 13, 0.82) 0%,
    rgba(11, 12, 13, 0.6) 45%,
    rgba(11, 12, 13, 0.82) 100%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
  width: 100%;
  max-width: 60rem;
  padding: calc(var(--space-xl) + 4rem) var(--space-m) var(--space-xl);
  color: var(--white);
}

.hero__title {
  font-size: var(--text-larger);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-block-end: var(--space-s);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__content .ct-text-block {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-m);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Section headings
   -------------------------------------------------------------------------- */

.section-title__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-s);
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: var(--space-l);
}

.section-heading {
  position: relative;
  font-size: var(--h2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-block-end: 0;
  padding-block-end: var(--space-xs);
}

.section-heading::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-block-start: var(--space-s);
  background-color: var(--primary);
}

.section-title__wrapper .section-heading::after {
  margin-inline: auto;
}

.section-subtitle {
  font-size: var(--text-l);
  color: var(--muted-text);
}

/* --------------------------------------------------------------------------
   9. Services gallery  (grid template lives in 2.css)
   -------------------------------------------------------------------------- */

/* Fixed row height: the images carry height:100%, so without an explicit
   track size every row would grow to the image's intrinsic height. */
#div_block-141-2 {
  grid-auto-rows: clamp(6rem, 16vw, 11.5rem);
}

.grid-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 767px) {
  .grid-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */

#about .text--left {
  font-size: var(--text-m);
  color: var(--muted-text);
}

.image-border {
  position: relative;
  isolation: isolate;
}

.image-border::before {
  content: "";
  position: absolute;
  top: var(--space-m);
  left: var(--space-m);
  right: calc(var(--space-m) * -1);
  bottom: calc(var(--space-m) * -1);
  border: 4px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}

.image-border > .image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 767px) {
  .image-border::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   11. Location cards
   -------------------------------------------------------------------------- */

.location-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  background-color: var(--shade);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-m);
  overflow: hidden;
}

.location-card__title {
  font-size: var(--h3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: 0;
}

.location-card__link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary-light);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.location-card__link:hover,
.location-card__link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--primary-light);
}

.location-card_hours {
  color: rgba(255, 255, 255, 0.78);
  margin-block-end: 0;
}

/* 49.css sizes the inner span; it ships as an inline element, so it needs
   a block display before the width/height there can take effect. */
.location-card__map span {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--shade-light);
}

.location-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-card__image {
  width: 100%;
  height: clamp(10rem, 18vw, 15rem);
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: auto;
}

@media (max-width: 767px) {
  .location-card__map span {
    height: 20rem;
  }
}

/* --------------------------------------------------------------------------
   12. Contact form
   -------------------------------------------------------------------------- */

#contact .ct-section-inner-wrap {
  align-items: center;
}

.ff-el-group {
  margin-block-end: var(--space-s);
}

.ff-el-input--label label {
  font-weight: 600;
  color: var(--body-text);
}

.ff-el-form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: var(--text-m);
  color: var(--body-text);
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ff-el-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(158, 27, 30, 0.18);
}

.ff-t-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-s);
}

.ff-t-cell {
  flex: 1 1 14rem;
}

.ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-m);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ff-btn-submit:hover,
.ff-btn-submit:focus-visible {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.ff-el-is-required.asterisk-right label::after {
  content: "*";
  margin-inline-start: 0.25rem;
  color: var(--primary);
}

.ff-el-error {
  margin-block-start: 0.35rem;
  font-size: var(--text-s);
  color: var(--primary);
}

.ff-el-form-control[aria-invalid="true"] {
  border-color: var(--primary);
}

.ff-message-success {
  padding: var(--space-m);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background-color: rgba(158, 27, 30, 0.06);
  color: var(--body-text);
  text-align: left;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

#footer .logo {
  width: clamp(10rem, 16vw, 14rem);
}

#footer .ct-section-inner-wrap {
  align-items: center;
}
