/*! 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
   ========================================================================== */

html {
  color: #f9efe2;
  font-size: 1em;
  line-height: 1.4;
  font-family: "Tajawal", "Segoe UI", sans-serif;
}

link[rel="icon"] {
  border-radius: 50%;
}

/*
 * 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.
 */

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;
  }

  h1,
  h2 {
    text-align: center;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
    font-size: 1rem;
  }

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

body {
  background-color: rgb(112, 56, 112);
  font-family: "Tajawal", "Segoe UI", sans-serif;
  color: #f9efe2;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 1.15rem;
  line-height: 1.7;
}

div.background {
  width: 100%;
  max-width: 95.5%; /* Set your desired maximum width */
  height: 900px; /* Height is required for background images */
  background-image: url("/Users/isabellaward-ackland/orriswinds.co.uk/img/DSC08221.jpg");
  background-size: cover; /* Options: cover, contain, or specific dimensions like 100% 100% */
  background-position: center; /* Centers the image within the div */
  background-repeat: no-repeat;
  opacity: 80%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
}

/* Center primary headings on-screen (print already centers them above) */

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  padding: 3rem 0 2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Site header / navigation */
.site-header {
  background: rgba(0, 0, 0, 0.22);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner-container {
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0 0.5rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}
.social-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  margin-right: 2rem;
  height: 1.8rem;
  order: 2;
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 2fr;
  align-items: center;
  gap: 1rem;
  flex: 1;
  order: 1;
}
.logo {
  color: #f9efe2;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  white-space: nowrap;
}
.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.site-nav {
  justify-self: start;
  grid-column: 2;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.site-nav a {
  color: #f9efe2;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  padding: 0.35rem 0.5rem;
  font-size: 1rem;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1rem;
}

/* Musicians list */
.musicians-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.musicians-list a {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* musician image grid and centered bottom row */
.musicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  align-items: start;
}
.musician-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  display: block;
  background: #000;
}
.musician-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
  border-radius: 0;
  opacity: 0.8;
}
.musician-card:hover .musician-img,
.musician-card:focus .musician-img {
  transform: scale(1.04);
}
.musician-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: rgba(0, 0, 0, 0.55);
  color: #f9efe2;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* On large screens: 3 columns on top; make the wrapper occupy a full row and center two cards */
@media (min-width: 900px) {
  .musicians-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .musician-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2rem;
  }
  .musician-row .musician-card {
    width: 420px;
  }
}

@media (max-width: 899px) {
  .musician-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .musician-row .musician-card {
    width: 100%;
  }
}

/* Responsive: collapse nav into toggle on small screens */
@media (max-width: 700px) {
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open {
    display: block;
    padding: 0.5rem 0;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-toggle {
    display: block;
  }
  .nav-inner {
    align-items: center;
  }
}

.musician-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.musician-profile {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
}

.musician-profile.reverse {
  flex-direction: row-reverse;
}

.musician-photo {
  flex: 0 0 340px;
  max-width: 340px;
}

.musician-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}

.musician-bio {
  flex: 1;
  color: #f9efe2;
}

.musician-bio p {
  margin: 0 0 1rem;
  line-height: 1.7;
  font-size: 1.15rem;
}

.text-background {
  background: rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem;
}

@media (max-width: 700px) {
  .musician-profile,
  .musician-profile.reverse {
    display: block;
  }

  .musician-photo {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .musician-photo img {
    height: 360px;
  }
}

.nav-inner-container img.logo-mark {
  width: 70px;
  height: auto;
  border-radius: 50%;
}

.concerts-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.concerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  align-items: start;
}

.concert-card {
  background: rgb(100, 48, 100);
  color: #f9efe2;
  padding: 1.5rem 1.5rem 1.2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  text-align: center;
}

.concert-venue,
.concert-code,
.concert-date {
  text-align: center;
}

.concert-button {
  align-self: center;
  background: transparent;
  color: #f9efe2;
  border: 2px solid #f9efe2;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  font-family: "Tajawal", "Segoe UI", sans-serif;
}

@media (max-width: 700px) {
  .concerts-grid {
    grid-template-columns: 1fr;
  }
}

.contact-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.contact-card {
  max-width: 700px;
  margin: 2rem auto 0;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(249, 239, 226, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-email {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: #f9efe2;
  text-align: center;
}

.contact-email a {
  color: #f9efe2;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.contact-email a:hover {
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: #f9efe2;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(249, 239, 226, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #f9efe2;
  padding: 1rem;
  font: inherit;
  box-sizing: border-box;
  border-radius: 4px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(249, 239, 226, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(249, 239, 226, 0.6);
}

.contact-form button {
  align-self: flex-start;
  background: rgba(249, 239, 226, 0.1);
  color: #f9efe2;
  border: 2px solid #f9efe2;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.contact-form button:hover {
  background: rgba(249, 239, 226, 0.2);
  border-color: #f9efe2;
  transform: translateY(-2px);
}

.homepage-reviews {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.review-quote {
  margin: 0;
  color: #f8f4e9;
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 4px;
}

.review-top-left {
  align-self: flex-start;
}

.review-bottom-right {
  align-self: flex-start;
  margin-top: auto;
}
