/* css/style.css */
:root {
  --primary-color: #2b2d42;
  --secondary-color: #8d99ae;
  --accent-color: #ef233c;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Add this line to prevent horizontal scrolling */
}

main { flex: 1; padding: 0 5% 2rem 5%; width: 100%; }

.clear { 
  background-image: url("../assets/background1.jpg");
  background-repeat: no-repeat;
  width: 100%;
  height: 3rem;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  background-position: 0 -10px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.linebreak {
  display: block;
  margin-left: 30%;
  margin-right: 30%;
  border-top-style: solid;
  border-top-color: #dc472a;
  border-top-width: 2px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Typography */
h1, h2, h3 { color: var(--primary-color); margin-bottom: 1rem; }
.imageTitle { padding-top: 1rem;}
a { text-decoration: none; color: var(--accent-color); }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}
.btn:hover { background-color: #d90429; text-decoration: none; }

.center {
  text-align: center;
  justify-content: center;
  display: block;
  margin-left: 40%;
  margin-right: 40%;
  border-top-style: solid;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* --- Navigation --- */
header { background-color: var(--primary-color); padding: 1rem 5%; color: #fff; }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100% }
.logo a { 
  color: #fff; 
  font-size: 1.5rem; 
  font-weight: bold; 
  text-decoration: none; 
  display: flex;       /* This puts the image and text in a row */
  align-items: center; /* This perfectly centers them vertically */
  gap: 10px;           /* This adds a nice space between the image and the text */
}
.logo-icon {
  height: 50px; /* Keeps the image small and constrained */
  width: auto;  /* Ensures the image doesn't stretch weirdly */
  border-radius: 4px; /* Optional: adds slightly rounded corners to your icon */
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: #fff; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { background: #fff; height: 3px; width: 25px; border-radius: 3px; }

/* --- Footer --- */
footer { background-color: var(--primary-color); color: #fff; padding: 2rem 5%; margin-top: auto; }
.footer-container { display: flex; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 2rem; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { color: #fff; }
.footer-section input { padding: 0.5rem; width: 70%; border: none; border-radius: 4px; }

/* --- Page Specifics --- */
.hero { text-align: center; padding: 0 0 2rem 0 !important; }
.hero img { 
  width: 100vw; 
  max-width: 100vw; 
  margin-left: calc(50% - 50vw); /* Pulls the image outside the container's padding */
  height: 500px; /* Fixed height makes it look like a proper banner */
  object-fit: cover; /* Ensures the image fills the space without stretching or squishing */
  border-radius: 0; /* Removes the rounded corners so it sits flush against the screen edge */
  margin-bottom: 2rem; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.card img { max-width: 100%; border-radius: 4px; margin-bottom: 1rem; }

/* Forms */
form.service-form { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 0 auto; }
form.service-form input, form.service-form select, form.service-form textarea {
  padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-main);
}

/* Responsive (iPad Mini is ~768px) */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 60px; right: 5%; background-color: var(--primary-color);
    padding: 1rem; border-radius: 4px; width: 200px; box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }
  .nav-links.active { display: flex; }
  .footer-container { flex-direction: column; }
  .center {  
    margin-left: 10%;
    margin-right: 10%;
  }
}