/* ========================================
   RAYYONA TEXTILE - Apple-Style Design
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1d1d1f;
    --brand: #006541;
    --brand-light: #00a86b;
    --secondary: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-gray: #6e6e73;
    --text-light: #86868b;
    --white: #ffffff;
    --divider: rgba(0,0,0,0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --radius: 18px;
    --transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========== LAYOUT =========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-pad { padding: 120px 0; }

/* =========== HEADER (Apple Navbar) =========== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 52px;
    z-index: 9999;
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--divider);
    transition: var(--transition);
}

.navbar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    opacity: 0.8;
}

.nav-links a:hover { opacity: 1; }

.lang-switcher {
    display: flex;
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    border-radius: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    color: var(--brand);
}

/* =========== HAMBURGER =========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========== HERO =========== */
.hero { height: 100svh; position: relative; margin-top: 0; }

.hero-carousel { height: 100%; }

.swiper-slide { position: relative; overflow: hidden; }

.swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 780px;
    z-index: 10;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 18px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* =========== BUTTONS =========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    padding: 14px 34px;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,101,65,0.25);
}

.btn-primary:hover {
    background: var(--brand-light);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,101,65,0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.2);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.3);
}

/* =========== HERO SWIPER =========== */
.swiper-pagination { bottom: 32px; }

.swiper-pagination-bullet {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 3px;
    background: var(--white);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--white);
    opacity: 0.7;
}

.swiper-button-next:hover, .swiper-button-prev:hover { opacity: 1; }

/* =========== ABOUT =========== */
.about { background: var(--secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
    display: block;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.about-body {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.04em;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.about-img {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========== PRODUCTS =========== */
.products { background: var(--white); }

.products-header {
    text-align: center;
    margin-bottom: 72px;
}

.products-header p {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--secondary);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover { transform: scale(1.02); }

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-info {
    padding: 28px 32px 36px;
}

.product-info h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link:hover { gap: 12px; }

/* =========== EXPORT =========== */
.export { background: var(--text-dark); color: var(--white); }

.export-content { text-align: center; }

.export-content .section-eyebrow { color: var(--brand-light); }

.export-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}

.export-content > p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 72px;
    font-weight: 300;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.market-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
}

.market-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-6px);
}

.market-card img {
    width: 56px;
    border-radius: 8px;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.market-card span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.certs-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px 28px;
    border-radius: 980px;
}

.cert-badge i { font-size: 20px; color: var(--brand-light); }

.cert-badge span { font-weight: 600; font-size: 14px; }

/* =========== PROCESS =========== */
.process { background: var(--secondary); }

.process-header { text-align: center; margin-bottom: 72px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--white);
    border-radius: 24px;
    padding: 44px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--brand);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.step-card:hover::before { transform: scaleX(1); }

.step-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.step-num {
    font-size: 64px;
    font-weight: 900;
    color: rgba(0,101,65,0.08);
    line-height: 1;
    margin-bottom: -10px;
    letter-spacing: -0.05em;
}

.step-icon {
    width: 72px; height: 72px;
    background: rgba(0,101,65,0.08);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--brand);
    transition: var(--transition);
}

.step-card:hover .step-icon { background: var(--brand); color: var(--white); }

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.step-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

/* =========== GALLERY =========== */
.gallery { background: var(--white); }

.gallery-header { text-align: center; margin-bottom: 56px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}

.gallery-grid img {
    width: 100%; height: 240px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    filter: brightness(0.95);
}

.gallery-grid img:nth-child(1) { grid-column: span 2; height: 300px; }
.gallery-grid img:nth-child(6) { grid-column: span 2; }
.gallery-grid img:hover { filter: brightness(1); transform: scale(1.02); }

/* =========== CONTACT =========== */
.contact { background: var(--secondary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.contact-left > p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-links { display: flex; flex-direction: column; gap: 20px; }

.contact-link-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.contact-link-item:hover { transform: translateX(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.link-icon {
    width: 48px; height: 48px;
    background: rgba(0,101,65,0.1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--brand);
    flex-shrink: 0;
}

.link-info label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.link-info span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group { position: relative; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 16px;
    padding: 14px 18px;
    background: var(--secondary);
    border: 1.5px solid transparent;
    border-radius: 12px;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0,101,65,0.08);
}

.form-group textarea { height: 140px; resize: none; }

.submit-row { margin-top: 24px; }

.submit-row .btn { width: 100%; justify-content: center; }

/* =========== FOOTER =========== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 72px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    margin-bottom: 36px;
}

.footer-brand img {
    height: 44px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    font-weight: 300;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
}

.footer-col ul a:hover { color: var(--white); }

.social-icons { display: flex; gap: 12px; margin-top: 24px; }

.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-icon:hover { background: var(--brand); transform: translateY(-4px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
    .markets-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid img:nth-child(1),
    .gallery-grid img:nth-child(6) { grid-column: span 1; height: 240px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-pad: 72px; }

    .nav-links {
        position: fixed;
        top: 52px; left: 0;
        width: 100%; height: calc(100vh - 52px);
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 20px; font-weight: 500; }

    .hamburger { display: flex; }

    .lang-switcher { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img { aspect-ratio: 16/9; }

    .product-grid { grid-template-columns: 1fr; }

    .markets-grid { grid-template-columns: repeat(2, 1fr); }

    .steps-grid { grid-template-columns: 1fr 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid img { height: 180px; }
    .gallery-grid img:nth-child(1) { grid-column: span 2; height: 260px; }
    .gallery-grid img:nth-child(6) { grid-column: span 1; }

    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .stats-row { grid-template-columns: 1fr; }
    .certs-row { flex-direction: column; align-items: center; }

    .hero-content { bottom: 10%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .steps-grid { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
    .btn { padding: 13px 26px; font-size: 15px; }
}
