/* 
  Bulbul Clothing - Brand Website
  Visual-first, soft, warm, caregiver-oriented.
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #FFF9F4;
    --surface: #FFFFFF;
    --ink: #1F1B16;
    --muted: #6D625B;
    --brand: #E96A8D;
    --brand-light: #F3B7C6;
    --accent: #F2C14E;
    --line: rgba(31, 27, 22, 0.10);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(31, 27, 22, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(31, 27, 22, 0.08);

    --font-heading: 'Fraunces', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    /* Animations */
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-reveal: 700ms;
    --duration-hover: 180ms;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('texture.png');
    background-repeat: repeat;
    background-size: 200px;
    /* Slight scale context */
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--ink);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--ink);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--ink);
}

p {
    color: rgba(31, 27, 22, 0.78);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-large {
    font-size: 1.125rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: 4rem 0;
    position: relative;
    border-top: 1px solid rgba(233, 106, 141, 0.05);
    /* very faint brand color */
}

/* Remove border from hero since it's the first one */
.hero {
    border-top: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px -5px rgba(31, 27, 22, 0.1);
    /* Reduced shadow */
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-light), 0 0 0 4px rgba(233, 106, 141, 0.2);
}

.btn-primary {
    background-color: var(--brand);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 0.85rem 1.75rem;
    /* +2px padding approx and bit wider */
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-viber {
    background-color: #7360f2;
    color: white;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 250ms ease;
    background-color: transparent;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.navbar.scrolled {
    background-color: rgba(255, 249, 244, 0.85);
    /* Warm beige glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -5px rgba(31, 27, 22, 0.1);
    /* Slightly stronger shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Shrink padding */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    height: 70px;
    /* Slight shrink from 80px */
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    height: 48px;
    width: auto;
    border-radius: var(--radius-sm);
    /* subtle rounding on image logo */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Active Link Indicator */
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--ink);
    opacity: 0.7;
    transition: opacity var(--duration-hover) ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--brand);
    /* Optional: keep text color change or just depend on underline */
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--brand);
    transition: width 250ms var(--ease-out-expo);
}

.nav-link.active::after {
    width: 100%;
}

/* Language Toggle - Segmented Control */
.lang-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 16px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 2px;
    position: relative;
}

.lang-option {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-full);
    color: var(--muted);
    transition: all 0.2s ease;
    z-index: 2;
    line-height: 1;
}

.lang-option.active {
    color: var(--brand);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hide old switch */
.switch,
.lang-label {
    display: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--brand);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--brand);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.lang-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    width: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: var(--spacing-xl);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-tagline {
    color: var(--brand);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    /* Increased spacing */
    display: block;
}

.hero-buttons {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
}

.hero-images {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img-1 {
    width: 320px;
    height: 420px;
    z-index: 2;
    transform: rotate(-6deg) translateX(-20px);
}

.hero-img-2 {
    width: 300px;
    height: 400px;
    z-index: 1;
    transform: rotate(6deg) translateX(40px) translateY(20px);
}

.hero-images:hover .hero-img-1 {
    transform: rotate(-8deg) translateX(-30px) scale(1.02);
}

.hero-images:hover .hero-img-2 {
    transform: rotate(4deg) translateX(50px) translateY(10px) scale(1.02);
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.fabric-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.fabric-tag {
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

/* Values Section */
/* Values Section */
.values-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.heading-highlight {
    color: var(--brand);
    font-family: var(--font-heading);
    font-style: italic;
    display: inline-block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.value-card {
    background-color: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 240ms var(--ease-out-expo), box-shadow 240ms var(--ease-out-expo), background-position 240ms ease;
    background-image: linear-gradient(to bottom right, var(--surface) 0%, #FFFDFB 100%);
    background-size: 100% 100%;
}

.value-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-hover);
    background-image: linear-gradient(to bottom right, var(--surface) 20%, #FFF0F5 120%);
    /* Subtle shift */
}

@media (max-width: 900px) {
    .value-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
}

/* Decorative Circles */
.value-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(20px);
    z-index: 0;
}

.value-card:nth-child(odd)::before {
    background-color: var(--brand-light);
}

.value-card:nth-child(even)::before {
    background-color: var(--accent);
    opacity: 0.3;
}

.value-card h3 {
    position: relative;
    z-index: 1;
    color: var(--ink);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.value-card p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 0;
}

/* Founder Section */
/* Founder Section */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.founder-img-wrapper {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.founder-img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

.founder-quote-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl) var(--radius-md) var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-hover);
    max-width: 280px;
    z-index: 2;
}

.quote-text {
    color: var(--brand);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.quote-author {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.founder-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.founder-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: var(--spacing-md);
}

.founder-badge-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.founder-badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.founder-badge-item.pink {
    color: var(--brand);
}

.founder-badge-item.pink::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--brand-light);
}

.founder-badge-item.gray {
    color: var(--muted);
}

.founder-badge-item.gray::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #E0E0E0;
}

/* Order Section */
.order-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.order-step {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--brand-light);
    line-height: 1;
    font-weight: 700;
    opacity: 0.5;
}

.step-text {
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--ink);
}

.order-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--ink);
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    color: var(--brand);
    font-weight: 600;
}

/* Social Highlight Block */
.social-icons-wrapper {
    margin-top: var(--spacing-md);
}

.social-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-highlight {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    color: var(--ink);
}

.social-icon-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--brand);
}

.social-icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.map-wrapper {
    height: 360px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.map-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--muted);
    font-weight: 600;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
}

/* Footer */
/* Footer */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--line);
    background-color: #FAF5F0;
    /* Slightly darker shade */
    margin-top: var(--spacing-lg);
}

.footer-social-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-social-link {
    color: var(--muted);
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--brand);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--duration-reveal) var(--ease-out-expo), transform var(--duration-reveal) var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 {
    transition-delay: 80ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 240ms;
}

/* Language Switch Animation */
body.lang-switching {
    opacity: 0.6;
    transition: opacity 200ms ease;
}

body:not(.lang-switching) {
    transition: opacity 200ms ease;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--ink);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 400ms var(--ease-out-expo);
    z-index: 9999;
    box-shadow: var(--shadow-hover);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover,
    .value-card:hover,
    .nav-link::after {
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-grid,
    .founder-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .order-steps {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-images {
        height: 400px;
        margin-top: var(--spacing-lg);
    }

    .contact-grid {
        border-radius: var(--radius-md);
    }

    .map-wrapper {
        height: 260px;
    }

    .section {
        padding: 4rem 0;
    }

    p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .founder-quote-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -20px;
        margin-left: 20px;
        max-width: calc(100% - 40px);
    }
}