/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #020817;
  color: white;
}


/* =========================
   HEADER
========================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 25px 7%;

  background: #06142e;
  border-bottom: 2px solid #ff2038;

  position: relative;
  z-index: 100;
}

header h1 {
  margin: 0;
  letter-spacing: 3px;
}

header h1 span {
  color: #ff2038;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 15px;

  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff2038;
}

header > a {
  color: white;
  text-decoration: none;

  border: 1px solid #ff2038;
  padding: 12px 20px;

  transition: all 0.3s ease;
}

header > a:hover {
  background: #ff2038;
  color: white;
}


/* =========================
   GENERAL SECTIONS
========================= */

section {
  position: relative;

  padding: 100px 10%;

  overflow: hidden;
}


/* =========================
   BACKGROUND IMAGE
========================= */

/*
   The photo fills the entire section
   and sits behind the overlay/content.
*/

.background-image {
  position: absolute;

  inset: -15px;

  width: calc(100% + 30px);
  height: calc(100% + 30px);

  object-fit: cover;
  object-position: center;

  z-index: 0;

  transform: scale(1);

  transition:
    transform 0.8s ease,
    filter 0.8s ease;
}


/* =========================
   IMAGE OVERLAY
========================= */

/*
   Dark layer between the photo
   and the section content.
*/

.image-overlay {
  position: absolute;

  inset: 0;

  background: rgba(2, 8, 23, 0.75);

  z-index: 1;

  transition:
    background 0.5s ease;
}


/* =========================
   SECTION CONTENT
========================= */

.section-content {
  position: relative;

  z-index: 2;
}

section h2 {
  font-size: 45px;
}

section p {
  color: #b9c6da;
  line-height: 1.7;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 650px;

  padding: 100px 10%;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Hero background */

.hero .background-image {
  object-position: center;
}


/* Hero overlay */

.hero .image-overlay {
  background: rgba(2, 8, 23, 0.60);
}


/* Hero hover */

.hero:hover .background-image {
  transform: scale(1.04);

  filter:
    brightness(1.08)
    saturate(1.1);
}

.hero:hover .image-overlay {
  background: rgba(2, 8, 23, 0.52);
}


.hero h2 {
  margin: 0;

  font-size: 90px;

  line-height: 0.9;
}

.hero h2 span {
  color: #ff2038;

  text-shadow:
    0 0 25px #ff2038;
}

.hero p {
  max-width: 500px;

  font-size: 20px;

  color: #b9c6da;

  line-height: 1.6;
}


/* =========================
   BUTTON
========================= */

.button {
  display: inline-block;

  width: fit-content;

  padding: 16px 30px;

  margin-top: 20px;

  background: #ff2038;

  color: white;

  text-decoration: none;

  font-weight: bold;

  box-shadow:
    0 0 25px #ff2038;

  transition: all 0.3s ease;
}

.button:hover {
  background: white;

  color: #020817;

  transform: translateY(-2px);
}


/* =========================
   ABOUT US
========================= */

#about {
  min-height: 500px;
}


/* About background */

#about .background-image {
  object-position: center;
}


/* About overlay */

#about .image-overlay {
  background: rgba(2, 8, 23, 0.65);
}


/* About hover */

#about:hover .background-image {
  transform: scale(1.05);

  filter:
    brightness(1.1)
    saturate(1.12);
}

#about:hover .image-overlay {
  background: rgba(2, 8, 23, 0.52);
}


/* =========================
   SERVICES
========================= */

#services {
  min-height: 600px;
}


/* Services background */

#services .background-image {
  object-position: center;
}


/* Services overlay */

#services .image-overlay {
  background: rgba(6, 20, 46, 0.68);
}


/* Services hover */

#services:hover .background-image {
  transform: scale(1.04);

  filter:
    brightness(1.08)
    saturate(1.1);
}

#services:hover .image-overlay {
  background: rgba(6, 20, 46, 0.55);
}


/* =========================
   SERVICE CARDS
========================= */

.cards {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 25px;
}

article {
  padding: 35px;

  background:
    rgba(11, 35, 71, 0.84);

  border:
    1px solid #1d4c7d;

  border-radius: 8px;

  backdrop-filter: blur(4px);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

article:hover {
  border-color: #ff2038;

  background:
    rgba(11, 35, 71, 0.72);

  box-shadow:
    0 0 25px
    rgba(255, 32, 56, 0.35);

  transform:
    translateY(-6px);
}

article h3 {
  color: #ff2038;

  font-size: 25px;
}


/* =========================
   LOCATIONS
========================= */

#locations {
  min-height: 500px;
}


/* Locations background */

#locations .background-image {
  object-position: center;
}


/* Locations overlay */

#locations .image-overlay {
  background: rgba(2, 8, 23, 0.78);
}


/* Locations hover */

#locations:hover .background-image {
  transform: scale(1.04);

  filter:
    brightness(1.08)
    saturate(1.08);
}

#locations:hover .image-overlay {
  background: rgba(2, 8, 23, 0.68);
}


/* =========================
   HOURS
========================= */
.hours-section {
  background: #111827;
  color: #fff;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
}

.hours-header {
  margin-bottom: 25px;
}

.hours-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.hours-header p {
  margin: 6px 0 0;
  color: #9ca3af;
}

.hours-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.hours-day {
  flex: 1;
  min-width: 125px;
  padding: 18px 15px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 14px;
  text-align: center;
  transition: all 0.25s ease;
}

.hours-day:hover {
  transform: translateY(-5px);
  background: #2563eb;
  border-color: #60a5fa;
}

.hours-day span {
  display: block;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 8px;
}

.hours-day strong {
  font-size: 15px;
}

.hours-day:hover span {
  color: #dbeafe;
}

.hours-day.closed {
  opacity: 0.65;
}

@media (max-width: 700px) {
  .hours-section {
    padding: 25px 20px;
  }

  .hours-list {
    overflow-x: auto;
  }

  .hours-day {
    flex: 0 0 125px;
  }
}


/* =========================
   CONTACT
========================= */

.contact {
  min-height: 450px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;
}


/* Contact background */

.contact .background-image {
  object-position: center;
}


/* Contact overlay */

.contact .image-overlay {
  background:
    rgba(255, 32, 56, 0.68);
}


/* Contact hover */

.contact:hover .background-image {
  transform: scale(1.05);

  filter:
    brightness(1.08)
    saturate(1.1);
}

.contact:hover .image-overlay {
  background:
    rgba(255, 32, 56, 0.58);
}


.contact p {
  color: white;
}

.contact .button {
  background: #020817;

  box-shadow:
    0 0 20px
    rgba(0, 0, 0, 0.5);
}

.contact .button:hover {
  background: white;

  color: #020817;
}



/* =========================
   FOOTER
========================= */

footer {
  background: #111827;
  color: #ffffff;
  padding: 55px 50px 35px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}


/* =========================
   FOOTER BRAND
========================= */

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-info h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-info h2 span {
  font-weight: 400;
}

.footer-info p {
  margin: 5px 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}


/* =========================
   LOGO
========================= */

.footer-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;

  opacity: 0.55;
  filter: grayscale(100%);

  flex-shrink: 0;
}




/* Put logo beside the footer text */
.footer-info {
  position: relative;
  padding-left: 70px;
}

.footer-info .footer-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}


/* =========================
   CEO
========================= */

.footer-ceo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-ceo img {
  width: 65px;
  height: 65px;

  object-fit: cover;
  border-radius: 50%;

  display: block;
}

.footer-ceo h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.footer-ceo p {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  footer {
    padding: 40px 25px 30px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer-info {
    padding-left: 60px;
  }

  .footer-logo {
    width: 45px;
    height: 45px;
  }

  .footer-ceo img {
    width: 55px;
    height: 55px;
  }
}

/* =========================
   CEO
========================= */

.footer-ceo {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 12px 18px;

  background: #06142e;

  border: 1px solid #1d4c7d;

  border-radius: 8px;
}


/* CEO PHOTO */

.footer-ceo img {
  width: 75px;
  height: 75px;

  object-fit: cover;

  border-radius: 50%;

  border: 2px solid #1d4c7d;

  box-shadow:
    0 0 15px rgba(29, 76, 125, 0.7);
}


/* CEO NAME */

.footer-ceo h3 {
  margin: 0 0 6px;

  color: white;

  font-size: 20px;
}


/* CEO TITLE */

.footer-ceo p {
  margin: 0;

  color: #78879e;

  font-size: 14px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .footer-logo {
    width: 75px;
    height: 75px;
  }
}



/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .background-image,
  .image-overlay,
  article,
  .button,
  nav a {
    transition: none;
  }

  section:hover .background-image {
    transform: none;
    filter: none;
  }
}