/*! 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: #222;
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

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

:root {
  --primary-color: #005a87;
  --secondary-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --white: #fff;
  --max-width: 1200px;
  --section-padding: 80px 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

/* Header Styles */
.site-header {
  /* Use image background with blur via pseudo-element */
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* ensure blurred bg doesn't overflow */
}

/* Blurred background image (upper half focus) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0; /* cover whole header */
  background-image: url('../img/Head_and_Neck_2025_Giger_7368.jpg');
  background-size: cover;
  background-position: top center; /* show upper half */
  background-repeat: no-repeat;
  filter: blur(6px);
  transform: scale(1.03); /* avoid edge clipping from blur, reduced to match lower blur */
  z-index: -2; /* behind header content */
}

/* Optional dark overlay for readability */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* Ensure header content stays above bg */
.site-header .container,
.site-header .header-content,
.site-header .main-nav { position: relative; z-index: 1; }

/* Add some extra vertical space so the background is visible */
.site-header .header-content { padding: 30px 0; }

.header-content {
  text-align: center;
  padding: 20px 0;
}

.site-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.site-header h2 {
  margin: 10px 0 0;
  font-size: 1.5rem;
  font-weight: 300;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.main-nav li {
  margin: 0 15px 10px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--medium-gray);
}

.section:nth-child(odd) {
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* Home Section Styles */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.text-content {
  flex: 1 1 60%;
  min-width: 300px;
}

.greeting {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.features-list {
  padding-left: 20px;
  margin: 30px 0;
}

.features-list li {
  margin-bottom: 10px;
  position: relative;
}

.director-info {
  flex: 1 1 30%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.director-image {
  width: 200px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.director-details {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .site-header h2 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .director-info {
    margin-top: 30px;
  }
}

/* ==========================================================================
   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;
  }
}


/* Slideshow Styles */
.slideshow-section {
  padding: var(--section-padding);
  background-color: var(--light-gray);
}

.slideshow-container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.slides {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  /* Maintain a nice aspect ratio; falls back to height if not supported */
  aspect-ratio: 16 / 9;
}

/* Fallback: ensure a reasonable height on very old browsers */
@supports not (aspect-ratio: 16 / 9) {
  .slides { height: 50vh; }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.1s ease;
}

.slide-nav:hover,
.slide-nav:focus {
  background: rgba(0, 0, 0, 0.65);
  outline: none;
}

.slide-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }

/* Make buttons slightly smaller on small screens */
@media (max-width: 600px) {
  .slide-nav { width: 40px; height: 40px; font-size: 22px; }
}
