k/* Global Styles - Carlow Groundworks (JCB Theme) */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222222;
    font-size: 18px;   /* better readability */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Push content below fixed navbar */
main {
    flex: 1;            /* grow to fill space */
    display: block;
    margin-top: 80px;   /* adjust if navbar height changes */
}

/* Headings */
h1 { font-size: 2rem; color: #000000; }
h2 { font-size: 1.5rem; color: #000000; }

/* ================= NAVBAR ================= */
.navbar {
    background-color: #101010;
    padding: 0.8rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;         /* span full width */
    max-width: 1100px;   /* center on desktop */
    margin: auto;
}

.logo img {
    height: 60px;
    display: block;
}

/* Desktop menu */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #FFD500;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffffff;
}

/* Mobile toggle button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #FFD500;
    cursor: pointer;
    margin-left: auto; /* push to right edge */
}

/* Mobile view */
@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 1.6rem; }

    .menu-toggle { display: block; }

    .nav-links {
        display: none;          /* hidden by default */
        flex-direction: column;
        background-color: #101010;
        width: 100%;            /* full width */
        position: absolute;
        top: 100%;              /* drop directly below navbar */
        left: 0;
        padding: 1rem 0;
    }

    .nav-links li {
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid #FFD500;
    }

    .nav-links.show { display: flex; }
}

/* ================ FOOTER ================ */
footer {
    background-color: #000000;
    color: #FFD500;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* ================ BUTTONS ================ */
button, .btn {
    background-color: #FFD500;
    color: #000000;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}
button:hover, .btn:hover {
    background-color: #000000;
    color: #FFD500;
}

/* ================ LAYOUT HELPERS ================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.section { padding: 2rem 0; }

.grid-2 { display:grid; gap:1.25rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ================ CARDS ================ */
.card {
  background: #FFF8CC;              /* light yellow background */
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* subtle shadow */
}

/* ================ FORMS ================ */
form label { display:block; font-weight:bold; margin:0.75rem 0 0.25rem; }
form input, form select, form textarea {
  width:100%; padding:0.75rem; border:1px solid #ccc; border-radius:4px; font-size:1rem;
}
form .row { display:grid; gap:1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 768px) { form .row { grid-template-columns: 1fr; } }
form .actions { margin-top:1rem; }

/* ================ HIGHLIGHT SECTION ================ */
.highlight {
  background-color: #FFD500;
  color: #000000;
  text-align: center;
  padding: 5rem 1rem 3rem;
}
.highlight h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.highlight p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ================= HERO SECTIONS ================= */
.about-hero,
.services-hero,
.projects-hero,
.contact-hero {
  padding: 120px 20px 60px;   /* enough space under navbar */
  text-align: center;
  background: #FFD500;        /* JCB yellow */
  color: #000;                /* black text */
}

/* ================= CTA SECTIONS ================= */
.about-cta {
  text-align: center;
  padding: 50px 20px;
  background: #101010;
  color: #fff;
}

.about-cta h2 {
  color: #FFD500;
  margin-bottom: 1rem;
}

.about-cta a {
  background: #FFD500;
  color: #000;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.about-cta a:hover {
  background: #000;
  color: #FFD500;
}

.home-hero {
  position: relative;
  background: url('../images/hero.jpg') no-repeat center center/cover;
  color: #fff; /* default all text white */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 140px 20px 80px;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2); /* was 0.4, now lighter */
  z-index: 1;
}

.home-hero h1 {
  font-size: 2.5rem;
  color: #FFD500; /* make headline JCB yellow */
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.home-hero p {
  font-size: 1.2rem;
  color: #fff; /* paragraph in white */
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.home-hero .btn {
  background-color: #FFD500;
  color: #000;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.home-hero .btn:hover {
  background-color: #000;
  color: #FFD500;
}


/* Highlighted Quote Button in Navbar */
.nav-links .quote-link {
  background: #FFD500;     /* JCB yellow */
  color: #000;             /* black text */
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .quote-link:hover {
  background: #000;
  color: #FFD500;
}
/* ================= SERVICES PAGE ================= */
.services-hero {
  padding: 100px 20px 60px;
  text-align: center;
  background: #FFD500;
  color: #000;
}

.service {
  padding: 60px 20px;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start; /* text + image align at top */
  max-width: 1100px;
  margin: auto;
}

.service-text {
  flex: 1;
  min-width: 300px;
}

.service-images {
  flex: 1;
  min-width: 250px;
  max-width: 400px;   /* ✅ cap width */
  text-align: center;
}

.service-images img {
  width: 100%;
  height: auto;
  max-height: 250px;  /* ✅ cap height */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}

.service.alt .service-content {
  flex-direction: row-reverse; /* alternate layout */
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }
  .service-images {
    max-width: 100%;
  }
  .service-images img {
    max-height: 200px;
  }
}
.service {
  padding: 60px 20px;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.service:nth-child(even) .service-content {
  flex-direction: row-reverse;
}

/* alternating background stripes */
.service:nth-child(odd) {
  background: #fafafa; /* light grey */
}

.service:nth-child(even) {
  background: #fff6d6; /* light yellow (same as cards) */
}

.service-text, .service-images {
  flex: 1;
  min-width: 300px;
}

.service-images img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* ================= GLOBAL CTA ================= */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #FFD500; /* JCB yellow */
  color: #000;
}

.cta h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px auto; /* center + spacing */
  line-height: 1.6;
}

.cta .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #067236; /* brand green */
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta .btn:hover {
  background: #045829; /* darker green */
}
/* Project images - keep uniform height */
.project-img {
  width: 100%;
  height: 250px;        /* force same height */
  object-fit: cover;    /* crop to fit nicely */
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
