/* ===========================
   GLOBAL RESET & VARIABLES
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

:root {
  --primary: #0b2c4d;
  --secondary: #097ee4;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}


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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  justify-content: flex-end;
}

nav a {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 8px 32px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

#main-logo {
  height: 10%;
  width: 10%;
}

#main-div {
  display: flex;
}

#logo {
  margin-top: 0.6rem;
}


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

#hero-section {
  position: relative;
  height: 60vh;
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-content: center;
  color: var(--white);
}

#hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: -2;
  width: 100%;
  height: 100%;
}

#hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 77, 0.65);
  z-index: -1;
}

#hero-heading {
  width: 100%;
  font-size: 5vh;
  font-weight: 800;
  margin: 10% 0 0 0;
}

#hero-paragraph {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

#hero-button1,
#hero-button2 {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin: 0 0.5rem;
}

#hero-button1 {
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
}

#hero-button2 {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
}

#hero-button2:hover {
  opacity: 0.8;
}

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

#services-section {
  padding: 4rem 1.5rem;
  background: var(--bg-light);
  text-align: center;
}

#service-id {
  display: grid;
}

#service-text {
  display: grid;
  grid-template-columns: inherit;
  grid-template-columns: repeat(2, 1fr);
}

#service-text #roof-replacement, #roof-repair, #roop-inspection, #maintenance {
  text-align: left;
  background-color: #c6d1db;
  border: 1px;
  border-radius: 10px;
  margin: 1rem 1rem 1rem 1rem;
  padding: 0.75rem 0.5rem 0.5rem 1rem;
}

#service-text div h3 {
  margin-bottom: 0.6rem;
}

#services-heading {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

#services-paragraph {
  color: var(--text-light);
  margin-bottom: 3rem;
}

#services-section button {
  background: var(--white);
  border: none;
  border-radius: 10px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
  margin: 10% 5% 0% 5%;
}

#services-section {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card .more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-card.active .more {
  max-height: 200px; /* enough for text */
}

.service-card:hover {
  transform: translateY(-4px);
}


/* ===========================
   ABOUT SECTION
=========================== */

#about-section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: auto;
  gap: 2rem;
}

#about-section h4 {
  margin-bottom: 0.3rem;
}

#about-section p {
  color: var(--text-light);
}

#about-main {
  display: grid;
  justify-content: center;
  text-align: center;
}

#about-heading1 {
  font-size: 2.5rem;
}

#about-text {
  display: grid;
  grid-template-columns: repeat(2 , 1fr);
  grid-template-rows: repeat(2, 1fr);
  margin-top: 2.5%;
}

#about-text h4 {
  text-align: right;
  margin: 2.5% 15% 2.5% 0%;
}

#about-text p {
  text-align: left;
  margin: 2.5% 15% 2.5% 0%;
}

/* ===========================
   QUALITY SECTION
=========================== */

#quality-section {
  position: relative;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

#second-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: -2;
  height: 100%;
}

#quality-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

#quality-heading {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

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

#contact-section {
  padding: 4rem 1.5rem;
  background: var(--bg-light);
  max-width: 700px;
  margin: auto;
}

#contact-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

#contact-paragraph {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input {
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
}

#submit {
  margin-top: 1rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

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

footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

footer a {
  color: var(--white);
  text-decoration: none;
  text-align: center;
}

#footer-mail {
  margin: 0 0 0 4rem;
}

#footer-address {
  margin: 0 0 0 3rem;
}

h6 {
  font-size: 1.5rem;
}

#footer-paragraph2 {
  margin: 0.5rem 0 0 0;
  text-align: center;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  #hero-section {
    height: 75vh;
    padding: 1rem;
  }

  #about-text {
    font-size: 60%;
  }

  #about-text p {
    margin-top: 0.8rem;
  }

  #quality-heading {
    font-size: 150%;
  }

  #quality-paragraph {
    font-size: 75%;
  }

  #nav-links a {
    font-size: 80%;
    font-weight: 600;
  }

  #main-logo {
    width: 12%;
    height: 12%;
  }

}

@media (max-width: 480px) {
  #hero-heading {
    font-size: 2rem;
  }

  #hero-button1,
  #hero-button2 {
    display: block;
    margin: 0.5rem auto;
    width: 90%;
  }

  #main-logo {
    width: 33%;
    height: 33%;
  }

  #navbar {
    padding-left: 0;
  }

  #logo {
    margin-top: 0.85rem;
  }

}

@media (min-width: 768px) {
  #logo {
    margin-top: 1rem;
  }
}