/* =============================================================================
   Kitchen Catch Hardware — Global Stylesheet
   Bootstrap 5 base; custom overrides and components below
   ============================================================================= */

/* ---- CSS Custom Properties ---- */
:root {
    --kch-red:        #e63946;
    --kch-red-dark:   #c1121f;
    --kch-navy:       #1a1a2e;
    --kch-navy-light: #2a2a4e;
    --kch-gold:       #ffd166;
    --kch-gray-50:    #f8f9fa;
    --kch-gray-100:   #f1f3f5;
    --kch-gray-200:   #e9ecef;
    --kch-gray-600:   #6c757d;
    --kch-gray-800:   #343a40;
    --kch-text:       #212529;
    --kch-radius:     10px;
    --kch-radius-lg:  16px;
    --kch-shadow:     0 4px 20px rgba(0,0,0,0.08);
    --kch-shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
    --font-main:      'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-main);
    color: var(--kch-text);
    line-height: 1.65;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--kch-navy);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }

a {
    color: var(--kch-red);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--kch-red-dark); }

/* ---- Buttons ---- */
.btn-danger {
    background-color: var(--kch-red);
    border-color: var(--kch-red);
    font-weight: 600;
}
.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--kch-red-dark);
    border-color: var(--kch-red-dark);
}

.btn-outline-danger {
    color: var(--kch-red);
    border-color: var(--kch-red);
    font-weight: 600;
}
.btn-outline-danger:hover {
    background-color: var(--kch-red);
    border-color: var(--kch-red);
}

.btn-kch-primary {
    background: var(--kch-red);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .15s;
}
.btn-kch-primary:hover {
    background: var(--kch-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-kch-outline {
    background: transparent;
    color: var(--kch-navy);
    border: 2px solid var(--kch-navy);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all .2s;
}
.btn-kch-outline:hover {
    background: var(--kch-navy);
    color: #fff;
}

/* ---- Hero / Page Header ---- */
.page-hero {
    background: linear-gradient(135deg, var(--kch-navy) 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(230,57,70,0.15);
    border: 1px solid rgba(230,57,70,0.4);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.page-hero h1 { color: #fff; }
.page-hero .hero-intro { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 640px; }
.page-hero .hero-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    background: var(--kch-red);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}
.page-hero .hero-price-tag .price-amount {
    font-size: 1.6rem;
    font-weight: 800;
}
.page-hero .hero-price-tag .price-gst {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ---- Section Wrappers ---- */
.section-light { background: var(--kch-gray-50); padding: 4rem 0; }
.section-white  { background: #fff; padding: 4rem 0; }
.section-dark   { background: var(--kch-navy); padding: 4rem 0; color: #fff; }

.section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--kch-navy);
    margin-bottom: 0.4rem;
}
.section-subtitle {
    color: var(--kch-gray-600);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ---- Cards ---- */
.kch-card {
    background: #fff;
    border-radius: var(--kch-radius-lg);
    box-shadow: var(--kch-shadow);
    border: 1px solid var(--kch-gray-200);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.kch-card:hover {
    box-shadow: var(--kch-shadow-lg);
    transform: translateY(-2px);
}
.kch-card-body { padding: 1.5rem; }

/* ---- Product Cards ---- */
.product-card {
    background: #fff;
    border-radius: var(--kch-radius-lg);
    border: 1px solid var(--kch-gray-200);
    box-shadow: var(--kch-shadow);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--kch-shadow-lg);
    transform: translateY(-4px);
}
.product-card-image {
    background: var(--kch-gray-100);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-image-placeholder {
    font-size: 3.5rem;
    color: var(--kch-gray-600);
}
.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kch-navy);
    margin-bottom: 0.5rem;
}
.product-card-desc {
    font-size: 0.9rem;
    color: var(--kch-gray-600);
    flex: 1;
    margin-bottom: 1rem;
}
.product-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--kch-red);
    margin-bottom: 1rem;
}
.product-card-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--kch-gray-600);
}

/* ---- Feature List ---- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}
.feature-list li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    color: var(--kch-red);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Trust Badges ---- */
.trust-bar {
    background: var(--kch-navy);
    padding: 1rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
}
.trust-item i { color: var(--kch-gold); font-size: 1.1rem; }

/* ---- Enquiry Form ---- */
.enquiry-form-wrap {
    background: #fff;
    border-radius: var(--kch-radius-lg);
    box-shadow: var(--kch-shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--kch-gray-200);
}
.enquiry-form-wrap .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--kch-gray-800);
    margin-bottom: 0.35rem;
}
.enquiry-form-wrap .form-control,
.enquiry-form-wrap .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--kch-gray-200);
    padding: 0.6rem 0.9rem;
    font-size: 0.93rem;
    transition: border-color .2s, box-shadow .2s;
}
.enquiry-form-wrap .form-control:focus,
.enquiry-form-wrap .form-select:focus {
    border-color: var(--kch-red);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.enquiry-form-wrap .required-star { color: var(--kch-red); }

/* ---- FAQ Accordion ---- */
.faq-accordion .accordion-item {
    border: 1px solid var(--kch-gray-200);
    border-radius: var(--kch-radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--kch-navy);
    background: var(--kch-gray-50);
    padding: 1rem 1.25rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--kch-red);
    background: rgba(230,57,70,0.05);
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    filter: none;
}
.faq-accordion .accordion-body {
    font-size: 0.93rem;
    color: var(--kch-gray-800);
    line-height: 1.7;
    padding: 1rem 1.25rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb-nav {
    padding: 0.75rem 0;
}
.breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}
.breadcrumb-item a { color: var(--kch-red); }
.breadcrumb-item.active { color: var(--kch-gray-600); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--kch-gray-600); }

/* ---- Alert / Notification ---- */
.alert-success-kch {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: var(--kch-radius);
    padding: 1rem 1.25rem;
}
.alert-error-kch {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: var(--kch-radius);
    padding: 1rem 1.25rem;
}

/* ---- Location Grid ---- */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.location-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--kch-gray-50);
    border: 1px solid var(--kch-gray-200);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--kch-navy);
    text-decoration: none;
    transition: all .2s;
}
.location-chip:hover {
    background: var(--kch-red);
    color: #fff;
    border-color: var(--kch-red);
}
.location-chip i { font-size: 0.8rem; }

/* ---- Stats Row ---- */
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}
.stat-number {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--kch-red);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--kch-gray-600);
    font-weight: 500;
}

/* ---- Contact Page ---- */
.contact-info-card {
    background: var(--kch-navy);
    border-radius: var(--kch-radius-lg);
    padding: 2rem;
    color: #fff;
    height: 100%;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 42px;
    height: 42px;
    background: var(--kch-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #fff;
}
.contact-info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact-info-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.contact-info-value a { color: #fff; text-decoration: none; }
.contact-info-value a:hover { color: var(--kch-gold); }

/* ---- Utility ---- */
.text-danger-kch  { color: var(--kch-red) !important; }
.text-navy        { color: var(--kch-navy) !important; }
.bg-navy          { background-color: var(--kch-navy) !important; }
.bg-kch-light     { background-color: var(--kch-gray-50) !important; }
.rounded-kch      { border-radius: var(--kch-radius) !important; }
.rounded-kch-lg   { border-radius: var(--kch-radius-lg) !important; }
.fw-800           { font-weight: 800 !important; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ---- Print ---- */
@media print {
    .navbar, .mobile-sticky-cta, .trust-bar, footer { display: none !important; }
    body { font-size: 11pt; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 767px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .section-light, .section-white, .section-dark { padding: 2.5rem 0; }
    .enquiry-form-wrap { padding: 1.5rem; }
    .contact-info-card { padding: 1.5rem; }
}
