﻿
/* =========================================
           CORE VARIABLES & RESET
           ========================================= */
:root {
    --col-light: #8cbcd0; /* Left column */
    --col-med: #3490c2; /* Middle column */
    --col-dark: #225e83; /* Right column */
    --accent-red: #e74c3c;
    --text-dark: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
}

/* =========================================
           HEADER (Same as before)
           ========================================= */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--col-med);
    font-size: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 1.2rem;
    color: #333;
}

    .logo-text strong {
        color: var(--col-med);
    }

.plus {
    color: var(--accent-red);
    font-size: 0.8em;
    vertical-align: top;
}

.desktop-nav a {
    text-decoration: none;
    color: #666;
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

    .desktop-nav a:hover {
        color: var(--col-med);
    }

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: var(--accent-red);
    color: white;
}

    .btn-outline:hover {
        background: #c0392b;
    }

.btn-primary {
    background: var(--col-dark);
    color: white;
    margin-left: 10px;
}

/* =========================================
           HERO SECTION WITH FORM
           ========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    /* High Quality Cat Image */
    background: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text readable but keep image bright */
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Pushes Text left and Form right */
    align-items: center;
    gap: 40px;
}

/* Hero Text Styling */
.hero-text {
    color: white;
    max-width: 550px;
}

.welcome-badge {
    background: var(--col-med);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.contact-snippet {
    border-left: 4px solid var(--accent-red);
    padding-left: 15px;
    margin-top: 20px;
}

    .contact-snippet p {
        font-size: 1.1rem;
        margin-bottom: 5px;
        opacity: 0.9;
    }

.big-phone {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
}

/* CATCHY FORM STYLING */
.booking-card {
    background: rgba(255, 255, 255, 0.95); /* Slight transparency */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-top: 5px solid var(--col-med);
    animation: slideIn 0.8s ease-out;
}

    .booking-card h3 {
        color: var(--col-dark);
        margin-bottom: 5px;
        font-size: 1.5rem;
    }

    .booking-card p {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

.form-group {
    margin-bottom: 15px;
    position: relative;
}

    .form-group i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Space for icon */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

    .form-input:focus {
        border-color: var(--col-med);
        box-shadow: 0 0 0 3px rgba(52, 144, 194, 0.2);
    }

.cf-turnstile {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.btn-book {
    width: 100%;
    padding: 15px;
    background: var(--accent-red);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    animation: pulseBtn 2s infinite;
}

    .btn-book:hover {
        background: #c0392b;
        animation: none;
        transform: scale(1.02);
    }

/* =========================================
           ANIMATED TILES SECTION
           ========================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 450px;
}

.tile {
    position: relative;
    overflow: hidden; /* Keeps image inside */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    cursor: pointer;
}

/* The Background Images */
.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Specific Images for tiles */
.tile-1 .tile-bg {
    background-image: url('https://images.unsplash.com/photo-1605634628795-3647614f1771?q=80&w=800&auto=format&fit=crop');
}
/* Vet */
.tile-2 .tile-bg {
    background-image: url('https://images.unsplash.com/photo-1548802673-380ab8ebc7b7?q=80&w=800&auto=format&fit=crop');
}
/* Happy Cat */
.tile-3 .tile-bg {
    background-image: url('https://images.unsplash.com/photo-1583337130417-3346a1be7dee?q=80&w=800&auto=format&fit=crop');
}
/* Toys/Food */

/* The Colored Overlay */
.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.5s ease;
    opacity: 0.92; /* High opacity normally to hide image */
}

.tile-1 .tile-overlay {
    background-color: var(--col-light);
}

.tile-2 .tile-overlay {
    background-color: var(--col-med);
}

.tile-3 .tile-overlay {
    background-color: var(--col-dark);
}

/* The Content */
.tile-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    transition: transform 0.5s ease;
}

.tile-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    transition: 0.5s;
}

.tile h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* The Hidden Text */
.tile p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Pushed down */
    transition: all 0.5s ease;
    height: 0; /* Takes no space */
    overflow: hidden;
}

/* HOVER EFFECTS */
.tile:hover .tile-bg {
    transform: scale(1.1); /* Zoom effect */
}

.tile:hover .tile-overlay {
    opacity: 0.7; /* Reveal image */
}

.tile:hover .tile-icon {
    transform: scale(0.8) translateY(-20px);
}

.tile:hover p {
    opacity: 1;
    transform: translateY(0);
    height: auto; /* Allow height to expand */
    margin-top: 15px;
}

/* Animations */
@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .booking-card {
        width: 100%;
        max-width: 400px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-snippet {
        border-left: none;
        border-top: 4px solid var(--accent-red);
        padding-top: 15px;
        padding-left: 0;
        display: inline-block;
    }

    .desktop-nav {
        display: none;
    }
}

