/* Base Variables & Setup */
:root {
  --navy: #0A1828;
  --turquoise: #178582;
  --gunmetal: #3A3F47;
  --silver: #A8A9AD;
  --offwhite: #F4F6F8;
  --nav-shadow-opacity: 0.5;
  --font-heading: 'Crimson Text', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--silver);
  background-color: var(--offwhite);
  line-height: 1.6;
  /* Prevent horizontal scroll without breaking window scroll events */

}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* shared hover squish for animated CTA buttons */
@keyframes btn-squish {
  0% { transform: scale(1); }
  30% { transform: scale(.95); }
  100% { transform: scale(1); }
}

/* 1. Sticky Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--navy);
  z-index: 1000;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, var(--nav-shadow-opacity));
}

@media (max-width: 900px) {
  .navbar {
    background: linear-gradient(to bottom, rgba(10, 24, 40, 0.55), rgba(10, 24, 40, 0));
  }

  .navbar.scrolled {
    background: var(--navy);
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  transition: padding 0.3s ease;
}

.navbar.scrolled .nav-container {
  padding: 1.5rem 2rem;
}

.nav-logo {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

@media (max-width: 900px) {
  .nav-logo {
    opacity: 0;
  }

  .navbar.scrolled .nav-logo {
    opacity: 1;
  }
}
.nav-logo img {
  height: 56px;
  width: auto;
}


.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  transform: translateY(20px);
}

.nav-links a {
  font-family: var(--font-body);
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-links a:hover {
  color: var(--turquoise);
}

.nav-link-contact {
  display: none;
  background-color: var(--turquoise);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

.nav-link-contact:hover {
  color: #fff;
}

.nav-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 1.375rem;
  border-radius: 4px;
  background-color: var(--turquoise);
  overflow: hidden;
  border: 2px solid var(--turquoise);
  -webkit-tap-highlight-color: transparent;
  top: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

.nav-contact:focus-visible {
  outline: 3px solid #126d6b;
  outline-offset: 3px;
}

.nav-contact:active {
  transform: scale(.98);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  animation: btn-squish .5s cubic-bezier(.35,0,.25,1);
}

.nav-contact-fill {
  position: absolute;
  inset: -15%;
  background-color: #fff;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.766,-.308,0,.341);
  z-index: 1;
}

.nav-contact:hover .nav-contact-fill,
.nav-contact:focus-visible .nav-contact-fill {
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.766,-.308,0,.341);
}

.nav-contact-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color .4s cubic-bezier(.766,-.308,0,.341);
}

.nav-contact:hover .nav-contact-label,
.nav-contact:focus-visible .nav-contact-label {
  color: var(--turquoise);
  transition: color .8s cubic-bezier(.766,-.308,0,.341);
}

@media (prefers-reduced-motion: reduce) {
  .nav-contact-fill,
  .nav-contact-label {
    transition: none !important;
  }
  .nav-contact,
  .nav-contact:hover,
  .nav-contact:focus-visible {
    animation: none !important;
  }
}

/* 2. Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gunmetal);
  z-index: 1;
}
.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 3. Intro */
.intro {
  background-color: var(--offwhite);
  padding: 3rem 2rem;
  text-align: center;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
}

.intro-headline {
  color: var(--turquoise);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.intro-body {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.8;
}

/* Section Utilities */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.reveal-fade {
  position: relative;
  top: 56px;
  opacity: 0;
  transition: opacity 0.8s ease, top 0.8s ease;
}
.reveal-fade.in-view {
  top: 0;
  opacity: 1;
}

.reveal-slide {
  position: relative;
  left: -80px;
  opacity: 0;
  transition: opacity 0.8s ease, left 0.8s ease;
}
.reveal-slide.in-view {
  left: 0;
  opacity: 1;
}

.reveal-slide-right {
  position: relative;
  left: 80px;
  opacity: 0;
  transition: opacity 0.8s ease, left 0.8s ease;
}
.reveal-slide-right.in-view {
  left: 0;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-fade {
    opacity: 1;
    top: 0;
    transition: none;
  }
  .reveal-slide,
  .reveal-slide-right {
    opacity: 1;
    left: 0;
    transition: none;
  }
}

.section-label {
  display: block;
  font-family: var(--font-body);
  color: var(--turquoise);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-headline {
  font-size: 3rem;
  line-height: 1.15;
  color: #fff;
}

/* 4. Work Photos */
.work {
  background-color: var(--gunmetal);
  padding: 1rem;
}

.work-photo {
  background-color: var(--navy);
  aspect-ratio: 16/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. Services */
.services {
  scroll-margin-top: 88px;
  background-color: var(--navy);
  padding-top: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--gunmetal);
  border-top: 10px solid var(--turquoise);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
}

.service-card-image {
  background-color: rgba(0,0,0,0.2);
  aspect-ratio: 1/1;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image::after {
  content: attr(data-slot);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.service-card-content {
  padding: 2.5rem;
  flex-grow: 1;
}

.service-card-content h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card-content p {
  color: var(--silver);
  font-size: 1rem;
}
/* 7. Industries Served */
.industries {
  background-color: var(--gunmetal);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.industry-tile {
  background-color: var(--navy);
  border-top: 4px solid var(--turquoise);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

/* 8. About */
.about {
  scroll-margin-top: 88px;
  background-color: var(--navy);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  background-color: var(--gunmetal);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 44px rgba(23, 133, 130, 0.4);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  font-size: 1.125rem;
  color: var(--silver);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.stat-number {
  color: var(--turquoise);
  font-size: 2.5rem;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-story {
  position: relative;
  display: inline-block;
  height: 52px;
  margin-top: 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 4px; /* Explicit request: max 4px border-radius */
  background-color: #fff;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.about-story:hover,
.about-story:focus-visible {
  animation: btn-squish .5s cubic-bezier(.35,0,.25,1);
}

.about-story:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
}

.about-story:active {
  transform: scale(.98);
}

.about-story-face {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px 0 24px;
  white-space: nowrap;
  box-sizing: border-box;
}

.about-story-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 20px;
}

.about-story-badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-story-arrow {
  width: 20px;
  height: 20px;
}

/* rest face: white bg, navy text, navy badge, white arrow — in-flow, sizes the button */
.about-story-face--rest {
  position: relative;
  z-index: 1;
  background-color: #fff;
}
.about-story-face--rest .about-story-label { color: var(--navy); }
.about-story-face--rest .about-story-badge { background-color: var(--navy); }
.about-story-face--rest .about-story-arrow path,
.about-story-face--rest .about-story-arrow line { stroke: #fff; }

/* hover face: teal bg, white text, badge blends into the teal bg (disappears),
   bare white arrow matching the white label — same wipe/disappearing-badge
   mechanic as the CTA band button, just with rest/hover colors swapped so
   this one starts white against the dark About section instead of teal. */
.about-story-face--hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--turquoise);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.766,-.308,0,.341);
}
.about-story-face--hover .about-story-label { color: #fff; }
.about-story-face--hover .about-story-badge { background-color: var(--turquoise); }
.about-story-face--hover .about-story-arrow path,
.about-story-face--hover .about-story-arrow line { stroke: #fff; }

.about-story:hover .about-story-face--hover,
.about-story:focus-visible .about-story-face--hover {
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.766,-.308,0,.341);
}

@media (prefers-reduced-motion: reduce) {
  .about-story,
  .about-story-face--hover {
    transition: none !important;
  }
  .about-story,
  .about-story:hover,
  .about-story:focus-visible {
    animation: none !important;
  }
}

/* 9. Testimonials */
.testimonials {
  scroll-margin-top: 88px;
  background-color: var(--offwhite);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.testimonials .section-header {
  margin-bottom: 1.0625rem;
}

.testimonials .section-label {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1380px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.testimonial-card:hover {
  transform: scale(1.08);
  position: relative;
  z-index: 1;
}

.quote-mark {
  color: var(--turquoise);
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  margin-bottom: -1.5rem;
}

.testimonial-text {
  font-size: 1.125rem;
  color: var(--navy);
  font-style: italic;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  color: var(--turquoise);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 10. CTA Band */
.cta-band {
  background-color: var(--offwhite);
  padding: 3rem 0 4rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05); /* Separator to prevent blending with same color blocks */
}

.cta-headline {
  color: var(--navy);
  font-size: 3.5rem;
  font-family: var(--font-heading);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.cta-quote {
  position: relative;
  display: inline-block;
  height: 64px;
  border: 2px solid var(--turquoise);
  border-radius: 4px; /* Explicit request: max 4px border-radius */
  background-color: var(--turquoise); /* fills the rounded corners the square rest face can't reach */
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 3.5rem;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .4s cubic-bezier(.766,-.308,0,.341);
}

.cta-quote:hover,
.cta-quote:focus-visible {
  border-color: var(--navy);
  animation: btn-squish .5s cubic-bezier(.35,0,.25,1);
}

.cta-quote:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.cta-quote:active {
  transform: scale(.98);
}

.cta-quote-face {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px 0 32px;
  white-space: nowrap;
  box-sizing: border-box;
}

.cta-quote-label {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 28px;
}

.cta-quote-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-quote-arrow {
  width: 26px;
  height: 26px;
}

/* rest face: teal bg, white text/badge, teal arrow — in-flow, sizes the button */
.cta-quote-face--rest {
  position: relative;
  z-index: 1;
  background-color: var(--turquoise);
}
.cta-quote-face--rest .cta-quote-label { color: #fff; }
.cta-quote-face--rest .cta-quote-badge { background-color: #fff; }
.cta-quote-face--rest .cta-quote-arrow path,
.cta-quote-face--rest .cta-quote-arrow line { stroke: var(--turquoise); }

/* hover face: white bg, navy text, badge blends into the white bg (disappears),
   bare navy arrow matching the navy label — same wipe/disappearing-badge
   mechanic as the "See Our Story" button, recolored to brand navy. */
.cta-quote-face--hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #fff;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.766,-.308,0,.341);
}
.cta-quote-face--hover .cta-quote-label { color: var(--navy); }
.cta-quote-face--hover .cta-quote-badge { background-color: #fff; }
.cta-quote-face--hover .cta-quote-arrow path,
.cta-quote-face--hover .cta-quote-arrow line { stroke: var(--navy); }

.cta-quote:hover .cta-quote-face--hover,
.cta-quote:focus-visible .cta-quote-face--hover {
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.766,-.308,0,.341);
}

@media (prefers-reduced-motion: reduce) {
  .cta-quote,
  .cta-quote-face--hover {
    transition: none !important;
  }
  .cta-quote,
  .cta-quote:hover,
  .cta-quote:focus-visible {
    animation: none !important;
  }
}

.cta-contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--navy);
  font-size: 1.125rem;
}

/* 11. Footer */
.footer {
  background-color: var(--navy);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--silver);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo img { width: 250px; height: auto; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-left: 6rem;
}

.footer-nav a {
  font-family: var(--font-body);
  color: #fff;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-nav a:hover {
  color: var(--turquoise);
}

.footer-socials {
  display: none;
  gap: 1rem;
}

.footer-info-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-left: auto;
}

.footer-map {
  width: 300px;
  height: 240px;
  border: 2px solid var(--turquoise);
  border-radius: 4px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-details {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.footer-address {
  margin-top: 0;
}

.footer-phone {
  margin-top: 0.5rem;
}

.footer-hours {
  margin-top: 1rem;
}

.footer-email {
  margin-top: 1rem;
}

.footer-details a {
  color: #fff;
}

.footer-details a:hover {
  color: var(--turquoise);
}

.footer-socials .icon {
  width: 30px;
  height: 30px;
  color: var(--silver);
  transition: color 0.3s ease;
}

.footer-socials a:hover .icon {
  color: var(--turquoise);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--silver);
  font-size: 0.8rem;
}

/* Base Responsive */
@media (max-width: 900px) {
  .work {
    padding: 0;
  }
  .intro-headline {
    font-size: 2.25rem;
  }
  .intro {
    padding: 2rem 2rem 3rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .service-card-content {
    text-align: center;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    scroll-margin-top: 88px;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .section-headline {
    font-size: 2rem;
  }
  .about .section-label {
    font-size: 1.5rem;
    margin-bottom: 1.5rem !important;
  }
  .about-stats {
    margin-bottom: 1.5rem;
  }
  .about-story,
  .about-story:hover,
  .about-story:focus-visible {
    animation: none;
  }
  .about-story-face--hover {
    display: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cta-headline {
    font-size: 2.5rem;
  }
  .cta-contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cta-divider {
    display: none;
  }
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
    width: 100%;
  }
  .footer-logo img {
    width: 188px;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }
  .footer-info-block {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }
  .footer-map {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-contact {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem 2rem;
    background-color: var(--navy);
    box-shadow: 0 12px 12px rgba(0, 0, 0, var(--nav-shadow-opacity));
    transform: none;
  }
  .navbar.menu-open .nav-links {
    display: flex;
  }
  .nav-link-contact {
    display: block;
  }
}

/* 12. Contact Page */
.contact-page {
  background-color: var(--navy);
  padding-top: 10rem;
}

.contact-page .container {
  max-width: 1024px;
}

.contact-headline {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  animation: contact-headline-in 0.8s ease both;
}

@keyframes contact-headline-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-headline {
    animation: none;
  }
}

.contact-columns {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 1rem;
}

.contact-photo {
  width: 420px;
  max-width: 100%;
  border: 2px solid var(--turquoise);
  aspect-ratio: 728/911;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field {
  margin-bottom: 1.5rem;
}

.contact-field label {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.required-hint {
  color: var(--turquoise);
  font-size: 0.8125rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background-color: #fff;
}

.contact-field textarea {
  resize: vertical;
}

.contact-submit {
  display: block;
  margin: 0 auto;
  background-color: var(--turquoise);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-submit:hover {
  background-color: #126d6b;
}

.contact-form-message {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .contact-page {
    padding-top: 8rem;
  }
  .contact-headline {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
  .contact-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .contact-photo {
    margin: 0 auto;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* History / Our Story timeline page */
.history {
  background-color: var(--navy);
  padding-top: 8rem;
}

.history-container {
  max-width: 900px;
  padding: 4.75rem 2rem 7rem;
}

.history-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 2.75rem;
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.2;
}

.history-break {
  display: none;
}

.history-title-connector {
  position: relative;
  height: 14px;
}

.history-title-connector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  right: 0;
  height: 14px;
  border-top: 3px dashed var(--turquoise);
  border-left: 3px dashed var(--turquoise);
}

.history-era {
  display: flex;
  position: relative;
}

.history-rail {
  width: 44px;
  position: relative;
  flex: none;
}

.history-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 0;
  border-left: 3px dashed var(--turquoise);
}

.history-era--last .history-rail::before {
  bottom: auto;
  height: calc(100% + 100px);
}

.history-marker {
  position: absolute;
  top: 6px;
  left: 2px;
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--turquoise);
  background: var(--navy);
  transform: translate(-50%, 0) rotate(45deg);
}

.history-leader {
  position: absolute;
  top: 11px;
  left: calc(2px + 6px);
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--turquoise);
}

.history-cap {
  position: absolute;
  bottom: -103px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--turquoise);
  transform: translateX(-50%);
}

.history-content {
  flex: 1;
  padding: 0 0 2.75rem;
}

.history-era--last .history-content {
  padding-bottom: 0;
}

.history-era--last .history-row {
  margin-top: 32px;
}

.history-era--2006 .history-content {
  padding-bottom: 16px;
}

.history-era--first .history-content {
  padding-top: 76px;
}

.history-era--first .history-marker {
  top: calc(6px + 76px);
}

.history-era--first .history-leader {
  top: calc(11px + 76px);
}

.history-era--first .history-year {
  margin-bottom: -28px;
}

.history-year {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  padding-left: 0.375rem;
}

.history-row {
  display: flex;
  gap: 2.75rem;
  align-items: center;
  margin-bottom: 3.25rem;
}

.history-row:last-child {
  margin-bottom: 0;
}

.history-row--photo-only {
  justify-content: center;
}

.history-text {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--offwhite);
  margin: 0;
}

.history-text--full {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.history-text--full:not(.history-closing) {
  padding-top: 28px;
}

.history-closing {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 2.75rem;
  margin-left: 44px;
}

.history-text--full:last-child {
  margin-bottom: 0;
}

.history-photo {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
  background: var(--offwhite);
  padding: 4px;
  border: 1.5px solid var(--turquoise);
  box-shadow: 0 16px 32px rgba(23, 133, 130, 0.25);
}

.history-photo--solo {
  max-width: 320px;
}

.history-photo::before,
.history-photo::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
}

.history-photo::before {
  top: -1.5px;
  left: -1.5px;
  border-top: 2px solid var(--turquoise);
  border-left: 2px solid var(--turquoise);
}

.history-photo::after {
  bottom: -1.5px;
  right: -1.5px;
  border-bottom: 2px solid var(--turquoise);
  border-right: 2px solid var(--turquoise);
}

.history-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .history {
    padding-top: 5.5rem;
  }

  .history-container {
    padding: 2.5rem 1.25rem 5rem;
  }

  .history-title {
    font-size: 2rem;
  }

  .history-break {
    display: inline;
  }

  .history-title-connector::before {
    left: 12px;
    border-top-width: 2px;
    border-left-width: 2px;
  }

  .history-era {
    gap: 1.25rem;
  }

  .history-rail {
    width: 24px;
  }

  .history-rail::before {
    left: 50%;
    transform: translateX(-50%);
    border-left-width: 2px;
  }

  .history-marker {
    top: 2px;
    left: 50%;
    width: 9px;
    height: 9px;
  }

  .history-leader {
    top: 6px;
    left: calc(50% + 5px);
    width: 14px;
  }

  .history-year {
    font-size: 1.25rem;
    padding-left: 0;
  }

  .history-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 4rem;
  }

  .history-row .history-photo {
    order: -1;
    flex-basis: auto;
    max-width: 100%;
  }

  .history-text {
    flex-basis: auto;
  }

  .history-era--first .history-content {
    padding-top: 20px;
  }

  .history-era--first .history-marker {
    top: 22px;
  }

  .history-era--first .history-leader {
    top: 26px;
  }

  .history-era--first .history-year {
    margin-bottom: 1.25rem;
  }

  .history-photo--solo {
    max-width: 100%;
  }

  .history-era--last .history-rail::before {
    height: calc(100% + 320px);
  }

  .history-cap {
    bottom: -323px;
  }
}
