/* =========================================
   STARPET - Index Page Specific Styles
   ========================================= */

/* --- Typography Utilities --- */
.text-center { text-align: center; }
.section-header { margin-bottom: 3.5rem; }
.section-title { font-size: 2.25rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--clr-text-muted); max-width: 600px; margin: 0 auto; }

/* --- Buttons --- */
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1628009368231-7bb7cbcb8122?auto=format&fit=crop&w=2000&q=80'); /* [cite: 12] Placeholder: Vet smiling with dog */
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset for sticky nav */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--clr-primary-navy); /* [cite: 13] */
    opacity: 0.6; /* [cite: 13] */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--clr-bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /*  Mobile: 1 column */
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); } /*  Desktop: 3 columns */
}

.service-card {
    background-color: var(--clr-bg-gray); /* [cite: 297] */
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed); /* [cite: 298] */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px); /* [cite: 298] Lift effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* [cite: 298] */
}

.service-heading {
    color: var(--clr-primary-navy); /* [cite: 297] */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--clr-cta-orange); /* [cite: 299] */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   PET MART PREVIEW
   ========================================= */
.product-flex-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* Allow horizontal scrolling on mobile */
    padding-bottom: 1.5rem; /* Room for scrollbar */
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.product-flex-container::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .product-flex-container { justify-content: space-between; overflow-x: visible; }
}

.product-preview-card {
    background-color: var(--clr-bg-white);
    min-width: 260px; /* Fixed width for horizontal scrolling */
    flex: 1;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
}

.product-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--clr-bg-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-heading);
    color: var(--clr-text-muted);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-container {
    max-width: 800px;
}

.stars {
    color: #FBBF24; /* Golden yellow */
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .contact-split { grid-template-columns: 1fr 1fr; align-items: start; } /* [cite: 307] */
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--clr-cta-orange);
}

.info-block p {
    color: var(--clr-text-muted);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--clr-bg-gray);
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

.form-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary-navy);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--clr-bg-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-speed);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--clr-cta-orange);
}

.form-group textarea {
    resize: vertical;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal-element {
    opacity: 0;
    transform: translateY(30px); /* Starts 30px lower */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transition */
}

/* Stagger delays for grid items */
.services-grid .reveal-element:nth-child(1) { transition-delay: 0.1s; }
.services-grid .reveal-element:nth-child(2) { transition-delay: 0.2s; }
.services-grid .reveal-element:nth-child(3) { transition-delay: 0.3s; }

.product-flex-container .reveal-element:nth-child(1) { transition-delay: 0.1s; }
.product-flex-container .reveal-element:nth-child(2) { transition-delay: 0.2s; }
.product-flex-container .reveal-element:nth-child(3) { transition-delay: 0.3s; }
.product-flex-container .reveal-element:nth-child(4) { transition-delay: 0.4s; }

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}