/* 
   DESIGN SYSTEM - Pet Shop 🐶
   Sophisticated, Elegant, Modern
*/

:root {
    --primary: #911381; /* Vibrant Purple from Pattucas */
    --accent: #B01090;  /* Deeper Magenta */
    --accent-hover: #7B116D;
    --bg-light: #FDF4FD; /* Very Soft Lavender White */
    --bg-white: #FFFFFF;
    --bg-section: #F8F9FA;
    --text-main: #2D2D2D;
    --text-muted: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #27AE60;

    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 12px rgba(145, 19, 129, 0.05);
    --shadow-md: 0 10px 30px rgba(145, 19, 129, 0.08);
    --shadow-lg: 0 20px 40px rgba(145, 19, 129, 0.12);
    --radius-sm: 4px;
    --radius-md: 4px; /* Squaring the cards */
    --radius-lg: 8px;
    --radius-full: 9999px;

    --container-max-width: 1200px;
    --header-height: 80px;
}

main {
    padding-top: var(--header-height);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* REUSABLE CLASSES */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-section);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(145, 19, 129, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(145, 19, 129, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white);
    border: none;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(145, 19, 129, 0.3);
}

.btn-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
}

.w-100 {
    width: 100%;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: 0 5px 20px rgba(145, 19, 129, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px; /* Reduced from 32px for better fit */
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px; /* Force separation from nav-menu */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 20px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-content h1 span {
    color: var(--accent);
    display: block;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    gap: 24px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.indicator-icon {
    font-size: 20px;
}

.hero-visual {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero:hover .hero-img {
    transform: scale(1.1);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    font-size: 32px;
}

.card-text strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
}

.card-text small {
    color: var(--text-muted);
}

/* ABOUT SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-img-1 {
    grid-row: span 2;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.about-img-2 {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
}

.value-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-section);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.value-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(10px);
}

.value-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.value-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

.card-image-content {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .card-image-content img {
    transform: scale(1.1);
}

.service-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    border-top-left-radius: var(--radius-md);
}

.card-body {
    padding: 30px;
    position: relative;
}

.card-icon-main {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.card-body h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* PRODUCTS */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee; /* Added border for definition */
}

.product-card[style*="display: none"] {
    display: none !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-img {
    height: 250px;
    padding: 40px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img img {
    max-height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 15px 0 0;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.btn-add {
    padding: 8px 16px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    min-width: 100px; /* Ensures enough space for text */
}

.btn-add:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--white);
    font-size: 32px;
}

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

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

/* TESTIMONIALS */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote {
    font-size: 80px;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testimonial-info strong {
    display: block;
    font-size: 16px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--text-light);
}

.stars {
    color: #F1C40F;
    font-size: 14px;
}

.testimonial-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.testimonial-form-wrapper h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.error-msg {
    color: var(--error);
    font-size: 12px;
    display: none;
    margin-top: 5px;
}

.form-success-msg {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    background-color: #E8F5E9;
    border-radius: var(--radius-md);
    color: #2E7D32;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #2E7D32;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

/* CONTACT */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* FOOTER */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: #999;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    color: #FFFFFF;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #FFFFFF;
    opacity: 0.8;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    background: #2D2D2D;
    border: 1px solid #444;
    padding: 10px 15px;
    color: white;
    border-radius: var(--radius-sm);
    flex-grow: 1;
}

.newsletter-form button {
    background-color: var(--accent);
    color: white;
    padding: 0 20px;
    border-radius: var(--radius-sm);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.7;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-heart {
    color: var(--accent);
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* REVEAL ON SCROLL */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="top"] { transform: translateY(-30px); }
[data-reveal="bottom"] { transform: translateY(30px); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* RESPONSIVE */
@media (max-width: 1250px) {
    .nav-menu { gap: 15px; }
    .nav-link { font-size: 14px; }
    .btn-premium { padding: 10px 20px; font-size: 13px; }
}

@media (max-width: 1150px) {
    .d-none-mobile { display: none; }
    
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        gap: 20px;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 1000;
    }
    
    .nav-overlay.active { display: block; }
}

@media (max-width: 1024px) {
    
    .hero-container, .about-container, .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-btns, .hero-content p { margin-left: auto; margin-right: auto; }
    
    .about-visual { order: 2; }
    
    .stats-row { justify-content: center; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer-bottom .container { flex-direction: column; gap: 10px; }
}
