/* ================================================ */
/* GRACE CRAFTS — Navy + Orange Theme               */
/* Fonts: Nunito (headings) + Poppins (body)        */
/* ================================================ */

:root {
    --navy:        #1a1a2e;
    --navy-deep:   #0f0f1e;
    --navy-mid:    #16213e;
    --navy-light:  #0f3460;
    --orange:      #ff6b35;
    --orange-light: #ff8c5a;
    --orange-pale:  #fff8f5;
    --orange-border: #ffe5d9;
    --white:       #ffffff;
    --gray-light:  #f8f8f8;
    --gray-text:   #777777;
    --gray-muted:  #999999;
    --dark-text:   #1a1a2e;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-light);
    margin: 0; padding: 0;
    overflow-x: hidden;
    width: 100%;
    color: var(--dark-text);
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: var(--dark-text);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.main-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== NAVBAR ====== */
.navbar {
    background-color: var(--navy) !important;
    padding: 0 28px !important;
    height: 64px;
}
.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: white !important;
}
.navbar-brand img {
    border-radius: 50%;
    border: 2px solid var(--orange);
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 20px;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 6px !important;
}
.navbar-nav .nav-link:hover { color: var(--orange) !important; }

/* ====== SIDE MENU ====== */
.side-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100%;
    background: var(--navy);
    padding-top: 80px;
    transition: 0.3s ease;
    z-index: 999;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.side-menu.active { right: 0; }
.side-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}
.side-menu a:hover {
    background: var(--orange);
    color: white;
    padding-left: 36px;
}
.overlay {
    position: fixed;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    top: 0; left: 0;
    display: none;
    z-index: 998;
}
.overlay.active { display: block; }

/* ====== HERO ====== */
.hero-section {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-mid) 100%);
    padding: 80px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 380px;
    border-radius: 24px;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    color: white;
    animation: fadeUp 0.8s ease;
}
.hero-bg-circle {
    position: absolute;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: rgba(255,107,53,0.06);
    right: -80px; top: -120px;
    pointer-events: none;
}
.hero-bg-circle2 {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    left: 320px; bottom: -60px;
    pointer-events: none;
}
.hero-left { flex: 1; max-width: 520px; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.18);
    color: var(--orange-light);
    border: 1px solid rgba(255,107,53,0.4);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-section h1 {
    color: white;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 16px;
    text-shadow: none;
}
.hero-section h1 span { color: var(--orange); }
.hero-section p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    text-shadow: none;
}
.hero-btns { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn-theme {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 28px;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
.btn-theme:hover {
    background: #e55a26;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.35);
}
.btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 28px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.6);
}

/* HERO STATS */
.hero-right {
    flex: 0 0 280px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}
.hero-stat:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,107,53,0.4);
    transform: translateX(-4px);
}
.hero-stat-icon { font-size: 26px; }
.hero-stat-num {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* ====== SECTION LABELS ====== */
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: block;
}
.section-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-text);
    margin: 0 0 8px;
}
.section-sub {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* ====== WHY CARDS ====== */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.why-card {
    background: var(--orange-pale);
    border-radius: 20px;
    padding: 30px 26px;
    border: 1.5px solid var(--orange-border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}
.why-card.show { opacity: 1; transform: translateY(0); }
.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: 0 16px 40px rgba(255,107,53,0.12);
}
.why-icon-wrap {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(255,107,53,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.why-card h5 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.why-card p  { font-size: 0.88rem; color: var(--gray-text); line-height: 1.6; margin: 0; }

/* ====== INFO STRIP ====== */
.info-strip {
    background: var(--navy);
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    margin-bottom: 64px;
}
.info-card {
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 26px 22px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.info-card.show { opacity: 1; transform: translateY(0); }
.info-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,107,53,0.3);
}
.info-card-tag {
    font-size: 10px;
    color: var(--orange-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}
.info-card h5 { color: white; font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.info-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/* ====== PRODUCT CARDS ====== */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 32px; }
.prod-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #efefef;
    background: white;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    transform: translateY(24px);
}
.prod-card.show { opacity: 1; transform: translateY(0); }
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    border-color: var(--orange-border);
    color: inherit;
    text-decoration: none;
}
.card-img-top { height: 200px !important; object-fit: cover; width: 100%; }
.prod-card .card-body { padding: 18px 20px; display: flex; flex-direction: column; }
.prod-card h5 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--dark-text); }
.prod-card .text-muted { font-size: 0.82rem; color: var(--gray-muted) !important; line-height: 1.5; }
.prod-price { font-family: 'Nunito', sans-serif; font-size: 1.15rem; font-weight: 900; color: var(--orange) !important; }

.btn-dark {
    background: var(--navy) !important;
    border: none !important;
    border-radius: 22px !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 20px;
    transition: all 0.3s ease;
}
.btn-dark:hover { background: var(--orange) !important; transform: translateY(-1px); }

.btn-success {
    background: var(--orange) !important;
    border: none !important;
    border-radius: 22px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-success:hover { background: #e55a26 !important; transform: translateY(-1px); }

/* ====== CONTACT ====== */
.contact-section {
    padding: 64px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.contact-section.show { opacity: 1; transform: translateY(0); }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 30px 24px;
    border: 1.5px solid #f0f0f0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--orange);
    border-radius: 20px 20px 0 0;
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.09);
    border-color: var(--orange-border);
    color: inherit;
    text-decoration: none;
}
.contact-card i {
    font-size: 28px;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 auto 14px;
    transition: transform 0.3s ease;
}
.contact-card:hover i { transform: scale(1.15) rotate(5deg); }
.contact-card h6 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; color: var(--dark-text); }
.contact-card p  { font-size: 0.85rem; color: var(--gray-muted); margin: 0; }
.whatsapp i { background: rgba(37,211,102,0.12); color: #25D366; }
.email i    { background: rgba(220,53,69,0.10);  color: #dc3545; }
.location i { background: rgba(0,123,255,0.10);  color: #007bff; }

/* ====== ABOUT ====== */
.about-section {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1.5px solid #f0f0f0;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.about-section.show { opacity: 1; transform: translateY(0); }
.about-section:hover { border-color: var(--orange-border); box-shadow: 0 8px 32px rgba(255,107,53,0.08); }
.about-section h3 { position: relative; padding-bottom: 12px; margin-bottom: 14px; }
.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: var(--orange);
    border-radius: 3px;
}
.about-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1.5px solid #f0f0f0;
    margin-top: 22px;
}

/* ====== PRODUCTS PAGE ====== */
.products-page-wrap {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.form-control {
    border-radius: 22px !important;
    border: 1.5px solid #e0e0e0 !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12) !important;
}

/* ====== PRODUCT DETAIL ====== */
.product-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 20px; }
.carousel { position: relative; overflow: visible; }
.custom-arrow {
    width: 46px; height: 46px;
    background: white;
    color: var(--navy);
    border-radius: 50%;
    border: 1.5px solid #eee;
    position: absolute;
    top: 50%; transform: translateY(-50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; z-index: 10;
    transition: all 0.3s ease;
}
.custom-arrow.left  { left: -23px; }
.custom-arrow.right { right: -23px; }
.custom-arrow:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-50%) scale(1.08);
}

/* ====== BACK BUTTON ====== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--navy);
    border: 1.5px solid #e8e8e8;
    border-radius: 22px;
    padding: 9px 18px 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    position: static;
}
.back-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    transform: translateX(-3px);
    text-decoration: none;
}

/* ====== FOOTER ====== */
footer {
    background: var(--navy-deep) !important;
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    padding: 20px 32px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
footer p { margin: 0; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.35); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================ */
/* MOBILE                                           */
/* ================================================ */
@media (max-width: 768px) {
    html, body { width: 100%; overflow-x: hidden; }
    .main-wrapper { padding: 0 14px; }

    .hero-section {
        flex-direction: column;
        padding: 40px 22px;
        border-radius: 18px;
        margin-top: 14px;
        text-align: center;
        min-height: auto;
        gap: 24px;
    }
    .hero-left { max-width: 100%; }
    .hero-section h1 { font-size: 1.75rem; line-height: 1.25; }
    .hero-section p  { font-size: 0.92rem; }
    .hero-btns { justify-content: center; }
    .btn-theme, .btn-ghost { font-size: 0.9rem; padding: 11px 24px; }

    .hero-right {
        flex: none; width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 4px;
    }
    .hero-stat { flex: 0 0 148px; flex-direction: column; text-align: center; padding: 14px 10px; gap: 6px; }
    .hero-stat-num { font-size: 18px; }
    .hero-stat-label { font-size: 10px; }

    .why-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-card { padding: 22px 18px; }

    .info-strip { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 18px; gap: 14px; margin-bottom: 36px; }

    .prod-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .card-img-top { height: 140px !important; }

    .contact-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-section { padding: 36px 0; }

    .about-section { padding: 22px 18px; }

    .products-page-wrap { padding: 20px 16px; border-radius: 16px; }
    .form-control.w-50 { width: 100% !important; }

    .back-btn { font-size: 0.82rem; padding: 8px 14px 8px 12px; margin-bottom: 16px; }

    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .side-menu { width: 260px; }
    .navbar { height: 58px; }
    .navbar-brand { font-size: 1.2rem; }
    .navbar-brand img { width: 34px !important; height: 34px !important; }
    section { margin-bottom: 32px; }
}

@media (max-width: 400px) {
    .hero-section h1 { font-size: 1.45rem; }
    .prod-grid { grid-template-columns: 1fr; }
    .hero-stat { flex: 0 0 130px; }
}