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

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

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

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

/* ==========================================================================
   Custom styles for this project
   ========================================================================== */

:root {
  --header-height: 90px;
  --header-height-mobile: 60px;
  --gold: hsl(44, 44%, 55%);
  --midnight-blue: #001f3f;
}

.playfair-display-medium {
  font-family: 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.tangerine-regular {
  font-family: 'Tangerine', cursive;
  font-weight: 400;
  font-style: normal;
}

.tangerine-bold {
  font-family: 'Tangerine', cursive;
  font-weight: 700;
  font-style: normal;
}

/* Headings: use Playfair Display and uppercase site-wide */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Layout and reset for full-screen two-row layout */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  background: rgba(0, 31, 63, 0.8);
  color: #fff;
  z-index: 1000;
}
.site-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

/* Make wrapped logo clickable and ensure pointer events are enabled */
.logo-link {
  display: inline-block;
  pointer-events: auto;
}

.logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.site-header .logo {
  position: relative;
  height: 90px;
  width: auto;
  display: block;
  margin: 0;
  pointer-events: auto;
}

main {
  display: block;
}

.hero {
  height: calc(100vh);
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: start;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.hero.uc {
  background-image: url('../images/bg-uc.jpg');
  background-size: contain;
  background-repeat: no-repeat;
}
.hero .hero-inner {
  max-width: 1100px;
  padding: 12px;
  padding-top: var(--header-height);
  text-align: center;
}


.brand {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 8.5rem;
  line-height: 1;
  letter-spacing: 2px;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 12px 32px rgba(0, 0, 0, 0.8),
    0 6px 18px rgba(0, 0, 0, 0.7);
}

.kicker {
  display: block;
  font-size: 2.565rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
}

/* Ensure standalone .kicker uses the same gold color */
.kicker {
  color: var(--gold);
  text-transform: uppercase;
}

.hero .kicker {
  border-top: 2px solid #ffffff;
}

.tagline {
  margin: 6px 0 0;
  color: #ffffff;
  font-style: italic;
  font-size: 6rem;
  text-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 12px 32px rgba(0, 0, 0, 0.8),
    0 6px 18px rgba(0, 0, 0, 0.7);
}

/* Cards section background (full width wrapper) */
.content-section .cards-wrap {
  background: #f9f9f9;
  padding: 48px 0;
  width: 100%;
}

.content-section {
  background: transparent;
  padding: 0;
}

/* Constrain direct children of .content-section to a readable max width
   but allow full-width wrappers like .cards-wrap to remain edge-to-edge */
.content-section > *:not(.cards-wrap) {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Keep the intro area white while allowing full-width sections */
.white-section {
  background: #fff;
  padding: 48px 20px;
}

/* Center text inside .inner containers */
.inner {
  text-align: center;
}

/* Plain list styling for feature list in intro */
.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.features li {
  margin: 0.5rem 0;
  padding-left: 0;
}

/* CTA button styles for content-section inner */
.content-section .cta {
  margin-top: 1rem;
}

.content-section .btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 0;
  font-weight: 600;
  transition: opacity 120ms ease, transform 120ms ease;
}

.content-section .btn-gold:hover,
.content-section .btn-gold:focus {
  /* Slightly darker gold on hover/focus for clear affordance */
  background: hsl(44, 44%, 45%);
  color: #fff;
  text-decoration: none;
}

/* CTA button styles for white intro area */


/* Center SERVICES heading above cards */
.cards {
  display: flex;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}
.services-title {
  width: 100%;
  text-align: center;
  display: block;
}
.card {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.card h3 {
  margin-top: 0;
  color: var(--gold);
}

.card {
  width: 100%;
  border-radius: 0;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card a {
  text-decoration: none
}

.content {
  padding: 1.1rem;
}

.image {
  object-fit: cover;
  width: 100%;
  height: 150px;
  background-color: rgb(239, 205, 255);
}

.title {
  color: #111827;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.desc {
  margin-top: 0.5rem;
  color: #6B7280;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.action {
  display: inline-flex;
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  align-items: center;
  gap: 0.25rem;
  background: var(--gold);
  padding: 0.6rem 1rem;
  border-radius: 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
  transition: background 120ms ease;
}

.action span {
  transition: none;
}

.action:hover,
.action:focus {
  background: hsl(44, 44%, 45%);
  color: #fff;
}


/* Make all headings inside the content area use the gold color */
.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
  color: var(--gold);
}

/* Add subtle shadows to all headings site-wide */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Add a soft box-shadow and a small text-shadow to the gold CTA button */
.content-section .btn-gold {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

footer.site-footer {
  background: var(--midnight-blue);
  color: #fff;
  padding: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .cards {
    flex-direction: column;
  }
  .hero .hero-inner {
    padding: 20px;
  }
}

/* Hide hero on small devices (width <= 768px) or very short screens (height <= 360px) */
@media (max-width: 768px), (max-height: 360px) {
  .hero {
    display: none;
  }
  .hero.uc {
    display: block;
  }

  /* Reduce header and logo size on small/short screens */
  .site-header {
    height: var(--header-height-mobile);
  }

  .site-header .logo {
    height: var(--header-height-mobile);
  }

  /* Ensure content starts below the (smaller) header */
  .content-section {
    padding-top: var(--header-height-mobile);
  }
}

@media (min-width: 769px) {
  .card {
    width: 50%;
    /* account for 1 gap (20px) between 2 columns */
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1201px) {
  .card {
    width: 25%;
    /* account for 3 gaps (20px each) between 4 columns */
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
  }
}
