/* KokoroPet Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   Dr. Koh Choo Yan (named copy only) — toggle; vet collaboration photo stays visible
   Pages that use this add class `dr-koh-hidden` on <html> (currently on).
   To show again: remove `dr-koh-hidden` from <html> on index, index-jp, veterinary,
   veterinary-jp, about, and about-jp. Optionally restore og:image on veterinary*.html
   and the longer FAQ answers in JSON-LD on veterinary* / about* if you want those to
   name the doctor again.
   ----------------------------------------------------------------------------- */
html.dr-koh-hidden .dr-koh-show-when-visible {
    display: none !important;
}

.dr-koh-show-when-hidden {
    display: none !important;
}

html.dr-koh-hidden .dr-koh-show-when-hidden {
    display: revert !important;
}

:root {
    /* Brand Colors */
    --color-white: #FFFFFF;
    --color-grey: #7D7C7A;
    --color-grey-dark: #2C2C2C;
    /* Darker for premium readability */
    --color-grey-light: #F9F9F9;
    /* Softer light grey */

    /* Brand Gold */
    --color-gold: #E6B35A;
    --color-gold-hover: #D4A045;
    --color-gold-light: rgba(230, 179, 90, 0.08);
    --color-gold-gradient: linear-gradient(135deg, #E6B35A 0%, #C4923E 100%);

    /* Functional Colors */
    --text-main: var(--color-grey-dark);
    --text-light: var(--color-grey);
    --bg-main: var(--color-white);
    --bg-alt: var(--color-grey-light);
    --border-color: #EAEAEA;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Background Colors */
    --bg-warm: #FFFCF5;
    /* Very subtle warm gold tint */
    --bg-ivory: #FDFBF7;
    /* Cleaner warm tint */
    --bg-light: #F9F9F9;
    /* Existing Cooling Grey */


    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-width: 1280px;
    --container-padding: 2rem;

    /* Layout Variables */
    --header-h: 90px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Focus Visibility */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

/* Utilities: Spacing */
.mb-8 {
    margin-bottom: 0.5rem;
}

.mb-16 {
    margin-bottom: 1rem;
}

.mb-24 {
    margin-bottom: 1.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-48 {
    margin-bottom: 3rem;
}

.mb-64 {
    margin-bottom: 4rem;
}

.mt-16 {
    margin-top: 1rem;
}

.mt-32 {
    margin-top: 2rem;
}

.mt-48 {
    margin-top: 3rem;
}

.py-64 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-0 {
    padding-bottom: 0;
}

/* Utilities: Layout */
.w-100 {
    width: 100%;
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-left {
    text-align: left;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Utilities: Cards */
/* Utilities: Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border for definition */
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Ensure equal height in grids */
    display: flex;
    flex-direction: column;
}

.img-feature {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

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

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    /* Slightly less movement for stability */
    border-color: rgba(230, 179, 90, 0.3);
}

.card-soft {
    background: #FFFEFA;
    /* Extremely subtle warm tint */
    border-radius: var(--radius-md);
    /* Consistent radius */
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-soft:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

/* Glassmorphism Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Utilities: Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-cat {
    background: #fee2e2;
    color: #b91c1c;
}

.tag-dog {
    background: #dbeafe;
    color: #1e40af;
}

.tag-both {
    background: #f3f4f6;
    color: #374151;
}

.tag-format {
    background: rgba(230, 179, 90, 0.15);
    color: #8F6930;
}

.tag-hero {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* Utility: Lists */
.list-check li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-gold);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gold {
    color: var(--color-gold);
}

.text-center {
    text-align: center;
}

.text-italic {
    font-style: italic;
}

.d-flex-col {
    display: flex;
    flex-direction: column;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

/* Product Card Specifics */
.product-card-list {
    text-align: left;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-grey);
}

.product-card-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.product-card-list li::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-primary {
    background: var(--color-gold-gradient);
    color: var(--color-white);
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(230, 179, 90, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 179, 90, 0.4);
}

/* Button Loading State */
.btn-primary.loading,
.btn-outline.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-primary.loading::before,
.btn-outline.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-outline.loading::before {
    border-color: rgba(230, 179, 90, 0.3);
    border-top-color: var(--color-gold);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-outline {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Header Scroll Effect */
.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header.scrolled .logo img {
    height: 70px;
    transition: height 0.3s ease;
}

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

.logo img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 968px) {
    .nav-links {
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    /* Slightly smaller for elegance */
    color: var(--text-main);
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--color-gold);
}

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

.nav-link.active {
    color: var(--color-gold);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lang-current:hover {
    color: var(--color-gold);
    background: var(--bg-alt);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-alt);
    color: var(--color-gold);
}

.lang-option.active {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--color-gold);
}

/* Footer */
.footer {
    background-color: var(--color-grey-dark);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 2rem;
}

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

.footer-d p {
    color: #ccc;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-h {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Hero Section */
.hero {
    padding: 0;
    min-height: 100vh;
    /* Full viewport height for impact */
    background-image: url('../img/kokoropet-hero-home-japan-pet-supplements.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: calc(var(--header-h) * -1);
    /* Counteract padding-top to place BG behind header */
    padding-top: var(--header-h);
    /* Add header padding back visually */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    /* More dramatic gradient */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    /* Ensure breathing room on sides */
}

.hero-content {
    max-width: 800px;
    /* Removed padding-left: 5% to let container handle alignment */
}

.hero-content h1 {
    font-size: 4rem;
    /* Larger title */
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    /* Larger subtitle */
    color: var(--color-white);
    margin-bottom: 2.5rem;
    font-style: normal;
    /* Cleaner look than italic */
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-logo {
    width: 250px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

/* About / Philosophy */
.philosophy-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 179, 90, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(230, 179, 90, 0.1);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}


.icon-box-sm {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin: 0;
    background: rgba(230, 179, 90, 0.1);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Values Section */
.values-section {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.number-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.section-promise {
    background-color: var(--color-grey-dark);
    color: var(--color-white);
    text-align: center;
}

.section-subtitle {
    color: var(--color-gold);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-grey-dark);
    margin-bottom: 1.25rem;
}

.hero-product-image {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.hero-product-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-cta {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header span {
    color: var(--color-gold);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

/* Why Kokoro Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Section */
.product-showcase {
    background: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-grey-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--bg-main);
    font-size: 1rem;
}

select.form-input,
select.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237D7C7A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input:focus,
select.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E6B35A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(230, 179, 90, 0.1);
    transform: translateY(-2px);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.form-input.error,
.form-input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ef4444;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group {
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    /* JS triggers animation, ensure hidden initially or use forwards */
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Page Header */
.page-header {
    background-color: var(--bg-alt);
    padding: 8rem 0 8rem;
    /* Adjusted to show more background image content */
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.page-header.has-bg h1,
.page-header.has-bg p {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-about {
    background-image: url('../img/kokoropet-page-hero-about.png');
}

.bg-products {
    background-image: url('../img/kokoropet-page-hero-products.png');
}

.bg-why-kokoro {
    background-image: url('../img/kokoropet-page-hero-why-choose.png');
}

.bg-veterinary {
    background-image: url('../img/kokoropet-page-hero-veterinary.png');
}

.bg-contact {
    background-image: url('../img/kokoropet-page-hero-contact.png');
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-grey-dark);
}

.page-header p {
    color: var(--color-grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 968px) {
    :root {
        --container-padding: 1.5rem;
        --header-h: 80px;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .hero-grid,
    .grid-3,
    .grid-2,
    .product-showcase,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        gap: 2rem;
    }

    .product-showcase {
        padding: 2rem;
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.trust-badge {
    text-align: center;
    color: var(--color-grey);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--color-gold);
}

/* Process Steps (Daily Life) */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    background: var(--bg-main);
    padding: 0 1rem;
    text-align: center;
    flex: 1;
}



/* Process Steps */
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--color-gold);
    transition: var(--transition);
}

.process-step:hover .step-icon {
    background: var(--color-gold-gradient);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(230, 179, 90, 0.3);
    border-color: transparent;
}

/* Condition Categories */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 179, 90, 0.3);
}

.condition-card i {
    transition: var(--transition);
}

.condition-card:hover i {
    transform: scale(1.1);
}

.condition-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 179, 90, 0.3);
    transform: translateY(-5px);
}

.condition-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-grey-dark);
}

.condition-card ul {
    margin-top: 1rem;
    color: var(--color-grey);
}

.condition-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Process Steps */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .process-steps::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .process-step {
        width: 100%;
        padding: 1rem 0;
    }
}

/* Product Page Refactor */
/* Product Page Refactor */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Ensure consistent card structure */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Enhanced Product Card Hover Effects */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(230, 179, 90, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-card:hover::before {
    opacity: 1;
}

.product-img-container {
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-bottom: 2rem;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}

.product-img-container {
    position: relative;
    overflow: hidden;
}

.product-img-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-img-container.bg-light {
    background: var(--bg-alt);
}

.product-img-container.bg-white {
    background: var(--color-white);
    border: 1px solid var(--border-color);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-grey-dark);
}

.product-benefit {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gold);
}

.product-aliases {
    color: var(--color-grey);
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.product-desc {
    margin-bottom: 1.5rem;
    color: var(--color-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-footer {
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-footer span {
    font-size: 0.9rem;
    color: var(--color-grey);
    display: flex;
    align-items: center;
}

.product-footer i {
    color: var(--color-gold);
    margin-right: 0.5rem;
}

/* Category Navigation */
.category-nav-section {
    position: sticky;
    top: 90px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-grey);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.category-link:hover,
.category-link.active {
    color: var(--color-grey-dark);
    border-bottom-color: var(--color-gold);
}

/* Retailer Locator */
.retailer-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.retailer-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-grey-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.retailer-input-wrap {
    position: relative;
}

.retailer-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
}

.retailer-field input,
.retailer-field select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-grey-dark);
    font: inherit;
    padding: 0.8rem 1rem;
}

.retailer-input-wrap input {
    padding-left: 2.75rem;
}

.retailer-field input:focus,
.retailer-field select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(230, 179, 90, 0.15);
    outline: none;
}

.retailer-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-grey);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.retailer-summary p {
    margin-bottom: 0;
}

#retailerCount {
    color: var(--color-grey-dark);
    font-weight: 700;
}

.retailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.retailer-card,
.retailer-empty {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.retailer-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.retailer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.retailer-state,
.retailer-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.7rem;
}

.retailer-state {
    background: var(--color-gold-light);
    color: var(--color-grey-dark);
}

.retailer-badge {
    background: var(--color-grey-dark);
    color: var(--color-white);
}

.retailer-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.retailer-address {
    color: var(--color-grey);
    margin-bottom: 1rem;
}

.retailer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: var(--color-grey-dark);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.retailer-meta span {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.retailer-meta i {
    color: var(--color-gold);
    margin-top: 0.25rem;
    width: 1rem;
}

.retailer-map-link {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retailer-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
}

.retailer-empty h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .category-nav-section {
        padding: 1rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav {
        justify-content: flex-start;
        padding: 0 1rem;
        gap: 1.5rem;
        min-width: max-content;
    }

    .retailer-toolbar {
        grid-template-columns: 1fr;
    }

    .retailer-summary {
        display: block;
    }

    .retailer-summary p + p {
        margin-top: 0.5rem;
    }
}

/* -----------------------------
   FAQ Accordion (New) 
   ----------------------------- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

details.faq-item summary {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Remove default marker */
}

/* Remove default marker for Webkit */
details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary:hover {
    color: var(--color-gold);
}

details.faq-item summary {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 2rem;
}

details.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 400;
    transition: transform 0.3s ease;
}

details[open].faq-item summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

details[open].faq-item .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

/* -----------------------------
   AIO Answer Block (New)
   ----------------------------- */
.aio-block {
    background: var(--bg-alt);
    border-left: 4px solid var(--color-gold);
    padding: 2rem;
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.aio-block h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aio-block h2::before {
    content: '\f05a';
    /* Info circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-gold);
}

.aio-block p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    /* Slightly larger for readability */
    line-height: 1.7;
}

/* -----------------------------
   Loading States & Skeleton Screens
   ----------------------------- */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-alt) 25%,
            rgba(255, 255, 255, 0.5) 50%,
            var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 400px;
    border-radius: var(--radius-md);
    background: var(--bg-alt);
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-text:last-child {
    width: 60%;
}

/* -----------------------------
   Progressive Image Loading
   ----------------------------- */
.img-lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
    background: var(--bg-alt);
    position: relative;
}

.img-lazy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--bg-alt) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            var(--bg-alt) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.img-lazy.loaded {
    opacity: 1;
}

.img-lazy.loaded::before {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* -----------------------------
   Toast Notifications
   ----------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-grey-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 500px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--color-gold);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: var(--color-gold);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: white;
}

@media (max-width: 768px) {
    .toast {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* -----------------------------
   Enhanced Scroll Animations
   ----------------------------- */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Effect */
.animate-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animate-stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.visible>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.visible>*:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--color-gold);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* -----------------------------
   Section Differentiation Utilities
   ----------------------------- */
.bg-white {
    background-color: var(--color-white);
}

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

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

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

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

.bg-dark {
    background-color: var(--color-grey-dark);
    color: var(--color-white);
}

.bg-dark h2,
.bg-dark p {
    color: var(--color-white);
}

.bg-dark .text-light {
    color: #d1d5db;
}

/* Lighter grey for text on dark bg */
