/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@font-face {
  font-family: "Norwester";
  src: url("/fonts/norwester.otf") format("woff2");
  font-weight: normal;
  font-style: normal;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
h2 {
  text-transform: uppercase;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.hero {
  background: url("../img/barber-shop-hero.png") no-repeat center top;
  background-size: cover;
  height: 65vh;
  position: relative;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 15%; /* moved further to the right */
  transform: translateY(-50%);
  padding-left: 2rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}
/* Different text sizes */
.hero-sub-text {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2 !important;
}
.hero-big-text {
  font-size: 12rem;
  font-weight: 700;
  max-width: 650px;
  line-height: 0.8 !important;
  margin-bottom: 10px;
}

.hero-med-text {
  font-size: 8rem;
  font-weight: 700;
  line-height: 0.7 !important;
  margin-bottom: 30px;
}

.hero-p-text {
  font-size: 2rem;
  font-weight: 500;
  margin-top: 40px;
  max-width: 850px;
}
.barber-pole {
  margin-bottom: 35px;
}
.barber-pole img {
  width: 75px;
}

.galleryLink {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
}
.galleryLink a {
  color: #333;
  text-decoration: none;
}
.galleryLink a:hover {
  text-decoration: underline;
}
.services-table {
  width: 100%;
  border-collapse: collapse;
}
.services-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}
.services-table .price {
  font-weight: bold;
  text-align: right;
}
/* Optional: Adjust image styles in the gallery */
.gallery-img {
  width: 100%;
  height: auto;
}

#team a {
  text-decoration: none;
}

#team .bi-calendar-check {
  margin-right: 5px;
}
#team img {
  height: 400px;
}

section {
  padding: 140px 0;
}
.galleryLink {
  text-transform: capitalize;
}

#hours {
  position: relative;
  font-family: "Outfit", sans-serif;
  /* remove the direct background */
  overflow: hidden;
}

/* create a filtered background layer */
#hours::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hours-bg (3).png") no-repeat center center;
  background-size: cover;
  filter: grayscale(100%) opacity(20%);
  /* ensure it sits behind your content */
  z-index: 1;
}

/* make sure your inner content sits above the pseudo-element */
#hours > * {
  position: relative;
  z-index: 2;
}

/* Navbar logo styling */
.navbar-logo {
  height: 30px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
}

/* Mobile H1 styling */
.mobile-h1 {
  padding: 60px 0 40px 0;
  background: #f8f9fa;
}

.mobile-h1 h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Map container styling */
.map-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: #f0f0f0; /* Fallback background */
}

#custom-map {
  width: 100%;
  height: 600px;
  background: #e0e0e0; /* Debug background to see if container loads */
}

/* Hide hero section on mobile devices */
@media (max-width: 767.98px) {
  .hero {
    display: none;
  }
}

/* Optional: On mobile you may want the text centered */
@media (max-width: 767.98px) {
  .hero-overlay {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}
