/*
 * Table of Contents
 * 1. Variables
 * 2. Fonts
 * 3. Base Styles
 * 4. Layout Components
 *   4.1 Contact Bar
 *   4.2 Hero Section
 *   4.3 Sections
 * 5. Footer
 * 6. Additional Accessibility Styles
 */

/* 1. Variables */
:root {
  --primary-color: #001f33;
  --secondary-color: #abb8c3;
  --background-color: #dde3e3;
  --white-color: #fff;
  --black-color: #000;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

/* 2. Fonts */
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Bold";
  src: url("/fonts/Poppins-Bold.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Light";
  src: url("/fonts/Poppins-Light.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Medium";
  src: url("/fonts/Poppins-Medium.ttf");
  font-display: swap;
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("/fonts/Poppins-SemiBold.ttf");
  font-display: swap;
}

@font-face {
  font-family: "NotoSerif";
  src: url("/fonts/NotoSerif.ttf");
  font-display: swap;
}

@font-face {
  font-family: "NotoSerif-Italic";
  src: url("/fonts/NotoSerif-Italic.ttf");
  font-display: swap;
}

/* 3. Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--black-color);
  background: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
}

/* 4. Layout Components */
/* 4.1 Contact Bar */
.contact-bar {
  background: var(--primary-color);
  color: var(--white-color);
  display: flex;
  padding: 10px;
  text-align: center;
  font-family: "Poppins-Light";
  font-size: 0.9rem;
  gap: 5px;
  height: auto;
  flex-direction: column;
  align-items: center;

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
    height: 35px;
    padding-inline: 50px;
  }

  p {
    align-items: center;
    display: flex;
    gap: 10px;

    a {
      color: var(--white-color);
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* 4.2 Hero Section */
.hero {
  height: calc(100vh - 70px);
  background: url("/images/WebRes_24R8127.webp") no-repeat center center / cover;

  @media (min-width: 768px) {
    height: calc(100vh - 35px);
    background-position: center -75px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 50px;
  height: 100%;
}

.logo {
  max-width: 90%;
  padding: 20px;

  @media (min-width: 768px) {
    max-width: 500px;
    padding: 0;
  }
}

.scroll-down {
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  padding: 10px 20px;
  font-size: 1.2rem;
  font-family: "Poppins-SemiBold";
  text-transform: uppercase;
  border-radius: 5px;
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.scroll-down:focus,
.scroll-down:hover {
  background: var(--white-color);
  color: var(--primary-color);
  outline: 2px solid var(--white-color);
}

/* 4.3 Sections */
main {
  margin: 50px 0;

  h1 {
    font-family: "NotoSerif";
    font-weight: 300;
    font-size: 1.75rem;
    text-align: center;
  }

  @media (max-width: 768px) {
    margin: 20px 0;

    h1 {
      font-size: 1.5rem;
    }
  }
}

.container {
  max-width: 100%;
  display: flex;
  margin: 0 auto;
  padding: 0 20px;

  &:nth-of-type(odd) {
    flex-direction: row-reverse;
  }

  & > * {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  @media (min-width: 992px) {
    max-width: 1600px;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    flex-direction: column;

    &:nth-of-type(odd) {
      flex-direction: column;
    }

    & > * {
      width: 100%;
      padding: 10px 0;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    h1 {
      font-size: 1.2rem;
    }
  }
}

.cta {
  margin-top: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  h2 {
    font-family: "Poppins-Light";
    font-weight: 300;
    font-size: 1.5rem;
    text-align: center;

    @media (max-width: 768px) {
      font-size: 1.2rem;
    }
  }

  a {
    color: var(--primary-color);
    font-size: 1.4rem;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }

    @media (max-width: 768px) {
      font-size: 1.1rem;
    }
  }
}

/* 5. Footer */
footer {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 20px;
  text-align: center;
}

/* 6. Additional Accessibility Styles */

/* Improved focus styles for better visibility */
a:focus,
button:focus {
  outline: 3px solid var(--secondary-color);
}
