/*
Theme Name: RumahHangat
Theme URI: https://example.com/
Author: RumahHangat
Author URI: https://example.com/
Description: Elegant home goods and furniture theme based on the RumahHangat landing page.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rumahhangat
Tags: custom-background, custom-logo, custom-menu, responsive-layout, one-column
*/

:root {
    --cream: #F5F0E8;
    --ivory: #FAF7F2;
    --warm-brown: #8B6F47;
    --light-brown: #C4A882;
    --dark-brown: #4A3728;
    --text-dark: #2C1F14;
    --text-mid: #6B5242;
    --text-light: #9B8579;
    --white: #FFFDF9;
    --border: #E8DDD0;
    --shadow: rgba(74, 55, 40, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ivory);
    color: var(--text-dark);
    overflow-x: hidden;
}


/* ===== NAVBAR ===== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 24px var(--shadow);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-brown);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-logo span {
    color: var(--warm-brown);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--warm-brown);
}

.nav-cta {
    background: var(--warm-brown);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--dark-brown) !important;
    color: var(--white) !important;
}


/* ===== HERO ===== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    padding-top: 72px;
    gap: 4rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 111, 71, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-text {
    animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-brown);
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--warm-brown);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--warm-brown);
}

.hero-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--dark-brown);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s;
    border: 2px solid var(--dark-brown);
}

.btn-primary:hover {
    background: var(--warm-brown);
    border-color: var(--warm-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark-brown);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border);
    transition: all 0.25s;
}

.btn-outline:hover {
    border-color: var(--warm-brown);
    color: var(--warm-brown);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    animation: fadeUp 0.9s 0.2s ease both;
}

.hero-img-frame {
    background: var(--light-brown);
    border-radius: 24px 24px 120px 24px;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(145deg, #D4B896 0%, #C4A882 40%, #B8956E 100%);
}

.hero-img-icon {
    font-size: 4rem;
    opacity: 0.6;
}

.hero-img-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.8;
}

.hero-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.4rem;
    box-shadow: 0 8px 32px var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-badge-icon {
    font-size: 1.8rem;
}

.hero-badge-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.hero-badge-text span {
    font-size: 0.75rem;
    color: var(--text-light);
}


/* ===== SECTION COMMON ===== */

section {
    padding: 6rem 5%;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-brown);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--warm-brown);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--dark-brown);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 520px;
}


/* ===== PILLARS ===== */

.pillars {
    background: var(--dark-brown);
    padding: 5rem 5%;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--light-brown);
    margin-bottom: 0.8rem;
}

.pillar-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.pillars .section-title {
    color: var(--ivory);
}

.pillars .section-label {
    color: var(--light-brown);
}

.pillars .section-label::before {
    background: var(--light-brown);
}


/* ===== CATEGORIES ===== */

.categories {
    background: var(--ivory);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.cat-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.cat-visual {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.cat-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-bg {
    transform: scale(1.05);
}

.cat-bg-1 {
    background: linear-gradient(145deg, #E8D5BC, #D4B896);
}

.cat-bg-2 {
    background: linear-gradient(145deg, #D6C9B8, #C4B5A0);
}

.cat-bg-3 {
    background: linear-gradient(145deg, #C8B89A, #B8A07C);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 31, 20, 0.85) 0%, transparent 60%);
    padding: 2rem 1.5rem 1.5rem;
}

.cat-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.cat-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
}

.cat-arrow {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s;
}

.cat-card:hover .cat-arrow {
    background: var(--warm-brown);
    transform: translate(2px, -2px);
}


/* ===== PRODUCTS ===== */

.products {
    background: var(--cream);
}

.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tab {
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active,
.tab:hover {
    background: var(--dark-brown);
    border-color: var(--dark-brown);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--shadow);
    border-color: transparent;
}

.product-img {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.product-img-1 {
    background: linear-gradient(135deg, #EDE0CE, #DDD0B8);
}

.product-img-2 {
    background: linear-gradient(135deg, #E8DDD0, #D8CABC);
}

.product-img-3 {
    background: linear-gradient(135deg, #E5D8C4, #D5C8AE);
}

.product-img-4 {
    background: linear-gradient(135deg, #DDD0BC, #CDBFA8);
}

.product-img-5 {
    background: linear-gradient(135deg, #E2D8C8, #D2C8B0);
}

.product-img-6 {
    background: linear-gradient(135deg, #DFD4C2, #CFBFA8);
}

.product-img-7 {
    background: linear-gradient(135deg, #E8DDD0, #D8CABC);
}

.product-img-8 {
    background: linear-gradient(135deg, #E4DAC8, #D4C8B4);
}

.product-tag {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--warm-brown);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

.product-info {
    padding: 1.2rem;
}

.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-size {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--cream);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.btn-add {
    width: 32px;
    height: 32px;
    background: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--warm-brown);
    transform: scale(1.1);
}

.see-all-wrap {
    text-align: center;
    margin-top: 3rem;
}


/* ===== FURNITURE SECTION ===== */

.furniture {
    background: var(--ivory);
}

.furniture-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 3rem;
}

.furniture-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.furniture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.furniture-card.featured {
    grid-row: 1 / 3;
}

.furniture-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.furniture-card.featured .furniture-img {
    height: 280px;
    background: linear-gradient(145deg, #D4B896, #C09060);
    font-size: 5rem;
}

.furniture-card:not(.featured) .furniture-img {
    height: 150px;
    font-size: 3rem;
}

.furniture-img-2 {
    background: linear-gradient(145deg, #C8B898, #B0988C);
}

.furniture-img-3 {
    background: linear-gradient(145deg, #D0C0A4, #B8A888);
}

.furniture-img-4 {
    background: linear-gradient(145deg, #BFAF99, #A89880);
}

.furniture-img-5 {
    background: linear-gradient(145deg, #C8B8A0, #B0A088);
}

.furniture-info {
    padding: 1.2rem 1.4rem;
}

.furniture-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.3rem;
}

.furniture-card.featured .furniture-name {
    font-size: 1.5rem;
}

.furniture-type {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.furniture-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.furniture-room {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.72rem;
    background: var(--cream);
    color: var(--warm-brown);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
}


/* ===== USP STRIP ===== */

.usp-strip {
    background: var(--warm-brown);
    padding: 3rem 5%;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

.usp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.usp-icon {
    font-size: 1.8rem;
}

.usp-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
}

.usp-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}


/* ===== FAQ ===== */

.faq {
    background: var(--cream);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    margin-top: 3rem;
    align-items: start;
}

.faq-sidebar p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.3rem 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-brown);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--warm-brown);
}

.faq-q .faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.2s;
    color: var(--text-light);
}

.faq-item.open .faq-q .faq-icon {
    background: var(--warm-brown);
    border-color: var(--warm-brown);
    color: white;
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a-inner {
    padding-bottom: 1.2rem;
}


/* ===== CTA BANNER ===== */

.cta-banner {
    background: var(--dark-brown);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-banner .section-title {
    color: var(--ivory);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cta-banner .btn-primary {
    background: var(--warm-brown);
    border-color: var(--warm-brown);
    margin: 0 0.5rem;
}

.cta-banner .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--ivory);
    margin: 0 0.5rem;
}

.cta-banner .btn-outline:hover {
    border-color: var(--light-brown);
    color: var(--light-brown);
}


/* ===== FOOTER ===== */

footer {
    background: #1E140C;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.footer-brand .nav-logo {
    color: var(--ivory);
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.social-btn:hover {
    background: var(--warm-brown);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul a {
    text-decoration: none;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--light-brown);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}


/* ===== ANIMATIONS ===== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .usp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .furniture-grid {
        grid-template-columns: 1fr 1fr;
    }
    .furniture-card.featured {
        grid-row: auto;
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    .hero-visual {
        display: none;
    }
    .cat-grid {
        grid-template-columns: 1fr;
    }
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}