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:#fff;
  border:1px solid #eee;
  padding:1rem;
  border-radius:6px;
}

/* ================ 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 ================= */
.home-hero {
  background: #FFD500;        /* JCB yellow */
  color: #000;
  text-align: center;
  padding: 140px 20px 80px;   /* extra top padding for navbar + breathing room */
}

.home-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.home-hero .btn {
  font-size: 1.1rem;
}
/* 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;
}
