/* =====================================================
   Ofis Möble — Home Page Styles
   ===================================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background-color: var(--color-accent);
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg, .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img, .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
    transform: scale(1.01);
}

.hero:hover .hero-bg img, .hero:hover .hero__bg {
    transform: scale(1.02);
    transition: transform 10s ease-out;
}

.hero-overlay, .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.24) 68%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-container, .hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
    gap: var(--space-2xl);
    align-items: end;
}

.hero-content, .hero__content {
    max-width: 700px;
}

.hero-tagline, .hero__subtitle {
    display: block;
    color: var(--color-bg);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.28em;
    margin-bottom: var(--space-md);
    opacity: 0.85;
    text-transform: uppercase;
}

.hero-title, .hero__title {
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: clamp(3.8rem, 8vw, 6.8rem);
    margin-bottom: var(--space-lg);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-title span, .hero__title span {
    font-weight: 500;
}

.hero-desc, .hero__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: var(--space-2xl);
    max-width: 550px;
    line-height: 1.8;
}

.hero-btn-group, .hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-panel {
    align-self: end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    border-radius: 28px;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-lg);
}

.hero-panel__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.hero-panel__text {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.hero-panel__metrics {
    display: grid;
    gap: 0.85rem;
}

.hero-panel__metrics div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel__metrics strong {
    font-size: 1rem;
    font-weight: 700;
}

.hero-panel__metrics span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Hero Slider Controls --- */
.hero-controls {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero-control {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-control:hover {
    background: white;
    color: var(--color-text-primary);
}

.hero-pagination {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-dot.active {
    background: var(--color-accent-soft);
    width: 56px;
}

/* --- Category Carousel --- */
.section-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: var(--color-accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-header--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-xl);
}

.section-header--split p {
    max-width: 560px;
}

.category-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: var(--space-xl);
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    position: relative;
    flex: 0 0 calc(25% - (var(--space-md) * 3 / 4)); /* Show 4 items by default */
    height: 520px;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    user-select: none;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.category-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-2xl) var(--space-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 62%, transparent 100%);
    transition: background var(--transition-normal);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%);
}

.category-overlay h3 {
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 1px solid #eee;
    color: #333;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-base);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-control:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.carousel-control.prev {
    left: -24px;
}

.carousel-control.next {
    right: -24px;
}

/* --- Tabbed Products Section --- */
.products-tab-section {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
    background:
        radial-gradient(circle at top left, rgba(119, 119, 119, 0.1), transparent 36%),
        var(--color-bg-alt);
}

.section-products-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 760px;
    margin-inline: auto;
}

.section-title-main {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.section-intro {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.products-tabs-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.tabs-buttons {
    display: flex;
    gap: 0.6rem;
    background-color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 5;
    padding: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.tabs-buttons .tab {
    background: transparent;
    border: 1px solid transparent;
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    min-width: 156px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tabs-buttons .tab.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    position: relative;
}

#urunler .tabs-container .tab-content {
    display: none !important;
    animation: fadeIn 0.5s ease;
}

#urunler .tabs-container .tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Premium Product Card Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.product-card-premium {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all var(--transition-base);
    height: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.product-card-premium:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(119, 119, 119, 0.45);
    transform: translateY(-6px);
}

.product-card-premium .product-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: var(--space-xl);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(119, 119, 119, 0.08), rgba(255, 255, 255, 0.5));
}

.product-card-premium .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Since these are likely transparent furniture PNGs */
    transition: transform var(--transition-base);
}

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

.product-card-premium .product-content {
    margin-top: auto;
    width: 100%;
}

.product-card-premium .product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.product-card-premium .product-subtitle {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-accent-soft);
    font-weight: 800;
    letter-spacing: 0.18em;
}

.products-footer {
    text-align: center;
    margin-top: var(--space-4xl);
}

.no-products {
    text-align: center;
    padding: var(--space-5xl);
    color: var(--color-text-secondary);
    background: #fdfdfd;
    border: 1px dashed #ddd;
}

/* --- Brand Story --- */
.story-grid, .about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
}

.story-content h2, .about-section__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.8rem);
    margin-bottom: var(--space-xl);
    line-height: 0.95;
}

.story-content p, .about-section__content p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 500;
    line-height: 1.8;
}

.story-image, .about-section__image {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.story-image img, .about-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section__badge { display: none; }
.about-stats { display: none; }

.story-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.story-notes span {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Projects Gallery --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    cursor: pointer;
    text-decoration: none;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.project-card img {
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: var(--space-md);
    transition: filter var(--transition-base);
    filter: brightness(0.9);
    border-radius: 20px;
}

.project-card:hover img {
    filter: brightness(1);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    margin-bottom: 2px;
    color: var(--color-text-primary);
}

.project-info span {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

/* --- PDF Catalog Section --- */
.catalog-promo {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-4xl);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(200, 164, 92, 0.12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f7f4ef 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-lg);
}

.catalog-promo__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin: var(--space-sm) 0 var(--space-md);
    color: var(--color-text-primary);
}

.catalog-promo__content p {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.catalog-promo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.catalog-promo__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.catalog-promo__list li {
    position: relative;
    padding-left: 26px;
    color: var(--color-text-primary);
    font-weight: 500;
}

.catalog-promo__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c8a45c 0%, #8b6b2f 100%);
    box-shadow: 0 0 0 4px rgba(200, 164, 92, 0.12);
}

.catalog-promo__preview {
    display: flex;
    justify-content: center;
}

.catalog-promo__sheet {
    width: 100%;
    max-width: 360px;
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(180deg, #1e1b16 0%, #2f271e 100%);
    color: #fff7ee;
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-promo__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(200, 164, 92, 0.16);
    color: #f6d596;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.catalog-promo__cover {
    margin: 18px 0 16px;
    height: 320px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 25% 20%, rgba(200, 164, 92, 0.18), transparent 24%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.catalog-promo__cover::before,
.catalog-promo__cover::after {
    content: "";
    position: absolute;
    inset: auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.catalog-promo__cover::before {
    width: 180px;
    height: 180px;
    top: 34px;
    right: -42px;
    filter: blur(2px);
}

.catalog-promo__cover::after {
    width: 120px;
    height: 120px;
    left: -28px;
    bottom: 30px;
    filter: blur(1px);
}

.catalog-promo__cover-mark {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(200, 164, 92, 0.18), rgba(255, 255, 255, 0.04));
    color: #f6d596;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.catalog-promo__sheet-copy strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.catalog-promo__sheet-copy span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 247, 238, 0.74);
    font-size: 0.95rem;
}

/* --- Contact CTA --- */
.cta-box, .cta-banner {
    background:
        radial-gradient(circle at top right, rgba(119, 119, 119, 0.2), transparent 35%),
        linear-gradient(135deg, #2d2119 0%, #463428 100%);
    padding: var(--space-5xl) var(--space-4xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    box-shadow: var(--shadow-xl);
}

.cta-content, .cta-banner__content {
    max-width: 600px; /* From banner styling */
}

.cta-content h2, .cta-banner__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.8rem);
    margin-bottom: var(--space-sm);
    color: #fff7ee;
}

.cta-content p, .cta-banner__content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 500;
    line-height: 1.8;
}

.cta-actions, .cta-banner__action {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Contact detailed view removal from homepage to preserve cleanliness */
.contact-cta {
    display: none;
}

/* Services component hiding if it appears */
.service-card {
    display: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-container, .hero .container { grid-template-columns: 1fr; }
    .hero-panel { max-width: 420px; }
    .category-carousel { scroll-padding: var(--space-xl); }
    .category-card { flex: 0 0 calc(50% - (var(--space-md) / 2)); height: 400px; }
    .carousel-control { display: none; } /* Hide buttons on mobile, allow native swipe */
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid, .about-section { gap: var(--space-3xl); }
    .cta-box, .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xl);
        padding: var(--space-3xl) var(--space-xl);
    }
    .catalog-promo {
        grid-template-columns: 1fr;
        padding: var(--space-3xl);
    }
    .catalog-promo__preview {
        justify-content: flex-start;
    }
    .catalog-promo__sheet {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero { min-height: 100svh; padding: 5rem 0 6rem; }
    .hero-bg img, .hero__bg { opacity: 0.6; }
    .hero-overlay, .hero__overlay { background: linear-gradient(to top, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.35) 100%); }
    .hero-content, .hero__content { padding-top: 2rem; padding-bottom: 2rem; }
    .hero-title, .hero__title { font-size: clamp(2.5rem, 8vw, 3.5rem); margin-bottom: 1rem; }
    .hero-desc, .hero__text { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-btn-group, .hero__actions { flex-direction: column; }
    .hero-btn-group .btn, .hero__actions .btn { width: 100%; }
    .hero-container, .hero .container { align-items: center; gap: 1rem; }
    .hero-panel { display: none; } /* Hide panel on small mobile screens to prevent overlap with slider controls */
    .category-card { flex: 0 0 calc(80% - var(--space-md)); height: 350px; }
    .product-grid { grid-template-columns: 1fr; }
    .story-grid, .about-section { grid-template-columns: 1fr; }
    .story-image, .about-section__image { order: -1; }
    .project-grid { grid-template-columns: 1fr; }
    .tabs-buttons { width: 100%; }
    .tabs-buttons .tab { min-width: 0; flex: 1; }
    .catalog-promo {
        padding: var(--space-2xl);
        border-radius: 24px;
    }
    .catalog-promo__actions {
        flex-direction: column;
    }
    .catalog-promo__actions .btn {
        width: 100%;
    }
    .catalog-promo__cover {
        height: 260px;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
