/* ============================================================
   ChaarX Swet Out — Main Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --color-bg: #f7f0e6;
    --color-bg-soft: #fff9f1;
    --color-surface: rgba(255, 252, 246, 0.82);
    --color-surface-hover: rgba(255, 255, 255, 0.92);
    --color-text: #1a2e2c;
    --color-text-muted: #5a706b;
    --color-border: rgba(33, 52, 50, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.5);
    --color-primary: #0d7a67;
    --color-primary-dark: #06504a;
    --color-accent: #ea6d3b;
    --color-accent-hover: #d85e2f;
    --color-accent-glow: rgba(234, 109, 59, 0.25);
    --color-white: #ffffff;

    --font-body: "Manrope", system-ui, -apple-system, sans-serif;
    --font-display: "Fraunces", Georgia, serif;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    --shadow-sm: 0 4px 12px rgba(24, 41, 38, 0.06);
    --shadow-md: 0 12px 32px rgba(24, 41, 38, 0.1);
    --shadow-lg: 0 24px 56px rgba(24, 41, 38, 0.14);
    --shadow-glow: 0 16px 40px var(--color-accent-glow);

    --container-max: 1140px;
    --transition-fast: 180ms ease;
    --transition-base: 300ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(234, 109, 59, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 0%, rgba(13, 122, 103, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #f8f1e7 0%, #fdf9f3 50%, #f4ece0 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: min(var(--container-max), calc(100% - 2rem));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #f0924d 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px var(--color-accent-glow);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-text);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 0.88rem;
}

/* --- Eyebrow / Label --- */
.eyebrow {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow--lg {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.lead {
    margin-top: var(--space-sm);
    max-width: 60ch;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* --- Section Titles --- */
.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.1;
}

.section-header {
    max-width: 720px;
    margin-bottom: var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(248, 241, 231, 0.78);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base);
}

.site-header--inner {
    background: rgba(255, 250, 242, 0.92);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.brand__logo {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(7, 70, 60, 0.18);
    overflow: hidden;
    padding: 5px;
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand__text strong {
    font-size: 1rem;
    line-height: 1.2;
}

.brand__text span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__link {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 4px;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--color-text);
}

.nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__icon:hover {
    color: var(--color-text);
    background: rgba(33, 52, 50, 0.06);
}

.nav__icon svg {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--color-text);
    transition: transform var(--transition-fast);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero__bg img.is-loaded {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(26, 46, 44, 0.12) 0%,
            rgba(26, 46, 44, 0.38) 35%,
            rgba(26, 46, 44, 0.78) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 140px 0 var(--space-xl);
}

.hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    line-height: 1.05;
    color: var(--color-white);
    max-width: 14ch;
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.hero__badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    display: none;
}

/* Hero feature chips */
.hero__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.feature-chip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: background var(--transition-base), transform var(--transition-fast);
}

.feature-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.feature-chip__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-chip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.feature-chip span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.benefit-card {
    padding: var(--space-md) var(--space-md) 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   WHERE TO BUY
   ============================================ */
.buy {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.buy__header {
    max-width: 720px;
    margin-bottom: var(--space-lg);
}

.buy__header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.1;
}

.buy__header p {
    margin-top: var(--space-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Store Grid (auto-fills from JSON) --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
    align-items: start;
}

.store-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-xl) 0;
}

.store-card {
    padding: var(--space-md) 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.store-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.store-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

/* ============================================
   INFO / STORE CARD
   ============================================ */
.info-card {
    padding: var(--space-md) 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.info-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.info-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.map-wrap {
    margin: var(--space-sm) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-wrap iframe {
    display: block;
    width: 100%;
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.use-cases__list {
    display: grid;
    gap: var(--space-md);
}

.use-case {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base);
}

.use-case:hover {
    box-shadow: var(--shadow-lg);
}

.use-case__visual {
    position: relative;
    min-height: 260px;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.use-case__visual::before,
.use-case__visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.use-case__visual::before {
    width: 180px;
    height: 180px;
    right: -40px;
    top: -34px;
}

.use-case__visual::after {
    width: 140px;
    height: 140px;
    left: -28px;
    bottom: -30px;
}

.use-case__visual--refresh {
    background: linear-gradient(145deg, #e87840 0%, #f3b156 50%, #f7d68c 100%);
}

.use-case__visual--hygiene {
    background: linear-gradient(145deg, #1e5456 0%, #28787c 50%, #7dd0c2 100%);
}

.use-case__visual--service {
    background: linear-gradient(145deg, #5f3c29 0%, #b47348 55%, #edcfa8 100%);
}

.use-case__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.use-case__visual h3,
.use-case__visual p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.use-case__visual h3 {
    margin-bottom: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.7rem;
}

.use-case__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.use-case__visual.has-img .use-case__label,
.use-case__visual.has-img h3,
.use-case__visual.has-img p {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.use-case__body h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.use-case__body p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.use-case__quote {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.95rem;
}

/* ============================================
   AUDIENCE
   ============================================ */
.audience {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    align-items: start;
}

.audience__list {
    display: grid;
    gap: var(--space-sm);
}

.audience__item {
    padding: 22px var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--color-border);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.audience__item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.audience__item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.audience__item p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE — Hero
   ============================================ */
.page-hero {
    padding: 100px 0 var(--space-xl);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    align-items: center;
}

.page-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.8vw, 4.2rem);
    line-height: 1.08;
}

.contact-summary {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.contact-summary strong {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.contact-summary p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-lg) 0 var(--space-2xl);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    align-items: start;
}

.form-card {
    padding: var(--space-md) 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
}

.form-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1.15;
}

.form-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label > span {
    font-weight: 700;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.7);
    transition: border-color var(--transition-fast), outline var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(13, 122, 103, 0.2);
    border-color: var(--color-primary);
}

.form-note {
    margin-top: var(--space-xs);
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ============================================
   SUPPORT SECTION
   ============================================ */
.support {
    padding: var(--space-lg) 0 var(--space-2xl);
}

.support__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.support-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.support-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.support-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.support-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: var(--space-md) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: rgba(255, 250, 244, 0.6);
}

.footer__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.footer__brand strong {
    font-size: 1rem;
}

.footer__brand p {
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.footer__links a:hover {
    color: var(--color-text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 120ms; }
.reveal--delay-2 { transition-delay: 240ms; }
.reveal--delay-3 { transition-delay: 360ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 980px) {
    .hero__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits__grid,
    .support__grid {
        grid-template-columns: 1fr;
    }

    .buy__grid,
    .store-grid,
    .audience__grid,
    .contact__grid,
    .page-hero__grid {
        grid-template-columns: 1fr;
    }

    .use-case {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-sm);
        border-radius: var(--radius-lg);
        background: rgba(255, 251, 245, 0.98);
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .nav.is-open {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .hero__content {
        padding: 110px 0 var(--space-lg);
    }

    .hero__features {
        grid-template-columns: 1fr;
    }

    .hero__badge {
        display: block;
        width: 90px;
        height: 90px;
    }

    .page-hero,
    .benefits,
    .use-cases,
    .audience,
    .buy,
    .contact,
    .support {
        padding: var(--space-xl) 0;
    }

    .page-hero h1 {
        max-width: none;
    }

    .footer__wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .benefit-card,
    .support-card,
    .audience__item,
    .feature-chip,
    .reveal {
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
