/* ----------- ALL PAGES ----------- */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Lato, Helvetica, sans-serif;
}

body{
line-height:1.6;
color:#333;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

h1,h2,h3{
margin-bottom:15px;
text-transform: uppercase;
}

.section-sub{
font-weight: 100;
margin-bottom:10px;
}

.btn{
background:#1d4ed8;
color:white;
padding:12px 20px;
text-decoration:none;
display:inline-block;
margin-top:15px;
}

.btn.center{
display:block;
width:200px;
text-align:center;
margin:30px auto;
}

/* NAV */

.navbar {
  background: black;
  color: white;
  padding: 20px 0;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows menu to drop below on mobile */
}
.logo img {
  height: 75px;
  width: auto;
}
.navbar nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

/* --- Hamburger: hidden by default on desktop --- */
.nav-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Mobile styles --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* show the hamburger icon */
  }

  .nav-menu {
    display: none; /* hide menu by default */
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  .nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Show menu when checkbox is checked */
  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  /* Animate hamburger → X when open */
  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* FOOTER */

.footer{
background:black;
padding:30px 0;
text-align:center;
}

.footer-links a{
color:white;
margin:0 10px;
text-decoration:none;
}

/* ----------- HOME PAGE ----------- */

/* HERO */

.hero{
background:#000;
color:white;
padding:80px 0;
}

.hero-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
align-items:center;
}

.hero-button {
justify-items:end;
}

.hero-image-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
margin-top:40px;
}

.hero-images{
display:flex;
gap:10px;
}

.hero-images img{
width:100%;
}

/* DESCRIPTION */

.description{
background:#000;
color:white;
padding:0 0 30px 0;
}

/* SERVICES */

.services{
padding:80px 0;
}

.services .section-sub, .services h2 {
text-align: center;
}

.service-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
margin-top:40px;
}

.service{
padding:20px;
}

.icon{
width:80px;
height:80px;
margin:0 auto 15px auto;
}

/* LOCATION */

.location{
background:#e6e9ed;
padding:80px 0;
}

.map-container{
width:100%;
max-width:1235px;
margin:30px auto;
overflow:hidden;
}

.map-container iframe{
width:100%;
height:350px;
border:0;
}

/* PORTFOLIO */

.portfolio{
padding:80px 0;
}

.portfolio-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
margin-top:40px;
}

.portfolio .section-sub, .portfolio h2 {
text-align: center;
}

.project img{
width:100%;
}

/* WHY */

.why{
background:#e8dccb;
padding:80px 0;
}

.why-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
}

.why-img{
margin-top:20px;
justify-items:right;
}

.why-list h3{
margin-top:15px;
}

/* CONTACT SECTION */

.contact{
background:black;
color:white;
padding:80px 0;
}

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.steps h3{
margin-top:15px;
}

.form input,
.form textarea{
width:100%;
padding:12px;
margin-bottom:10px;
border:none;
}

.form textarea{
height:120px;
}

/* ----------- ABOUT PAGE ----------- */

/* HERO */
.about-hero{
background:#e8dccb;
padding:80px 0;
}

.about-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:40px;
}

.about-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
}

.about-grid img{
width:100%;
display:block;
margin-bottom:30px;
}

.about-grid p{
margin-bottom:20px;
}

.about-quote{
text-align:right;
margin-top:20px;
font-style:italic;
}

/* FEATURES */

.about-features{
padding:10px 0;
background:#e8dccb;
}

.feature-line .container hr {
border:none;
border-top:3px solid #000000;
padding:30px 0;
}

.feature-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
padding-bottom: 100px;
}

/* TEAM */

.team{
background:black;
color:white;
padding:80px 0;
}

.team-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
margin-top:40px;
}

.img-placeholder{
height:180px;
background:#777;
margin-bottom:15px;
}

/* PROCESS */

.process{
padding:60px 0;
text-align:center;
}

.process h2{
margin-bottom:50px;
}

.process-step{
display:grid;
grid-template-columns:1fr 2fr 1fr;
gap:40px;
align-items:center;
text-align:left;
margin:40px 0;
}

.step-img{
height:100px;
background:#777;
}

.step-heading h4{
font-size:14px;
color:#777;
margin-bottom:5px;
text-align: center;
}

.step-heading h3{
font-size:20px;
line-height:1.3;
text-align: center;
}

.step-text p{
color:#555;
max-width:400px;
}

.process hr {
border:none;
border-top:3px solid #000000;
margin:30px 0;
}

/* CALL TO ACTION */

.about-cta{
padding:80px 0;
}

.cta-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:center;
}

.cta-grid img{
width:100%;
}

/* ----------- CONTACT PAGE ----------- */

.contact-page{
background:#eee;
padding:80px 0;
}

/* TOP LAYOUT */

.contact-layout{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
}

/* FORM */

.contact-form label{
display:block;
font-size:12px;
margin:10px 0 5px;
}

.contact-form input,
.contact-form textarea{
width:100%;
padding:12px;
margin-bottom:10px;
border:none;
background:#ddd;
}

.contact-form textarea{
height:100px;
}

/* CONTACT PROCESS */

.contact-steps .step{
margin-bottom:30px;
}

/* BOTTOM SECTION */

.contact-bottom{
display:grid;
grid-template-columns:250px 1fr;
gap:40px;
margin-top:60px;
align-items:start;
}

.socials span{
display:inline-block;
width:35px;
height:35px;
background:#222;
color:white;
text-align:center;
line-height:35px;
margin-right:10px;
border-radius:50%;
}

/* MAP */

.contact-map iframe{
width:100%;
height:300px;
border:0;
}

.map-caption{
margin-top:10px;
font-size:14px;
color:#555;
}

/* ----------- RESPONSIVE ----------- */

/* IPAD */

@media(max-width:1024px){

.about-grid,
.team-grid,
.cta-grid{
grid-template-columns:1fr;
}

.feature-grid{
grid-template-columns:1fr 1fr;
}

}

/* MOBILE */

@media(max-width:900px){

.hero-grid,
.why-grid,
.contact-grid,
.portfolio-grid{
grid-template-columns:1fr;
}

.service-grid{
grid-template-columns:1fr 1fr;
}

.process-step{
grid-template-columns:1fr;
text-align:center;
}

.step-text p{
max-width:100%;
}

.contact-layout{
grid-template-columns:1fr;
}

/* Reorder Contact Page Layout */
.contact-left{
order:1;
}

.contact-bottom{
order:2;
grid-template-columns:1fr;
}

.contact-steps{
order:3;
margin-top:40px;
}

}