/* Explain: Styling for various UI components like buttons, cards, and forms. */
/* ---------- Buttons ---------- */
.btn-brand,
.btn-brand-outline,
.btn-brand-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-brand {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-brand:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-brand-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-brand-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-brand-light {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
}

.btn-brand-light:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}

.btn-brand-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
}

.btn-brand:disabled,
.btn-brand-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Header / nav ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--primary-color);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-mark::after {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #6dbf72;
    transform: rotate(45deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.brand-tag {
    margin-top: 3px;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-light .brand-mark {
    background: rgba(255, 255, 255, 0.14);
}

.brand-light .brand-name {
    color: #ffffff;
}

.brand-light .brand-tag {
    color: rgba(255, 255, 255, 0.6);
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-link {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:hover {
    color: var(--accent-color);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--surface-color);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.eyebrow-light {
    color: #9dc0ea;
}

.hero-title {
    margin-top: 1rem;
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title {
    margin-top: 0.85rem;
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    line-height: 1.1;
    font-weight: 800;
}

.section-lead {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Product cards ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cdd9e8;
}

.product-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #f7f9fc 0%, #eef3fa 100%);
    overflow: hidden;
}

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

.product-media .gallery-main {
    object-fit: contain;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--secondary-color);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Value / feature cards ---------- */
.value-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.step-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ---------- Stats ---------- */
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Forms ---------- */
.quote-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #9aa8bb;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(47, 116, 192, 0.16);
}

.field-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-status-success {
    color: #1c7a3f;
}

.form-status-error {
    color: #b3261e;
}

/* ---------- Contact list ---------- */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item i {
    margin-top: 0.2rem;
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}

/* ---------- Footer ---------- */
.footer-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* ---------- Hero carousel ---------- */
.hero-carousel {
    padding-bottom: 2.75rem;
}

.hero-carousel .swiper-slide {
    height: auto;
}

.hero-carousel .swiper-pagination {
    bottom: 0;
}

.hero-carousel .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--primary-color);
    opacity: 0.28;
}

.hero-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
}

.hero-carousel .swiper-button-prev,
.hero-carousel .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-carousel .swiper-button-prev::after,
.hero-carousel .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.hero-carousel .swiper-button-prev:hover,
.hero-carousel .swiper-button-next:hover {
    background: var(--accent-soft);
    color: var(--accent-color);
}

/* ---------- Product gallery (featured image + thumbnails) ---------- */
.gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
}

.gallery-thumb-active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Language switch ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.lang-switch-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch-btn + .lang-switch-btn {
    border-left: 1px solid var(--border-color);
}

.lang-switch-btn:hover {
    color: var(--primary-color);
    background: var(--surface-color);
}

.lang-switch-btn[aria-pressed="true"] {
    background: var(--primary-color);
    color: #ffffff;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 639px) {
    .lang-switch-btn {
        padding: 0.45rem 0.55rem;
        font-size: 0.72rem;
    }

    .hero-carousel .swiper-button-prev,
    .hero-carousel .swiper-button-next {
        display: none;
    }

    /* 16px prevents iOS from auto-zooming when a field is focused */
    .field-input,
    .field-textarea,
    .field-select {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }
}