:root {
  --navy: #222653;
  --navy-deep: rgb(6, 23, 44);
  --sky: #c9eaf7;
  --sky-light: #e3f5fc;
  --red: #761112;
  --black: #101820;
  --white: #f8fbfc;
  --line: rgba(16, 43, 78, 0.24);
  --main-font: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0; /* Reset default margin */
  color: var(--black);
  background: var(--white);
  font-family: var(--main-font);
  line-height: 1.5;
}

/* Privacy page styling*/
.privacy {
  font-size: 1.25em; /* Text heavy, so I made it bigger and scrollable*/
  margin-left: auto;
  margin-right: auto;
  max-width: 67%;

}

/* For WebKit browsers */
.privacy::-webkit-scrollbar {
  width: 8px;
}

.privacy::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 4px;
}

.privacy::-webkit-scrollbar-track {
  background: transparent;
  display: none;
}

.privacy h2,
.privacy h3,
.privacy h4,
.privacy h5 {
  color: var(--navy);
}

.privacy h2 {
  text-align: center;
  margin: 0.5em;
  border-bottom: 0.08em solid var(--sky);



}


a {
  color: var(--red);
}

.site-header {
  position: relative;
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  width: 100%;
  height: 300px;
}

.gallery-container{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery {
  position: relative;
  width: 100%;
  height: 300px;
  object-fit: cover;
  animation: rise-in 700ms 120ms ease-out both;
}

.gallery-container::after{
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: '';
  height: 12px;
  /* Gradient overlay at the bottom of the gallery container */
  background: linear-gradient(
    to right,
    var(--navy) 0 33.333%,
    var(--red) 33.333% 66.666%,
    var(--sky) 66.666% 100%
  );
}

.brand {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  text-decoration: none;
  filter:saturate(90%);

}

.brand-mark {
  width: 92px;
  height: 92px;
  background: transparent;
  font-family: var(--main-font);
  margin-left: 11px;
  margin-top: 1px;
}

#adf-insignia {
  position: relative;
  float: right;
  z-index: 3;
  width: 128px;
  height: 76px;
  filter:saturate(90%);
}

.brand-name {
  display: grid;
  font-size: 1rem;
  line-height: 1.15;
}

.brand-name strong {
  color: var(--sky);
  font-weight: 400;
}



.site-nav {
  background: rgba(16, 43, 78, 0.24);
  position: absolute;
  bottom: 1.5rem;
  right: max(1.5rem, calc((100% - 1180px) / 2));
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  gap: 1.8rem;
  font-family: var(--main-font);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}



.site-nav a {
  color: var(--white);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  width: min(1180px, calc(100% - 3rem));
  min-height: 590px;
  margin: 0 auto;
  padding: 5rem 0;
}

.hero-copy {
  max-width: 510px;
  animation: rise-in 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-family: var(--main-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 490px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  letter-spacing: -0.04em;
  font-style: italic;
}

h1 .service-title {
  display: block;
  width: fit-content;
  padding-bottom: 0.12em;
  color: var(--navy);
  border-bottom: 0.08em solid var(--sky);
}

h1 span {
  display: block;
  color: var(--red);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 360px;
  margin: 1.7rem 0 2rem;
  font-size: 1.05rem;
}

.button,
.text-link {
  font-family: var(--main-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  color: var(--white);
  background: var(--red);
}

.button:hover,
.button:focus-visible {
  background: var(--navy);
}


.navy-band,
.red-band,
.sky-blue-band {
  border-top: 1px solid var(--line);
}

/* Navy band styles */
.navy-band {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) 1.2fr;
  gap: 4rem;
  padding: 6rem max(1.5rem, calc((100% - 1180px) / 2));
  background: var(--navy-deep);
}
.navy-band h2{
  color: var(--white);
}

.navy-band .eyebrow {
  color: var(--red)
}

.navy-band p {
  color: var(--white);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.section-copy {
  max-width: 550px;
  font-size: 1.1rem;
}

/* Red band styles */
.red-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem max(1.5rem, calc((100% - 1180px) / 2));
  background: var(--red);
}

.red-band .eyebrow, .red-band a {
  color: var(--white);
}

.red-band a {
  color: var(--navy-deep);
}

/* Sky blue band styles */
.sky-blue-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem max(1.5rem, calc((100% - 1180px) / 2));
  margin-bottom: 5em;  
  background: var(--sky-light);
}

.sky-blue-band h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

form{
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 67%;
  margin: 0 auto;
}

#contact {
  grid-template-columns: 1fr;
}

#contact .hero-copy {
  width: 100%;
  max-width: none;
}

form label {
  font-weight: 700;
}

form input,
form select,
form textarea {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--main-font);
}

form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}

form button:hover,
form button:focus-visible {
  background: var(--navy);
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  color: var(--white);
  background: var(--navy-deep);
  font-family: var(--main-font);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer img{
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0.5em;
}

/* draws a white leading line */
.item-title::before, .item-title::after {
  margin: 20px;
  content: "";
  display: block;
  width: 33%;
  height: 1px;
  background: var(--white);
}

.item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  align-items: baseline;
  margin: 20px;
  text-align: center;
}

.item-content a {
  font-size: 0;
}



.site-footer #logo {
  background-color: var(--white);
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0.5em;
}


.meta-stuff menu{
  display: flex;
  flex-direction: row;
  gap: 3em;
  margin-left: 38%; /* Weird offset due to invisible bullet point */
  list-style: none;
}

.meta-stuff menu a{
  color: var(--white);
}



@keyframes gallery-cycle {
  0%, 60% { opacity: 1; }
  80% , 100%{ opacity: 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .gallery,
  .gallery-slide { animation: none; }
  .gallery-slide:first-child { opacity: 1; }
}