:root {
    --main: #1f2933;
    --muted: #7c5f4a;

    --bg: #fff7f0;
    --card: #ffffff;
    --border: #f3d6bd;

    --accent: #ff8a3d;
    --accent-dark: #e66f22;
    --accent-light: #fff0e3;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --footer-bg: #2a1609;
    --footer-muted: #f3c6a6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 138, 61, 0.18), transparent 32%),
        linear-gradient(180deg, #fff7f0 0%, #fffaf5 48%, #ffffff 100%);
    color: var(--main);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 250, 245, 0.94);
    border-bottom: 1px solid rgba(255, 138, 61, 0.22);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--main);
    text-decoration: none;
}

.brand-logo-box {
    
    background: #ff914d;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    padding: 10px ;
    width: 80px;
    height: auto;
    display: block;
    border-radius: 14px;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-text small {
    display: block;
    font-size: 9px;
    line-height: 1.1;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-support {
    display: grid;
    gap: 4px;
    text-align: right;
}

.header-support span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-support a {
    color: var(--main);
    font-weight: 800;
    text-decoration: none;
}

.hero {
    padding: 72px 0 42px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 8px 12px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid rgba(255, 138, 61, 0.22);
    border-radius: 999px;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.subtitle {
    max-width: 650px;
    margin: 20px 0 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.check-form {
    display: grid;
    gap: 10px;
    max-width: 560px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(255, 138, 61, 0.14);
}

.check-form label {
    font-weight: 700;
}

.serial-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: #fffaf5;
}

.serial-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.16);
    background: #ffffff;
}

button {
    height: 52px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9b52, #ff7a1a);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 122, 26, 0.26);
}

button:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.field-error {
    color: var(--danger);
    font-size: 14px;
}

.info-card {
    background: linear-gradient(145deg, #2a1609, #4a240b);
    color: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(74, 36, 11, 0.22);
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 2;
    color: #ffe0c2;
}

.info-card h3 {
    margin-top: 0;
}



.result-section {
    padding: 12px 0 70px;
}

.result-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-left: 7px solid var(--accent);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(255, 138, 61, 0.12);
}

.result-card.success {
    border-left-color: var(--success);
}

.result-card.warning {
    border-left-color: var(--warning);
}

.result-card.danger {
    border-left-color: var(--danger);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-header h2 {
    margin: 0;
    font-size: 26px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
}

.result-card.success .status-dot {
    background: var(--success);
}

.result-card.warning .status-dot {
    background: var(--warning);
}

.result-card.danger .status-dot {
    background: var(--danger);
}

.result-card p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.details-grid div {
    border: 1px solid var(--border);
    background: #fffaf5;
    border-radius: 18px;
    padding: 16px;
}

.details-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

.details-grid strong {
    font-size: 16px;
}

.whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.22);
}

.support-note {
    margin-top: 12px;
    font-size: 14px;
    color: #475569;
}

.support-note strong {
    color: #0f172a;
}

.footer {
    background: linear-gradient(145deg, #2a1609, #1a0d05);
    color: #ffffff;
    padding: 46px 0 22px;
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.footer-logo-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.footer-logo {
    border-radius: 20%;
    width: 80px;
    height: auto;
    display: block;
}

.footer-brand strong,
.footer-column h4 {
    display: block;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
}

.footer-brand p {
    margin: 0;
    max-width: 330px;
    color: var(--footer-muted);
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-list li {
    color: var(--footer-muted);
}

.footer-list span {
    display: inline-block;
    min-width: 76px;
    color: #cbd5e1;
    font-weight: 700;
}

.footer a {
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 138, 61, 0.24);
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.12);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--footer-muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 42px;
    }

    .hero-grid,
    .details-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .nav {
        min-height: 62px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo-box {
        padding: 4px 5px;
        border-radius: 14px;
    }

    .brand-logo {
        width: 54px;
        border-radius: 10px;
    }

    .brand-text {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .brand-text strong {
        font-size: 14px;
        line-height: 1.05;
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-text small {
        display: block;
        font-size: 9px;
        line-height: 1.1;
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-support {
        display: none;
    }
}

/* ===== Responsive layout fixes ===== */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Navbar general improvement */
.nav {
    min-height: 72px;
}

.brand {
    min-width: 0;
}

.brand-logo-box {
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-text strong,
.brand-text small {
    white-space: nowrap;
}

/* Tablet / iPad */
@media (max-width: 1024px) {
    .container {
        width: min(100% - 28px, 920px);
    }

    .hero {
        padding: 48px 0 34px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-card {
        max-width: 100%;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 100%);
    }

    .topbar {
        position: sticky;
        top: 0;
    }

    .nav {
        min-height: 60px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo-box {
        padding: 4px 5px;
        border-radius: 14px;
    }

    .brand-logo {
        width: 58px;
        border-radius: 10px;
    }

    .brand-text {
        display: grid;
        gap: 1px;
    }

    .brand-text strong {
        font-size: 15px;
        line-height: 1.1;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        display: none;
    }

    .header-support {
        display: none;
    }

    .hero {
        padding: 34px 0 24px;
    }

    h1 {
        font-size: 31px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .subtitle {
        margin: 16px 0 22px;
        font-size: 16px;
        line-height: 1.55;
    }

    .check-form {
        padding: 14px;
        border-radius: 20px;
    }

    .serial-input,
    button {
        height: 50px;
        border-radius: 14px;
    }

    .info-card {
        padding: 22px;
        border-radius: 22px;
    }

    .result-section {
        padding: 8px 0 46px;
    }

    .result-card {
        padding: 20px;
        border-radius: 22px;
    }

    .result-header h2 {
        font-size: 22px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .details-grid div {
        padding: 14px;
    }

    .whatsapp {
        width: 100%;
        min-height: 50px;
        text-align: center;
    }

    .footer {
        padding: 34px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-logo-row {
        flex-direction: row;
        align-items: center;
    }

    .footer-logo {
        width: 86px;
    }

    .footer-bottom {
        margin-top: 26px;
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        min-height: 36px;
        padding: 0 11px;
        font-size: 14px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .brand-logo {
        width: 52px;
    }

    .brand-text strong {
        font-size: 14px;
        max-width: 100px;
    }

    h1 {
        font-size: 28px;
    }
}

#warranty-result {
    scroll-margin-top: 90px;
}

@media (max-width: 640px) {
    #warranty-result {
        scroll-margin-top: 75px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #fff0e3;
    border: 1px solid #f3d6bd;
    border-radius: 999px;
}

.language-switch a {
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #7c5f4a;
}

.language-switch a.active {
    background: #ff8a3d;
    color: #ffffff;
}

@media (max-width: 640px) {
    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .language-switch {
        padding: 3px;
        gap: 4px;
    }

    .language-switch a {
        min-width: 36px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }

    .header-support {
        display: none;
    }
}