/*
 * Stylesheet for the Groundline Cleaning & Hospitality Services website
 * Designed to be responsive, modern and engaging.
 */

/* CSS variables for easy colour management */
:root {
    --primary-color: #007B8A; /* teal-ish blue used for primary actions */
    --secondary-color: #00A99D; /* complementary green accent */
    --dark-color: #1A1A1A; /* dark text / backgrounds */
    --light-color: #F8F9FA; /* very light background */
    --grey-color: #6C757D; /* grey for secondary text */
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Utility container to center content */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Header styles */
.site-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #e2e2e2;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}
.logo {
    height: 78px;
    width: auto;
}
@media (max-width: 640px){
  .logo{height:60px;}
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    padding-bottom: 0.25rem;
    position: relative;
}
.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}
.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero section */
.hero-section {
    position: relative;
    margin-bottom: 2rem;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 60vh;
    min-height: 350px;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darken the hero image more so overlay text stands out */
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn.primary {
    background-color: var(--primary-color);
    color: white;
}
.btn.primary:hover {
    background-color: #006B78; /* Slightly darker than primary */
}
.btn.secondary {
    background-color: var(--secondary-color);
    color: white;
}
.btn.secondary:hover {
    background-color: #009280; /* Slightly darker than secondary */
}

/* Mission & values section */
.mission-values-section {
    padding: 2rem 0;
}
.mission-values-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.mission-values-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.value-item {
    background-color: white;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* fade‑in animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}
.value-item p {
    color: var(--grey-color);
    font-size: 0.95rem;
}

/* CTA section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}
.cta-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.cta-container p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.cta-container .btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}
.cta-container .btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Generic page hero (services/about/contact) */
.page-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.125rem;
}

/* Services page */
.services-category {
    padding: 2.5rem 0;
}
.services-category.alt {
    background-color: #EFF8FA;
}
.services-category h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.category-image {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 350px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.service-item {
    background-color: white;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* fade‑in animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.service-item p {
    color: var(--grey-color);
    font-size: 0.95rem;
}
.specialized-grid .service-item {
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: none;
    border-left: 4px solid var(--primary-color);
}
.specialized-grid .service-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* About page */
.about-overview, .how-we-work, .about-values {
    padding: 2.5rem 0;
}
.about-overview h2, .how-we-work h2, .about-values h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.about-overview p {
    max-width: 900px;
    margin: 0.5rem auto;
    font-size: 1rem;
    color: var(--grey-color);
    text-align: center;
}
.how-we-work ol {
    max-width: 900px;
    margin: 1rem auto;
    padding-left: 1.5rem;
    color: var(--grey-color);
    line-height: 1.5;
}
.how-we-work li {
    margin-bottom: 0.75rem;
}

/* Contact page */
.contact-section {
    padding: 2.5rem 0;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.contact-info {
    flex: 1 1 300px;
}
.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--grey-color);
}
.contact-form-wrapper {
    flex: 1 1 300px;
}
.contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--dark-color);
}
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 138, 0.2);
}
.form-response {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* When items come into view, fade them in */
.service-item.in-view,
.value-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-to-top button */
.scroll-top-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Footer */
.site-footer {
    background-color: #0D3446;
    color: white;
    padding-top: 1.5rem;
    margin-top: 3rem;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-contact p,
.footer-contact a {
    color: #d0e3e9;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.footer-social a {
    color: #d0e3e9;
    margin-right: 1rem;
    font-size: 0.95rem;
}
.footer-social a:hover {
    color: white;
}
.footnote {
    text-align: center;
    color: #a3c2cc;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    .contact-container {
        flex-direction: column;
    }
}


/* ----- Enhanced footer layout ----- */
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
  align-items:start;
}
.footer-grid h3{margin:0 0 10px 0;}
.footer-sitemap ul{list-style:none; padding:0; margin:0;}
.footer-sitemap li{margin:8px 0;}
.map-embed{border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.14);}
.map-embed iframe{width:100%; height:180px; border:0;}
.footer-bottom{padding-top:12px; border-top:1px solid rgba(255,255,255,.12); margin-top:18px;}
@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr; }
  .map-embed iframe{height:220px;}
}

/* ----- Hero motion (Home) ----- */
.hero-image-wrapper{position:relative; overflow:hidden; border-radius:22px;}
.hero-overlay{
  position:absolute; inset:0;
  background: radial-gradient(900px 380px at 20% 30%, rgba(255,255,255,.20), transparent 60%),
              linear-gradient(110deg, rgba(0,0,0,.55), rgba(0,0,0,.18));
  pointer-events:none;
}
.hero-content{position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:14px;}
.hero-content h1{max-width:720px; letter-spacing:.2px;}
.hero-content p{max-width:620px; opacity:.95;}
.hero-badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:8px;}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 0.92rem;
}
.scroll-cue{
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  width:36px; height:56px; border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  display:flex; align-items:flex-start; justify-content:center;
  padding-top:10px;
}
.scroll-cue::after{
  content:"";
  width:6px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.75);
  animation: scrollDot 1.4s infinite ease-in-out;
}
@keyframes scrollDot{
  0%{transform:translateY(0); opacity:1;}
  70%{transform:translateY(18px); opacity:.25;}
  100%{transform:translateY(0); opacity:1;}
}

/* ----- Gallery cards ----- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow:hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.gallery-card:hover{transform: translateY(-4px); border-color: rgba(255,255,255,.22);}
.gallery-card img{width:100%; height:200px; object-fit:cover; display:block;}
.gallery-card .g-body{padding:14px;}
.g-tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.g-tag{
  font-size:.8rem; padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 980px){.gallery-grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){.gallery-grid{grid-template-columns: 1fr;} .gallery-card img{height:220px;} }

/* ----- Form (Manpower Booking) ----- */
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.form-grid .full{grid-column: 1 / -1;}
.field label{display:block; font-weight:600; margin-bottom:6px;}
.field input, .field select, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
}
.field textarea{min-height:120px; resize:vertical;}
.check-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px;}
.check-grid label{font-weight:500; display:flex; gap:8px; align-items:center;}
@media (max-width: 740px){.form-grid{grid-template-columns:1fr;} .check-grid{grid-template-columns: 1fr 1fr;} }

.notice{
  padding: 14px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
