/* =========================================
   SASS VARIABLES
   ========================================= */
/* =========================================
   GLOBAL RESET & CONTAINER
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #666;
  /* Dark background behind container */
  padding: 20px 0; }

#container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #F2EFE8; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  background-color: #2BB3D4;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  /* Combinator: Child Selector (>) */ }
  header > img {
    border: 2px solid black;
    margin-right: 30px;
    max-width: 300px; }
  header h1 {
    font-size: 2.5rem;
    font-weight: bold; }

nav {
  background-color: #0885B1;
  padding: 10px 0;
  text-align: center;
  /* Sass Nesting */ }
  nav ul {
    list-style: none; }
    nav ul li {
      display: inline-block;
      margin: 0 20px; }
      nav ul li a {
        color: #000000;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1rem;
        text-transform: uppercase; }
        nav ul li a:hover {
          color: white; }

/* =========================================
   MAIN CONTENT (CSS GRID)
   ========================================= */
.content-grid {
  display: grid;
  /* Split into two columns: 40% and 60% relative space */
  grid-template-columns: 4fr 6fr;
  gap: 30px;
  padding: 30px;
  /* --- LEFT COLUMN --- */
  /* --- RIGHT COLUMN --- */ }
  .content-grid .left-column {
    /* Inner CSS Grid for small logos */ }
    .content-grid .left-column .hero-img {
      width: 100%;
      border: 2px solid black;
      margin-bottom: 20px; }
    .content-grid .left-column .logo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px; }
      .content-grid .left-column .logo-grid img {
        width: 100%;
        height: 115px;
        border: 2px solid black;
        background-color: white; }
  .content-grid .right-column {
    /* Inner CSS Grid for text columns */
    /* --- CONTACT FORM --- */ }
    .content-grid .right-column h3 {
      text-align: center;
      font-size: 1.1rem;
      margin-bottom: 20px; }
    .content-grid .right-column .text-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      font-size: 0.85rem;
      line-height: 1.4;
      margin-bottom: 20px;
      /* Combinator: Adjacent Sibling (+) */ }
      .content-grid .right-column .text-columns p {
        margin-bottom: 10px; }
      .content-grid .right-column .text-columns p + .tagline {
        margin-top: 20px;
        font-style: italic; }
    .content-grid .right-column .contact-form {
      background-color: #F29C11;
      padding: 20px;
      border: 2px solid black;
      /* CSS Grid for aligning labels and inputs */
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 15px;
      align-items: center;
      /* Attribute Selectors for text and email inputs */ }
      .content-grid .right-column .contact-form h2 {
        grid-column: 1 / -1;
        font-size: 1.2rem;
        margin-bottom: 5px; }
      .content-grid .right-column .contact-form label {
        font-size: 0.9rem;
        font-weight: bold;
        text-align: right;
        padding-right: 10px; }
      .content-grid .right-column .contact-form input[type="text"],
      .content-grid .right-column .contact-form input[type="email"],
      .content-grid .right-column .contact-form textarea {
        width: 100%;
        padding: 10px;
        border: none; }
      .content-grid .right-column .contact-form .button-group {
        grid-column: 2;
        /* Aligns buttons under the inputs */
        display: flex;
        gap: 10px;
        /* Attribute Selectors for buttons */ }
        .content-grid .right-column .contact-form .button-group input[type="submit"],
        .content-grid .right-column .contact-form .button-group input[type="reset"] {
          color: white;
          border: 1px solid white;
          border-radius: 20px;
          padding: 5px 20px;
          font-weight: bold;
          cursor: pointer; }
        .content-grid .right-column .contact-form .button-group input[type="submit"] {
          background-color: #2BB3D4; }
        .content-grid .right-column .contact-form .button-group input[type="reset"] {
          background-color: #E74C3C;
          /* Red background for reset */ }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background-color: #2BB3D4;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center; }
  footer h1 {
    font-size: 2rem;
    font-weight: bold; }
  footer .social-icons img {
    margin-left: 15px;
    width: 35px;
    height: auto; }

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center; }
    header > img {
      margin-right: 0;
      margin-bottom: 15px; }

  nav ul li {
    display: block;
    margin: 15px 0; }

  .content-grid {
    grid-template-columns: 1fr;
    padding: 15px; }
    .content-grid .right-column .text-columns {
      grid-template-columns: 1fr; }
    .content-grid .right-column .contact-form {
      grid-template-columns: 1fr;
      gap: 10px; }
      .content-grid .right-column .contact-form label {
        text-align: left;
        padding-right: 0; }
      .content-grid .right-column .contact-form .button-group {
        grid-column: 1;
        justify-content: center;
        margin-top: 10px; }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px; }
    footer .social-icons img {
      margin: 0 10px; } }
