/* =========================
   GENERAL STYLES
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #102d55;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  scroll-margin-top: 25px;
}

/* HEADER LAYOUT */

.header {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 12px 4%;
  min-height: 145px;
  background-color: #ffffff;
}

/* LOGO */

.logo {
  display: block;
  width: 300px;
  max-width: 100%;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* NAVIGATION */

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.navigation a {
  color: #102d55;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}

.navigation a:hover {
  color: #0878df;
  border-bottom-color: #0878df;
}

/* PHONE AND EMAIL CONTACT BOX */

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background-color: #f4f7fb;
  border: 1px solid #d5dfea;
  border-radius: 10px;
  padding: 16px 20px;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #102d55;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  text-decoration: none;
}

.header-contact a:hover {
  color: #0878df;
}

.contact-icon {
  color: #0878df;
  font-size: 21px;
  width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* HIDE MENU BUTTON ON DESKTOP */

.menu-toggle {
  display: none;
}

/* TABLET AND MOBILE */

@media (max-width: 700px) {
  .header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    min-height: 90px;
    gap: 10px;
  }

  .logo {
    width: 175px;
  }

  .navigation {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 12px 0;
    border-bottom: 1px solid #d8e0e9;
  }

  .header-contact {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-top: 10px;
    background-color: #f4f7fb;
    border-radius: 8px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #082f63;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
  }
}

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

.hero {
  min-height: 510px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(4, 37, 80, 0.96),
      rgba(4, 50, 103, 0.78),
      rgba(4, 50, 103, 0.08)
    ),
    url("images/SunsetHousePaintingScene.png");

  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-content {
  max-width: 680px;
  padding: 65px 5%;
}

.eyebrow {
  margin-bottom: 15px;
  color: #0878df;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.hero h1 span {
  display: block;
  color: #ffb900;
}

.hero-content > p:not(.eyebrow) {
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 16px;
}

.button {
  display: inline-block;
  padding: 15px 25px;
  border: none;
  border-radius: 30px;
  background-color: #ffb900;
  color: #082f63;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background-color: #ffd04a;
  transform: translateY(-2px);
}

/* =========================
   SERVICE HIGHLIGHTS
========================= */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 4%;
  background-color: #ffffff;
}

.highlight {
  padding: 10px 18px;
  text-align: center;
  border-right: 1px solid #d8e0e9;
}

.highlight:last-child {
  border-right: none;
}

.highlight-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
}

.blue {
  background-color: #0878df;
}

.yellow {
  background-color: #ffb900;
}

.green {
  background-color: #279447;
}

.purple {
  background-color: #803cb1;
}

.highlight h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.highlight p {
  color: #365576;
  font-size: 13px;
}

/* =========================
   GENERAL SECTION STYLES
========================= */

.section {
  padding: 80px 7%;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading > p:last-child {
  color: #60738a;
  font-size: 15px;
}

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

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.about-content > p:not(.eyebrow) {
  margin-bottom: 15px;
  color: #60738a;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: #0878df;
  font-size: 14px;
  font-weight: bold;
}

.text-link:hover {
  color: #082f63;
}

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

.services {
  background-color: #f3f7fc;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  padding: 28px 23px;
  background-color: #ffffff;
  border-radius: 8px;
  border-bottom: 4px solid #ffb900;
  box-shadow: 0 5px 20px rgba(8, 47, 99, 0.07);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(8, 47, 99, 0.12);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.service-card p {
  color: #60738a;
  font-size: 14px;
}

/* PROJECT GALLERY */

.gallery {
  background-color: #ffffff;
}

.gallery-grid {
  columns: 3;
  column-gap: 6px;
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* TABLET */

@media (max-width: 900px) {
  .gallery-grid {
    columns: 2;
  }
}

/* BORDER BETWEEN GALLERY AND CONTACT */

.contact {
  border-top: 1px solid #d5dfea;
}

/* =========================
   CONTACT / QUOTE FORM
========================= */

.contact {
  margin: 50px 8%;
  padding: 50px;
  background-color: #f4f7fb;
  border: 1px solid #d5dfea;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(8, 47, 99, 0.06);

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-content {
  max-width: 100%;
  margin-bottom: 0;
}

#quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
  max-width: 1000px;
}

#quote-form h3,
#quote-form .full-width,
#quote-form button,
#quote-form #form-message {
  grid-column: 1 / -1;
}

#quote-form h3 {
  color: #102d55;
  margin-bottom: 5px;
}

#quote-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#quote-form label {
  color: #102d55;
  font-weight: 600;
  font-size: 14px;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #d5dfea;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #ffffff;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
  outline: none;
  border-color: #0878df;
}

#quote-form textarea {
  resize: vertical;
}

#quote-form button {
  justify-self: start;
  margin-top: 5px;
}

#quote-form #form-message {
  margin: 0;
}

/* MOBILE CONTACT FORM */

@media (max-width: 700px) {
  .contact {
    margin: 30px 5%;
    padding: 25px 20px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #quote-form {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */

.footer {
  background-color: #082f63;
  color: #ffffff;
  padding: 20px 5%;
  text-align: center;
}

.footer h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.footer p {
  display: inline-block;
  font-size: 13px;
  color: #e0eaf5;
  margin: 3px 10px;
}

/* MOBILE */

@media (max-width: 700px) {
  #quote-form {
    grid-template-columns: 1fr;
  }

  #quote-form h3,
  #quote-form .full-width,
  #quote-form button,
  #quote-form #form-message {
    grid-column: 1;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .form-message,
  .contact-form button {
    grid-column: auto;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .gallery-grid {
    columns: 2;
    column-gap: 3px;
  }

  .gallery-item {
    margin-bottom: 3px;
  }
}
/* =========================
   MOBILE RESPONSIVENESS
========================= */
.mobile-contact-bar {
    display: none;
}

@media (max-width: 700px) {
  .mobile-contact-bar {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    background-color: #082f63;
    padding: 13px 8px;
    border-radius: 6px;
  }

  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
  }

  .mobile-contact-bar i {
    color: #ffb900;
  }

  .mobile-contact-divider {
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.4);
  }
  .header {
    padding: 12px 18px;
  }

  .logo {
    width: 190px;
  }

  .hero {
    min-height: 460px;
    background-position: 60% center;
  }

  .hero-content {
    padding: 55px 24px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    padding: 25px 12px;
  }

  .highlight {
    padding: 12px 8px;
    border-right: none;
  }

  .highlight:nth-child(odd) {
    border-right: 1px solid #d8e0e9;
  }

  .section {
    padding: 55px 22px;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image img {
    height: 250px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 230px;
  }

  #quote-form {
    padding: 22px;
  }
}
