:root {
  --primary: #dc6927;
  --grey: #605d5c;
  --white: #ffffff;
  --text: #111111;

  --font-heading: 'Source Sans 3', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900; /* Black */
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 110px;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);

}

body {
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 100px;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 100px;
}

.logo {
  margin-left: -1rem; /* cancels out container padding */
}


.logo a {
  display: inline-block;
}

.logo-img {
  height: 70px;
  width: auto;
}

.logo-outer {
  padding-left: 0;
  margin-left: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1500;
}


#nav-menu {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

#nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  padding: 8rem 1rem 6rem;
  background: url('images/hero-image.jpg') center / cover no-repeat;
  color: #fff;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 0.1rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  max-width: 100%;
}

.hero-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
}

.hero-slogan {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 700px;
  text-align: center;
}

.cta-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  align-self: flex-start;
  margin-left: 3rem;
  margin-top: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #b3521f;
}

@media (max-width: 600px) {
  .hero {
    padding: 6rem 1rem 4rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero-slogan {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero .hero-content {
    align-items: flex-end; /* moves content to the right */
    text-align: right;     /* right-align text */
  }

  .cta-btn {
    margin-left: 0;       /* remove extra left margin */
  }
}


/* GENERAL HEADINGS */
h2 {
  font-size: 1.5rem;
}

section h3 {
  margin-bottom: 1rem;
}

/* SECTIONS */
section {
  padding: 4rem 1rem;
}

#about {
  background-color: #f2f2f2;
  border-bottom: 1px solid #ccc;
}

#services {
  background-color: #ddd;
  border-bottom: 1px solid #ccc;
}

/* CONTACT */
.contact-section {
  background-color: #000;
  color: #f4f4f4;
  padding: 3rem 1rem;
}

.contact-section h3 {
  color: var(--primary);
}

.contact-section a {
  color: var(--primary);
  text-decoration: none;
}

.contact-section a:hover {
  color: #ff8c00;
}

.contact-section p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-flex {
  display: flex;
  flex-direction: column; /* stacked on mobile */
  gap: 2rem;
}

.contact-info, .map-container {
  flex: 1;
}

/* Make map and contact info side-by-side on larger screens */
@media (min-width: 768px) {
  .contact-flex {
    flex-direction: row;
    align-items: flex-start;
  }

  .map-container {
    height: 300px; /* same height as contact info roughly */
  }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .map-container {
    height: 250px;
  }
}


.email-icon {
  color: var(--primary);
  margin-right: 0.5rem;
}

.whatsapp-icon {
  color: #25D366;
  margin-right: 0.5rem;
}

/* FOOTER */
footer {
  background-color: #fff;
  border-top: 1px solid #ccc;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-media {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.social-media a img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
  display: block;
}

.social-media a.instagram img {
  width: 43.2px;
  height: 43.2px;
  transform: scale(1);
}

.social-media a.facebook:hover img,
.social-media a.instagram:hover img {
  transform: scale(1.2);
}

/* FLEX LAYOUT */
.flex-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .flex-layout {
    flex-direction: row;
    align-items: center;
  }

  .flex-layout img {
    flex: 1 1 40%;
    max-width: 400px;
  }

  .flex-layout div {
    flex: 1 1 60%;
  }
}

/* SERVICES LIST */
ul.service-list {
  list-style: none;
  padding-left: 1rem;
}

ul.service-list li::before {
  content: "\2714";
  color: var(--primary);
  margin-right: 0.5rem;
}

/* MOBILE NAVIGATION */
@media (max-width: 767px) {

  .container.header-grid {
    justify-content: space-between; /* logo left, hamburger right */
    align-items: center;
  }

  /* Off-canvas nav — keep it in the DOM and push offscreen */
  #nav-menu {
    display: flex;               /* important: keep it present (not display:none) */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -260px;               /* hidden off-screen */
    height: 100vh;
    width: 250px;
    background-color: #fff;
    padding-top: 4rem;           /* room for header */
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.15);
    transition: right 0.28s ease;
    z-index: 2000;
    pointer-events: auto;
  }

  /* Slide-in state */
  #nav-menu.active {
    right: 0;
  }

  #nav-menu a {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #ddd;
    color: #333;
  }

  /* Hamburger on the right — make sure it's on top and clickable */
  .menu-toggle {
    display: block;
    order: 2; /* ensure hamburger is last item */
    margin-left: auto; /* push to the far right */
    position: relative;
    z-index: 99999; /* very high so it wins click priority */
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Let the absolute logo not block clicks except on the actual <a> (logo) */
  .logo-outer {
    pointer-events: none; /* allow clicks to pass through the logo container */
    z-index: 1500;
  }
  .logo-outer a,
  .logo-outer img {
    pointer-events: auto; /* but keep the logo itself clickable */
  }

  /* Optional overlay class if you later add an overlay element in JS */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    z-index: 1998;
  }
  .nav-overlay.active {
    display: block;
  }
}


@media (min-width: 768px) {
  .services-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* three columns */
    grid-template-rows: auto auto;       /* two rows */
    gap: 1rem;
  }

  /* First two images occupy first row, first two columns */
  .services-images img:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2; /* spans both rows if needed, optional */
  }

  .services-images img:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2; /* spans both rows if needed, optional */
  }

  /* Third column split into two rows */
  .services-images img:nth-child(3) {
    grid-column: 3;
    grid-row: 1; /* top half */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .services-images img:nth-child(4) {
    grid-column: 3;
    grid-row: 2; /* bottom half */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.services-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.services-images img:hover {
  transform: scale(1.05); /* slightly enlarge */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* optional shadow */
}


/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Enlarged image */
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
