/* ===================================================================
   Kitchen Eyes - Components
   Cards, buttons, badges, navigation, footer, and reusable UI
   Luxury visual redesign
   =================================================================== */

/* ======================================
   NAVIGATION
   ====================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease,
                backdrop-filter var(--duration-normal) ease;
}

.nav--scrolled {
    background: rgba(5, 12, 24, 0.88);
    backdrop-filter: blur(32px) saturate(1.3);
    -webkit-backdrop-filter: blur(32px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 40px rgba(0,0,0,0.4);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav__brand-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(30, 127, 122, 0.25));
    transition: filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__brand-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Logo-ready: supports img/svg swap */
.nav__brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav__brand:hover .nav__brand-icon {
    filter: drop-shadow(0 0 16px rgba(30, 127, 122, 0.45));
}

.nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-light);
}

.nav__brand-sub {
    display: block;
    font-size: 0.52rem;
    font-weight: 400;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    margin-top: 4px;
    opacity: 0.55;
    font-family: var(--font-primary);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav__link {
    font-size: 0.84rem;
    color: var(--text-secondary);
    transition: color 0.35s ease;
    position: relative;
    padding: var(--sp-xs) 0;
    letter-spacing: 0.01em;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-teal);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--radius-full);
}

.nav__link:hover,
.nav__link--active {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__cta {
    margin-left: var(--sp-md);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-sm);
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--duration-normal) ease,
                opacity var(--duration-normal) ease;
}

.nav__toggle--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle--open span:nth-child(2) {
    opacity: 0;
}
.nav__toggle--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 12, 24, 1);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    z-index: 999;
    padding: var(--sp-3xl) var(--sp-xl);
    overflow-y: auto;
}

.nav__mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(30,127,122,0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(7,17,31,0.3) 0%, transparent 40%, rgba(7,17,31,0.2) 100%);
    pointer-events: none;
}

.nav__mobile--open {
    display: flex;
}

.nav__mobile .nav__link {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--sp-sm) var(--sp-xl);
    position: relative;
    z-index: 1;
    transition: color 0.35s ease, transform 0.35s ease;
}

.nav__mobile .nav__link:hover {
    transform: translateX(4px);
}

.nav__mobile .btn {
    margin-top: var(--sp-xl);
    position: relative;
    z-index: 1;
    width: 220px;
    justify-content: center;
}

@media (max-width: 968px) {
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .nav__toggle { display: flex; }
}


/* ======================================
   BUTTONS - Luxury Refined
   ====================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                background 0.45s ease,
                color 0.35s ease,
                border-color 0.45s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #1E7F7A 0%, #175E5A 50%, #1E7F7A 100%);
    background-size: 200% 200%;
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(30, 127, 122, 0.25),
                inset 0 1px 0 rgba(255,255,255,0.1),
                var(--shadow-inset);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(30, 127, 122, 0.40),
                0 0 20px rgba(30, 127, 122, 0.12),
                inset 0 1px 0 rgba(255,255,255,0.1);
    background-position: 100% 100%;
    color: var(--text-white);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: var(--shadow-inset);
}
.btn--secondary:hover {
    border-color: var(--teal);
    color: var(--teal-light);
    background: rgba(30, 127, 122, 0.06);
    box-shadow: 0 0 24px rgba(30, 127, 122, 0.10),
                inset 0 0 20px rgba(30, 127, 122, 0.03);
    transform: translateY(-2px);
}

.btn--gold {
    background: linear-gradient(135deg, #866A38 0%, #A8874C 30%, #B8955E 60%, #C4A568 100%);
    color: #0A0E16;
    box-shadow: 0 4px 20px rgba(145, 117, 72, 0.25),
                inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--gold:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #917548 0%, #B8955E 30%, #C4A568 60%, #CDB070 100%);
    color: #0A0E16;
    box-shadow: 0 10px 40px rgba(145, 117, 72, 0.35),
                0 0 24px rgba(184, 149, 94, 0.10),
                inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn--lg {
    padding: 1.1rem 2.8rem;
    font-size: 0.92rem;
    border-radius: var(--radius-lg);
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
}

.btn__icon {
    font-size: 1.1em;
}


/* ======================================
   CARDS - Premium Depth
   ====================================== */

.card {
    background: var(--grad-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl) var(--sp-xl) var(--sp-2xl);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s ease,
                background 0.45s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-inset), var(--shadow-sm);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-teal);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-glass);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover), var(--shadow-inset);
    border-color: var(--border-accent);
    background: var(--grad-card-hover);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card--gold::before {
    background: var(--grad-gold);
}

.card--accent-visible::before {
    opacity: 1;
}

.card__icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 127, 122, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-lg);
    color: var(--teal-light);
    font-size: 1.2rem;
}

.card__icon svg {
    width: 22px;
    height: 22px;
}

.card__icon--gold {
    background: rgba(184, 149, 94, 0.08);
    border-color: var(--border-gold);
    color: var(--gold);
}

.card__number {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--teal);
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-sm);
}

.card__title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: var(--sp-sm);
}

.card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.card__list {
    margin-top: var(--sp-md);
}

.card__list li {
    padding: var(--sp-xs) 0;
    padding-left: var(--sp-lg);
    font-size: 0.88rem;
    color: var(--text-secondary);
    position: relative;
}

.card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-muted);
}


/* ======================================
   BADGES / PILLS - Refined
   ====================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: rgba(30, 127, 122, 0.08);
    color: var(--teal-light);
    border: 1px solid var(--border-accent);
}

.badge--gold {
    background: rgba(184, 149, 94, 0.08);
    color: var(--gold-light);
    border-color: var(--border-gold);
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot--green  { background: var(--status-green); }
.status-dot--amber  { background: var(--status-amber); }
.status-dot--red    { background: var(--status-red); }


/* ======================================
   KPI CARDS
   ====================================== */

.kpi {
    text-align: center;
    padding: var(--sp-lg);
}

.kpi__value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--teal-light);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--sp-xs);
}

.kpi__value--gold {
    color: var(--gold);
}

.kpi__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}


/* ======================================
   CTA BANNER - Premium
   ====================================== */

.cta-banner {
    background: var(--navy-deepest);
    padding: clamp(5rem, 10vw, 9rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--teal-muted) 30%, var(--gold-subtle) 50%, var(--teal-muted) 70%, transparent 90%);
    opacity: 0.6;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(30,127,122,0.06) 0%, rgba(184,149,94,0.03) 30%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    margin-bottom: var(--sp-md);
}

.cta-banner p {
    margin: 0 auto var(--sp-2xl);
    max-width: 600px;
}

.cta-banner__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}


/* ======================================
   FOOTER - Luxury
   ====================================== */

.footer {
    background: var(--navy-deepest);
    padding: clamp(4rem, 7vw, 6rem) 0 var(--sp-xl);
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, var(--border-line) 30%, rgba(255,255,255,0.06) 50%, var(--border-line) 70%, transparent 95%);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: var(--sp-3xl);
}

.footer__brand h3 {
    font-size: 1.3rem;
    margin-bottom: var(--sp-sm);
}

.footer__brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.7;
}

.footer__brand-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: var(--sp-lg);
}

.footer__col h4 {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-2xl);
}

.footer__col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.6rem 0;
    transition: color 0.35s ease;
}

.footer__col a:hover {
    color: var(--teal-light);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-2xl);
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }
    .footer__bottom {
        flex-direction: column;
        gap: var(--sp-sm);
        text-align: center;
    }
}


/* ======================================
   FORM ELEMENTS - Premium
   ====================================== */

.form-group {
    margin-bottom: var(--sp-lg);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--sp-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--surface-dark);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A8B4C2' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}


/* ======================================
   REVEAL ANIMATION
   ====================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grouped card reveals */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }


/* ======================================
   INLINE SVG ICON CONTAINERS
   ====================================== */

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-container svg {
    width: 100%;
    height: 100%;
}

/* ======================================
   IMAGE SECTION COMPONENTS
   ====================================== */

.image-panel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 280px;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
}

.image-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--duration-slow) ease;
}

.image-panel:hover .image-panel__img {
    opacity: 0.85;
}

.image-panel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,12,24,0.4) 0%, rgba(5,12,24,0.75) 100%);
}

.image-panel__content {
    position: relative;
    z-index: 2;
    padding: var(--sp-2xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.image-panel__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-dark) 50%, var(--surface-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-panel__placeholder::before {
    content: '';
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

/* Section with background image */
.section--image-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--image-bg .section__overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-image-veil);
    z-index: 0;
}

.section--image-bg > .container {
    position: relative;
    z-index: 1;
}
