html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
    color: #202124;
}

.home-card {
    max-width: 760px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #d6d6d6;
}

.home-brand-logo {
    display: block;
    height: 52px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

/* QR label (Agrocel tag layout) */
.label-page {
    box-sizing: border-box;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: #ffffff;
}

.label-shell {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 39.375rem);
    max-width: 100%;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(2.55rem, 8.4vw, 3.25rem) clamp(2.05rem, 7vw, 3.45rem) 0;
    background: #fff;
    border: clamp(2px, 0.6vw, 4px) solid #272727;
    border-radius: clamp(2.4rem, 9vw, 3.4rem);
    overflow: hidden;
    box-shadow: none;
}

.label-hero {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: clamp(13.9rem, 38vw, 16.45rem);
}

.label-ribbon-row {
    position: absolute;
    top: calc(-1 * clamp(2.55rem, 8.4vw, 3.25rem));
    left: clamp(2.5rem, 9vw, 4rem);
    display: flex;
    align-items: flex-start;
    gap: clamp(0.55rem, 2vw, 0.8rem);
}

.label-ribbon {
    display: block;
    width: clamp(1.55rem, 5vw, 2rem);
    border-radius: 0;
}

.label-ribbon--red {
    height: clamp(8.2rem, 25vw, 10.4rem);
    background: #c8323b;
}

.label-ribbon--green {
    height: clamp(5.9rem, 18vw, 7.6rem);
    background: #008f52;
}

.label-punch-hole {
    position: absolute;
    top: clamp(0.25rem, 2.2vw, 0.85rem);
    left: 50%;
    width: clamp(2.6rem, 8vw, 3rem);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #282828;
}

.brand-logo {
    display: block;
    height: auto;
    width: clamp(7.4rem, 26vw, 9.1rem);
    margin-top: clamp(3.6rem, 11vw, 4.55rem);
    margin-right: clamp(0.7rem, 3vw, 1.55rem);
    object-fit: contain;
}

.label-card {
    position: relative;
    z-index: 2;
    padding: 0;
}

.label-company {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.05rem, 3.8vw, 1.3rem);
    font-weight: 700;
    line-height: 1.12;
    color: #303030;
    text-align: left;
}

.label-address {
    margin: 0 0 clamp(1.05rem, 3.2vw, 1.3rem);
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.95rem, 3.25vw, 1.12rem);
    font-weight: 500;
    line-height: 1.14;
    color: #333;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
}

.label-table-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
}

.label-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.82rem, 2.75vw, 1rem);
    line-height: 1.08;
    color: #303030;
}

.label-table th,
.label-table td {
    border: 1px solid #777;
    padding: clamp(0.28rem, 1.2vw, 0.44rem) clamp(0.34rem, 1.4vw, 0.5rem);
    vertical-align: middle;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
}

.label-table th {
    width: 42%;
    background: #fff;
    font-weight: 700;
    color: #2d2d2d;
}

.label-table td {
    background: #fff;
    font-weight: 700;
    color: #303030;
}

.label-row-relaxed th,
.label-row-relaxed td {
    padding-top: clamp(0.5rem, 2vw, 0.72rem);
    padding-bottom: clamp(0.5rem, 2vw, 0.72rem);
    vertical-align: top;
}

.label-cell-multiline {
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: normal;
}

.label-url-link {
    color: #303030;
    text-decoration: none;
    word-break: normal;
}

.label-url-link:active {
    color: #303030;
}

.label-footer {
    position: relative;
    min-height: clamp(7.85rem, 28vw, 10rem);
    margin: 0 calc(-1 * clamp(2.05rem, 7vw, 3.45rem));
    padding: clamp(2.05rem, 7vw, 2.85rem) clamp(2.55rem, 8vw, 3.65rem) clamp(1.75rem, 6vw, 2.65rem);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.label-footer-bg {
    position: absolute;
    inset: clamp(-1.1rem, -3vw, -0.35rem) 0 0;
    pointer-events: none;
    background-color: #4a3312;
    background-image:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 252, 245, 0.55) 18%,
            rgba(255, 248, 230, 0.2) 42%,
            rgba(35, 22, 8, 0.35) 68%,
            rgba(12, 8, 4, 0.55) 100%
        ),
        url("/img/wheat-field-footer.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.label-social-row {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1.35rem, 7vw, 2.75rem);
}

.label-social {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(3.35rem, 14.5vw, 4.6rem);
    height: clamp(3.35rem, 14.5vw, 4.6rem);
    border-radius: 50%;
    text-decoration: none;
    outline: none;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 4px 16px rgba(35, 22, 8, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .label-social:hover {
        transform: translateY(-1px);
        box-shadow:
            0 6px 20px rgba(35, 22, 8, 0.32),
            0 1px 2px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }
}

.label-social:active {
    transform: translateY(0);
}

.label-social:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.55);
    outline-offset: 3px;
}

.label-social-svg {
    display: block;
    width: 58%;
    height: 58%;
    max-width: 2.35rem;
    max-height: 2.35rem;
    shape-rendering: geometricPrecision;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .label-social {
        transition: none;
    }
}