html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary: #0a6ebd;   /* Blue from logo */
    --secondary: #5bc0eb; /* Light Blue replacing green */
    --dark: #1f2933;
    --light: #f9fafb;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ---------- HEADER ---------- */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
}

header a {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;
    background: #fff;
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

header a:hover {
    background: var(--secondary);
    color: #fff;
}

/* ---------- SECTIONS ---------- */
section {
    padding: 70px 20px;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary);
}

/* ---------- GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* ---------- CARDS ---------- */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(10, 110, 189, 0.08);
    border-left: 4px solid var(--secondary);
}

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

/* ---------- ABOUT ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about div {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}

.cta h2 {
    margin-bottom: 15px;
}

.cta a {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 35px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta a:hover {
    background: var(--secondary);
}

/* ---------- CONTACT ---------- */
.contact p {
    text-align: center;
    font-size: 17px;
}

footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 3px solid var(--primary);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }

    .about {
        grid-template-columns: 1fr;
    }
}

/* ---------- IMAGE STRIP ---------- */
.image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.image-strip img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ---------- IMAGE SLIDER ---------- */
.slider {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slider img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Desktop: show 2 images */
@media (min-width: 768px) {
    .slider img {
        width: 50%;
    }
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
}

/* Mobile tweak */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }
}

/* ---------- HERO SECTION ---------- */
/* Logo styling */
.hero-logo {
    max-width: 140px;
    margin: 0 auto 20px; /* centers horizontally with bottom spacing */

    /* Eye-shaped cutout */
    clip-path: ellipse(70% 40% at 50% 50%);
    object-fit: cover;
    display: block;

    /* Brand accents */
    border: 3px solid var(--primary);       /* navy blue border */
    box-shadow: 0 4px 15px rgba(15, 157, 143, 0.5); /* cyan glow */
    background: var(--secondary);           /* optional cyan background behind logo */
    padding: 4px;                           /* space between logo and border */
}


/* Button */
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: var(--secondary);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .hero {
        padding: 80px 15px 60px;
    }

    .hero-logo {
        max-width: 110px;
    }
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
    position: relative;
    padding: 30px 20px;
    background: url('gritsLOGO.PNG') center center / 600px no-repeat;
    border-radius: 12px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
}

.services-grid::-webkit-scrollbar {
    width: 8px;
}

.services-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.service-card {
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(10, 110, 189, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-left: 4px solid var(--secondary);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

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

.service-card p {
    font-size: 14px;
    line-height: 1.5;
}

.scroll-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}


/* Track that moves */
.tips-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Tip cards */
.tip-card {
    flex: 0 0 300px; /* fixed width cards */
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tip-card.show {
    opacity: 1;
    transform: translateY(0);
}

.tip-card h4 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 18px;
}

.tip-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* Hover effect */
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .tip-card {
        flex: 0 0 250px;
    }
}
/* ---------- CONTACT SECTION ---------- */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-card {
    flex: 1 1 300px;
    background: #f0f4f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-width: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 769px) {
    .contact-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }
}

.hours-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.contact-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 14px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.contact-card ul {
    list-style: none;
    padding-left: 0;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.contact-note {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .contact-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
        font-size: 16px;
    }

    .hours-card ul {
        font-size: 15px;
    }
}
/* ---------- GALLERY ---------- */
.gallery-container {
    perspective: 1500px;  /* gives 3D effect */
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    height: 400px;
}

.gallery-page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0;
}

.gallery-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-page.show {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
}

.gallery-page.next {
    transform: rotateY(-180deg);
    z-index: 1;
}

.gallery-controls {
    text-align: center;
    margin-top: 15px;
}

.gallery-controls button {
    padding: 10px 20px;
    margin: 0 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.gallery-controls button:hover {
    background: var(--secondary);
}
/* Thin WebKit scrollbar */
.services-grid::-webkit-scrollbar {
    width: 0px;  /* smaller than your current 8px */
}

.services-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 0px;  /* slightly smaller radius to match thinner width */
}

/* Optional: scrollbar track styling */
.services-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);  /* light subtle track */
    border-radius: 0px;
}
