:root {
  --primary: #0c1c3f;
  --accent: #ffd700;
  --text: #222;
  --light-bg: #f9f9f9;
  --font: "Segoe UI", Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

/* ===== HEADER ===== */
header {
  background: var(--primary);
  padding: 12px 5%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  height: 55px;
}

/* Desktop nav */
nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: url("images/hero-banner.jpg") center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 140px 20px;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 20px;
  max-width: 760px;
  margin: auto;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 8%;
}

.about,
.services,
.contact {
  max-width: 1200px; /* Increased slightly to accommodate 4 columns */
  margin: auto;
}

section h2 {
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ABOUT IMAGES ===== */
.about-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.about-gallery img {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== SERVICES HEADER ===== */
.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* ===== MOBILE / TABLET DEFAULT (SCROLL MODE) ===== */
.services-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.services-scroll::-webkit-scrollbar {
  height: 8px;
}

.services-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* ===== SERVICE CARD ===== */
.service-card {
  /* Adjusted flex-basis and added max-width for smaller screens */
  flex: 0 0 290px; 
  max-width: 85vw; 
  background: var(--light-bg);
  padding: 16px;
  border-radius: 10px;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  margin-bottom: 12px;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14.5px;
}

/* ===== SERVICE ARROWS (MOBILE/TABLET ONLY) ===== */
.service-arrows {
  display: flex;
  gap: 8px;
}

.service-arrows button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

/* ===== DESKTOP GRID MODE (HARD OVERRIDE) ===== */
@media (min-width: 1025px) {

  .services-scroll {
    display: grid;
    /* Fixed: Changed from 3 to 4 to handle all services in one row */
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    overflow: visible;
  }

  .service-card {
    /* Reset flex properties for grid display */
    width: auto;
    flex: unset;
    max-width: none;
  }

  .service-arrows {
    display: none;
  }
}

/* ===== CONTACT ===== */
.section-divider {
  width: 60%;
  margin: 40px auto;
  border: 0;
  border-top: 1px solid #ddd;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px 5%;
  font-size: 14px;
}

/* ===== MOBILE / TABLET NAV ===== */
@media (max-width: 1024px) {

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 0;
    top: 10px;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary);
    text-align: center;
    margin-top: 10px;
  }

  nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
  }

  nav.show {
    display: flex;
  }

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

  .hero p {
    font-size: 18px;
  }
}
