/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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
   ========================================================================== */

/* Main styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #44CBB1 0%, #3bb89f 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.02em;
  line-height: 1.4;
  position: relative;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.header {
  background-color: transparent;
  padding: 1.5rem 2rem;
  text-align: left;
  border: none;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  animation: fadeInDown 0.5s ease-out;
}

.intro-text {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
  color: #3E2F34;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.1s;
}

#main-logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

#main-logo:hover {
  transform: scale(1.02);
}

.divisions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.division {
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 180px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.division:nth-child(1) { animation-delay: 0.2s; }
.division:nth-child(2) { animation-delay: 0.3s; }
.division:nth-child(3) { animation-delay: 0.4s; }

.division-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.division h2 {
  color: #3E2F34;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  text-transform: none;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

.division p {
  margin: 0;
  color: #3E2F34;
  line-height: 1.3;
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.65;
}

.award-badge {
  display: inline-block;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(68, 203, 177, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #3E2F34;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.8;
  font-weight: 500;
}

.award-badge:hover {
  background: rgba(68, 203, 177, 0.2);
  transform: translateY(-1px);
}

.division:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.footer {
  background-color: transparent;
  color: #3E2F34;
  padding: 2rem;
  text-align: left;
  border: none;
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.5s;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.company-details {
  flex: 1;
}

.footer-award {
  height: 160px;
  width: auto;
  opacity: 0.9;
  transition: all 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.footer-award:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

.footer p {
  margin: 0.15rem 0;
  font-weight: 400;
}

.footer a {
  color: #3E2F34;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #3E2F34;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer a:hover::after {
  transform: scaleX(1);
}

.decorative-curves {
  position: fixed;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 45%;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .header {
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(68, 203, 177, 0.1);
    backdrop-filter: blur(10px);
  }

  #main-logo {
    height: 32px;
  }

  .intro-text {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    margin: 0.5rem auto 1.5rem;
  }

  .divisions {
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    margin-top: 0;
  }

  .division {
    padding: 1.25rem;
    height: auto;
    min-height: 140px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .division:active {
    transform: scale(0.98);
  }

  .division h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .division p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .award-badge {
    margin-top: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer {
    padding: 1.5rem;
    margin-top: auto;
  }

  .footer-content {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
  }

  .footer-award {
    height: 120px;
    margin: 0 auto;
  }

  .company-details {
    text-align: center;
    width: 100%;
  }

  .footer p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
  }

  .footer a {
    padding: 0.25rem;
    margin: -0.25rem;
  }

  .decorative-curves {
    width: 90%;
    right: -45%;
    opacity: 0.1;
  }
}

@media screen and (min-width: 1400px) {
  .division h2 {
    font-size: 1.75rem;
  }

  .division p {
    font-size: 1.1rem;
  }
}

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

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch-friendly hover states */
@media (hover: none) {
  .division:hover {
    transform: none;
  }

  .award-badge:hover {
    transform: none;
  }

  .footer-award:hover {
    transform: none;
  }
}

