/*
Theme Name: Animal Hospital Mohali
Theme URI: https://animalhospitalmohali.com
Author: Animal Hospital Mohali
Author URI: https://animalhospitalmohali.com
Description: A modern, professional WordPress theme for Animal Hospital Mohali with Elementor page builder support. Features custom post types for Services, Team Members, and Testimonials. Green and orange color scheme with full customizer support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animal-hospital-mohali
Tags: custom-colors, custom-logo, custom-menu, elementor, veterinary, animal-hospital, one-page, blog, portfolio
*/

/* ===========================
   CSS Variables (Customizable)
   =========================== */
:root {
    --ah-green: #22C55E;
    --ah-green-dark: #16A34A;
    --ah-green-light: #F0FDF4;
    --ah-orange: #F97316;
    --ah-orange-dark: #EA580C;
    --ah-dark: #1E3A2E;
    --ah-text-primary: #1A2421;
    --ah-text-secondary: #475569;
    --ah-bg-primary: #F0FDF4;
    --ah-bg-white: #FFFFFF;
    --ah-border: rgba(30, 58, 46, 0.05);
    --ah-shadow: 0 8px 32px rgba(30, 58, 46, 0.04);
    --ah-shadow-hover: 0 12px 48px rgba(30, 58, 46, 0.08);
    --ah-radius: 2rem;
    --ah-radius-lg: 3rem;
}

/* ===========================
   Base Styles
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ah-text-primary);
    background-color: var(--ah-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--ah-text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Typography Scale
   =========================== */
.ah-h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ah-h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ah-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ah-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ah-text-secondary);
}

.ah-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

@media (min-width: 640px) {
    .ah-h1 { font-size: 3rem; }
    .ah-h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .ah-h1 { font-size: 3.75rem; }
    .ah-h2 { font-size: 3rem; }
    .ah-h3 { font-size: 1.875rem; }
    .ah-body { font-size: 1.125rem; }
}

/* ===========================
   Layout
   =========================== */
.ah-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ah-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .ah-container {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.ah-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .ah-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ===========================
   Header
   =========================== */
.ah-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(240, 253, 244, 0.8);
    border-bottom: 1px solid rgba(30, 58, 46, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ah-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ah-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ah-logo-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--ah-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.ah-logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.ah-logo-text p {
    font-size: 0.75rem;
    color: var(--ah-text-secondary);
}

/* Navigation */
.ah-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.ah-nav a {
    font-weight: 500;
    color: var(--ah-text-primary);
    transition: color 0.2s;
}

.ah-nav a:hover,
.ah-nav a.current-menu-item > a {
    color: var(--ah-green);
}

@media (min-width: 1024px) {
    .ah-nav {
        display: flex;
    }
}

.ah-header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .ah-header-cta {
        display: inline-flex;
    }
}

/* Mobile Menu */
.ah-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .ah-mobile-toggle {
        display: none;
    }
}

.ah-mobile-menu {
    display: none;
    padding-bottom: 1rem;
}

.ah-mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ah-mobile-menu a {
    font-weight: 500;
    color: var(--ah-text-primary);
    transition: color 0.2s;
}

.ah-mobile-menu a:hover {
    color: var(--ah-green);
}

/* ===========================
   Buttons
   =========================== */
.ah-btn-primary {
    background-color: var(--ah-orange);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.ah-btn-primary:hover {
    background-color: var(--ah-orange-dark);
    transform: translateY(-1px);
}

.ah-btn-secondary {
    background-color: var(--ah-green);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.ah-btn-secondary:hover {
    background-color: var(--ah-green-dark);
    transform: translateY(-1px);
}

.ah-btn-outline {
    background: transparent;
    color: var(--ah-dark);
    border: 2px solid var(--ah-dark);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.ah-btn-outline:hover {
    background-color: var(--ah-dark);
    color: var(--ah-bg-primary);
}

/* ===========================
   Cards
   =========================== */
.ah-card {
    background-color: var(--ah-bg-white);
    border-radius: var(--ah-radius);
    padding: 2rem;
    border: 1px solid var(--ah-border);
    box-shadow: var(--ah-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ah-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ah-shadow-hover);
}

.ah-card-image {
    border-radius: var(--ah-radius);
    overflow: hidden;
}

.ah-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ah-card:hover .ah-card-image img {
    transform: scale(1.05);
}

/* ===========================
   Badge
   =========================== */
.ah-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ah-green);
    background-color: rgba(34, 197, 94, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

/* ===========================
   Icon Circle
   =========================== */
.ah-icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-green);
    flex-shrink: 0;
}

.ah-icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===========================
   Hero Section
   =========================== */
.ah-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .ah-hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
    }
}

.ah-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ah-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ah-hero-image {
    border-radius: var(--ah-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(30, 58, 46, 0.15);
}

.ah-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Stats
   =========================== */
.ah-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .ah-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.ah-stat-card {
    text-align: center;
}

.ah-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ah-text-primary);
    margin-bottom: 0.5rem;
}

/* ===========================
   Services Grid
   =========================== */
.ah-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ah-services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-services-grid { grid-template-columns: repeat(4, 1fr); }
}

.ah-services-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ah-services-grid-2col { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   Team Grid
   =========================== */
.ah-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ah-team-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-team-grid { grid-template-columns: repeat(3, 1fr); }
}

.ah-team-card .ah-card-image {
    height: 20rem;
}

/* ===========================
   Blog Grid
   =========================== */
.ah-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ah-blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.ah-blog-card .ah-card-image {
    height: 14rem;
    margin-bottom: 1.5rem;
}

/* ===========================
   Gallery Grid
   =========================== */
.ah-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ah-gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.ah-gallery-item {
    border-radius: var(--ah-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    box-shadow: var(--ah-shadow);
    transition: box-shadow 0.3s;
}

.ah-gallery-item:hover {
    box-shadow: var(--ah-shadow-hover);
}

.ah-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ah-gallery-item:hover img {
    transform: scale(1.05);
}

.ah-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 46, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.ah-gallery-item:hover .ah-gallery-overlay {
    opacity: 1;
}

.ah-gallery-overlay .ah-label {
    color: var(--ah-green);
    margin-bottom: 0.25rem;
}

.ah-gallery-overlay h3 {
    color: white;
    font-size: 1.125rem;
}

/* ===========================
   Testimonials
   =========================== */
.ah-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ah-testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.ah-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ah-stars svg {
    width: 1rem;
    height: 1rem;
    fill: var(--ah-orange);
    color: var(--ah-orange);
}

.ah-stars svg.empty {
    fill: #d1d5db;
    color: #d1d5db;
}

/* ===========================
   Contact Section
   =========================== */
.ah-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .ah-contact-grid { grid-template-columns: 1fr 1fr; }
}

.ah-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ah-contact-info-item + .ah-contact-info-item {
    margin-top: 1.5rem;
}

/* ===========================
   Forms
   =========================== */
.ah-form-group {
    margin-bottom: 1.5rem;
}

.ah-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ah-text-primary);
    margin-bottom: 0.5rem;
}

.ah-input,
.ah-textarea,
.ah-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(30, 58, 46, 0.2);
    border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--ah-text-primary);
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ah-input:focus,
.ah-textarea:focus,
.ah-select:focus {
    outline: none;
    border-color: var(--ah-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.ah-textarea {
    resize: vertical;
    min-height: 120px;
}

.ah-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ah-form-row { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   CTA Section
   =========================== */
.ah-cta-block {
    background-color: var(--ah-green);
    border-radius: var(--ah-radius-lg);
    padding: 3rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .ah-cta-block { padding: 5rem; }
}

.ah-cta-block h2 {
    color: white;
}

.ah-cta-block p {
    color: rgba(255, 255, 255, 0.9);
}

.ah-cta-block .ah-btn-primary {
    background-color: white;
    color: var(--ah-green);
}

.ah-cta-block .ah-btn-primary:hover {
    background-color: var(--ah-bg-primary);
}

/* ===========================
   Footer
   =========================== */
.ah-footer {
    background-color: var(--ah-dark);
    color: var(--ah-bg-primary);
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-radius: var(--ah-radius-lg) var(--ah-radius-lg) 0 0;
    margin-top: 3rem;
}

.ah-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .ah-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ah-footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.ah-footer h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ah-bg-primary);
    margin-bottom: 1.5rem;
}

.ah-footer ul {
    list-style: none;
    padding: 0;
}

.ah-footer ul li + li {
    margin-top: 0.75rem;
}

.ah-footer a {
    font-size: 0.875rem;
    color: rgba(240, 253, 244, 0.7);
    transition: color 0.2s;
}

.ah-footer a:hover {
    color: var(--ah-green);
}

.ah-footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 253, 244, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(240, 253, 244, 0.7);
}

.ah-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ah-social-links a {
    color: rgba(240, 253, 244, 0.7);
    transition: color 0.2s;
}

.ah-social-links a:hover {
    color: var(--ah-green);
}

.ah-social-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===========================
   Marquee
   =========================== */
.ah-marquee-section {
    background-color: white;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(30, 58, 46, 0.1);
    border-bottom: 1px solid rgba(30, 58, 46, 0.1);
    overflow: hidden;
}

.ah-marquee-track {
    display: flex;
    animation: ah-marquee 30s linear infinite;
    white-space: nowrap;
}

.ah-marquee-track span {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ah-text-secondary);
    margin: 0 2rem;
    flex-shrink: 0;
}

@keyframes ah-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Two Column Layout
   =========================== */
.ah-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ah-two-col { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   Rounded Image
   =========================== */
.ah-rounded-image {
    border-radius: var(--ah-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(30, 58, 46, 0.15);
}

.ah-rounded-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Section with White BG
   =========================== */
.ah-section-white {
    background-color: var(--ah-bg-white);
}

/* ===========================
   Text Center
   =========================== */
.ah-text-center {
    text-align: center;
}

.ah-section-header {
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* ===========================
   Line Clamp
   =========================== */
.ah-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ah-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================
   Elementor Override
   =========================== */
.elementor-page .ah-header {
    position: fixed;
}

/* ===========================
   WordPress Core Styles
   =========================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--ah-text-secondary);
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===========================
   Pagination
   =========================== */
.ah-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.ah-pagination a,
.ah-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ah-pagination a {
    background: white;
    color: var(--ah-text-primary);
    border: 1px solid var(--ah-border);
}

.ah-pagination a:hover {
    background: var(--ah-green);
    color: white;
    border-color: var(--ah-green);
}

.ah-pagination span.current {
    background: var(--ah-green);
    color: white;
}
