/* Modern brand refresh */
:root {
    --brand: #0d6b57;
    --brand-dark: #083e34;
    --gold: #d3a94a;
    --ink: #17201e;
    --muted: #66736f;
    --surface: #ffffff;
    --soft: #f2f6f4;
}

html { scroll-behavior: smooth; }
body {
    background: #f8faf9;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
header { backdrop-filter: blur(14px); }
.header-inner { max-width: 1180px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.3px; }
.enhanced-logo { width: 58px; height: 58px; max-width: 58px; object-fit: contain; border-radius: 10px; margin: 0; }
.main-nav { gap: 6px; }
.main-nav a { color: #47534f; font-size: 0.98rem; }

main { max-width: 1180px; margin: 84px auto 0; padding: 0 24px; }
.hero { min-height: 620px; display: grid; grid-template-columns: 1.18fr 0.82fr; align-items: center; padding: 58px 64px 170px; margin: 0; width: auto; border-radius: 0 0 28px 28px; box-sizing: border-box; }
.hero::before {
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 82% 30%, rgba(211,169,74,0.16), transparent 25%),
        linear-gradient(135deg, #edf5f1 0%, #daeae4 100%);
}
.hero-copy { position: relative; z-index: 3; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 0.78rem; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.hero-title { max-width: 620px; margin: 12px 0 16px; color: var(--ink); font-size: clamp(3rem, 5vw, 5.2rem); line-height: 0.98; letter-spacing: -3px; }
.hero-title span { color: var(--brand); }
.hero-tagline { max-width: 560px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; position: relative; z-index: 4; }
.cta-btn { border-radius: 8px; background: var(--brand); background-image: none; padding: 14px 22px; box-shadow: 0 10px 24px rgba(13,107,87,0.16); }
.cta-btn:hover { background: var(--brand-dark); background-image: none; transform: translateY(-2px); }
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid #c8d5d0; border-radius: 8px; color: var(--ink); background: rgba(255,255,255,0.68); text-decoration: none; font-weight: 700; }
.secondary-btn:hover { border-color: var(--brand); color: var(--brand); }
.hero-brand { display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; }
.hero-brand-ring { width: 340px; height: 340px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.72); border: 1px solid rgba(13,107,87,0.12); box-shadow: 0 24px 60px rgba(22,79,64,0.12); }
.hero-brand-ring img { width: 270px; height: 270px; object-fit: contain; border-radius: 50%; }
.hero-stats {
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    box-sizing: border-box;
    padding: 20px 64px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(13,107,87,0.13);
}
.hero-stats div {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid rgba(13,107,87,0.13);
}
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { color: var(--brand); font-size: 1.28rem; }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }

.enhanced-categories { padding: 88px 0 20px; }
.section-heading { max-width: 620px; margin: 0 auto 42px; }
.section-heading h2 { margin: 8px 0 10px; color: var(--ink); font-size: 2.6rem; letter-spacing: -1.5px; }
.section-heading p { color: var(--muted); }
.enhanced-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.enhanced-card { min-width: 0; min-height: 210px; align-items: flex-start; text-align: left; padding: 28px; border: 1px solid #e3ebe7; border-radius: 14px; background: var(--surface); box-shadow: 0 8px 30px rgba(28,67,55,0.05); }
.enhanced-card:hover { background: var(--brand); border-color: var(--brand); box-shadow: 0 16px 36px rgba(13,107,87,0.16); }
.cat-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; background: var(--soft); }
.cat-title { color: var(--ink); font-size: 1.08rem; }
.cat-link { margin-top: auto; color: var(--brand); font-size: 0.82rem; }
.enhanced-card:hover .cat-title, .enhanced-card:hover .cat-link { color: #fff; }
.enhanced-card:hover .cat-icon { background: rgba(255,255,255,0.12); }

.home-cta { margin: 70px 0 20px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 16px; background: var(--brand-dark); }
.home-cta h2 { max-width: 680px; margin: 7px 0 0; color: #fff; font-size: 2rem; }
.home-cta .eyebrow { color: #81cbb7; }
.home-cta .cta-btn { white-space: nowrap; background: var(--gold); color: #1d2a26; }
.home-cta .cta-btn:hover { background: #edc86d; }

footer { background: #fff; }

/* Navigation as logo-matched buttons */
.main-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #dde8e3;
    border-radius: 8px;
    background: #fff;
    color: #3b4a45;
    box-shadow: 0 3px 10px rgba(13,107,87,0.04);
}
.main-nav a:hover,
.main-nav a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 7px 16px rgba(13,107,87,0.16);
}

/* Branded footer */
.site-footer {
    width: 100%;
    margin-top: 64px;
    padding: 0;
    border-top: 4px solid var(--gold);
    background: var(--brand-dark);
    color: #fff;
}
.site-footer .footer-inner {
    max-width: 1180px;
    min-height: 180px;
    margin: 0 auto;
    padding: 36px 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 1fr;
    align-items: center;
    gap: 36px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-brand img {
    width: 74px;
    height: 74px;
    border: 4px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}
.footer-brand div {
    display: flex;
    flex-direction: column;
}
.footer-brand strong {
    color: #fff;
    font-size: 1.55rem;
    letter-spacing: 0.5px;
}
.footer-brand span {
    margin-top: 6px;
    color: #c8e2da;
    font-size: 0.78rem;
}
.footer-label {
    display: block;
    margin-bottom: 10px;
    color: #e8bd63;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.footer-address p {
    margin: 0;
    color: #d5e5df;
    line-height: 1.7;
}
.footer-contact {
    display: flex;
    flex-direction: column;
}
.footer-contact a {
    color: #fff;
    line-height: 1.9;
    text-decoration: none;
}
.footer-contact a:hover {
    color: #e8bd63;
}
.footer-bottom {
    min-height: 48px;
    padding: 0 max(24px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: #a8c5bb;
    font-size: 0.78rem;
}

/* Header brand and action contrast fixes */
.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 2px;
    line-height: 1.05;
}
.brand-name {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}
.brand-tagline {
    display: block;
    margin-top: 6px;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.cta-btn,
.hero-actions .cta-btn {
    color: #ffffff;
}
.hero-actions .secondary-btn {
    color: var(--ink);
}

/* Products page */
.products-main {
    max-width: 1180px;
    margin: 84px auto 0;
    padding: 0 24px 72px;
}
.products-hero {
    min-height: 220px;
    margin: 24px 0 28px;
    padding: 44px 52px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid #dce8e3;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 25%, rgba(211,169,74,0.18), transparent 22%),
        linear-gradient(135deg, #eef5f2 0%, #dceae4 100%);
}
.products-hero h1 {
    margin: 8px 0 10px;
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -2px;
}
.products-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.products-summary {
    min-width: 150px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(13,107,87,0.12);
}
.products-summary strong {
    color: var(--brand);
    font-size: 2.2rem;
    line-height: 1;
}
.products-summary span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
}
.products-section {
    min-width: 0;
}
.products-toolbar {
    margin-bottom: 24px;
}
.product-search {
    width: 100%;
    height: 52px;
    margin-bottom: 14px;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe8e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(28,67,55,0.05);
}
.product-search span {
    color: var(--brand);
    font-size: 1.35rem;
}
.product-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}
.category-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}
.filter-button {
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #dde7e3;
    border-radius: 8px;
    background: #fff;
    color: #4c5a55;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.filter-button span {
    font-size: 0.95rem;
}
.filter-button:hover,
.filter-button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.product-grid {
    display: block;
    min-height: 220px;
}
.product-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
}
.product-card {
    min-width: 0;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e1e9e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28,67,55,0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #c7d8d1;
    box-shadow: 0 16px 34px rgba(28,67,55,0.11);
}
.product-image-container {
    position: relative;
    width: 100%;
    height: 210px;
    min-height: 210px;
    margin: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13,107,87,0.035), rgba(211,169,74,0.08)),
        #f6f8f7;
}
.product-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    padding: 14px;
    box-sizing: border-box;
}
.product-placeholder {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(13,107,87,0.12);
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    color: var(--brand);
    font-size: 1.6rem;
}
.product-card-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.product-category-label {
    margin-bottom: 7px;
    color: var(--brand);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.product-name {
    min-height: 44px;
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}
.product-code {
    margin: 0 0 4px;
    color: #596660;
    font-size: 0.78rem;
}
.product-material {
    color: #87938f;
    font-size: 0.74rem;
}
.whatsapp-btn {
    position: relative;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    overflow: hidden;
    border: 1px solid #1b9f5a;
    border-radius: 10px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 7px 16px rgba(18,140,126,0.16), inset 0 1px rgba(255,255,255,0.22);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1px;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent 45%);
    pointer-events: none;
}
.whatsapp-icon {
    position: relative;
    z-index: 1;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: #fff;
}
.whatsapp-btn > span:not(.whatsapp-arrow) {
    position: relative;
    z-index: 1;
    flex: 1;
}
.whatsapp-arrow {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    font-size: 1rem;
    transition: transform 180ms ease, background 180ms ease;
}
.whatsapp-btn:hover {
    background: linear-gradient(135deg, #31c77a 0%, #087a6c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(18,140,126,0.24), inset 0 1px rgba(255,255,255,0.25);
    filter: saturate(1.08);
}
.whatsapp-btn:hover .whatsapp-arrow {
    transform: translateX(3px);
    background: rgba(255,255,255,0.24);
}
.product-loading,
.product-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cadbd4;
    border-radius: 14px;
    background: #fff;
    color: var(--muted);
}
.product-empty strong {
    color: var(--ink);
    font-size: 1.1rem;
}
.product-empty span {
    margin-top: 6px;
}

@media (max-width: 900px) {
    main {
        margin-top: 84px;
    }
    .hero.enhanced-hero {
        min-height: 500px;
        align-items: start;
        padding: 48px 32px 40px;
    }
    .hero-title {
        max-width: 440px;
        font-size: clamp(2.35rem, 6vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -1.8px;
    }
    .hero-tagline {
        max-width: 440px;
        font-size: 1rem;
        line-height: 1.55;
    }
    .hero-brand-ring {
        width: 220px;
        height: 220px;
    }
    .hero-brand-ring img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 700px) {
    main {
        margin-top: 72px;
    }
    .hero.enhanced-hero {
        min-height: 560px;
        grid-template-columns: 1fr;
        align-items: start;
        padding: 36px 22px 44px;
    }
    .hero-copy {
        width: 100%;
    }
    .hero-title {
        max-width: 100%;
        font-size: clamp(2.25rem, 10vw, 3.1rem);
        line-height: 1;
        margin-top: 10px;
    }
    .hero-tagline {
        max-width: 100%;
    }
    .hero-brand {
        position: absolute;
        right: -20px;
        bottom: 96px;
        opacity: 0.12;
    }
    .hero-brand-ring {
        width: 210px;
        height: 210px;
        border: 0;
        box-shadow: none;
    }
    .hero-brand-ring img {
        width: 170px;
        height: 170px;
    }
    .hero-actions {
        position: relative;
        z-index: 5;
        gap: 10px;
    }
    .hero-stats {
        margin-top: 0;
    }
}

/* Final responsive and header overrides */
header {
    height: 84px;
}
.header-inner {
    width: calc(100% - 48px);
    max-width: 1180px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 18px;
}
.brand {
    flex-shrink: 0;
}
.main-nav {
    width: auto;
    flex-shrink: 0;
}
.hero.enhanced-hero {
    overflow: hidden;
}

@media (max-width: 700px) {
    header { height: 72px; }
    .header-inner {
        width: calc(100% - 24px);
        height: 72px;
        margin: 0 auto;
        padding: 0;
        gap: 8px;
    }
    .brand-name { display: none; }
    .main-nav {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 2px;
    }
    .main-nav a {
        padding: 7px 7px;
        white-space: nowrap;
        font-size: 0.78rem;
    }
    .hero.enhanced-hero {
        width: calc(100% + 24px);
        margin-left: -12px;
        min-height: 520px;
        padding: 34px 22px 36px;
    }
    .hero-title {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }
    .hero-brand { bottom: 48px; }
}

@media (max-width: 420px) {
    .header-inner {
        width: calc(100% - 16px);
    }
    .enhanced-logo {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
    .main-nav a {
        padding: 6px 5px;
        font-size: 0.72rem;
    }
}

/* Final hero action layout */
.hero.enhanced-hero .hero-copy .hero-actions,
.hero.enhanced-hero > .hero-copy > .hero-actions {
    display: flex;
    width: auto;
    max-width: 520px;
    flex-direction: row;
    align-items: center;
}
.hero.enhanced-hero .hero-actions .cta-btn,
.hero.enhanced-hero .hero-actions .secondary-btn {
    display: inline-flex;
    width: auto;
    min-width: 210px;
    height: 52px;
    margin: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 700;
}
.hero.enhanced-hero .hero-actions .cta-btn {
    color: #fff;
}
.hero.enhanced-hero .hero-actions .secondary-btn {
    color: var(--ink);
}

@media (max-width: 700px) {
    .hero.enhanced-hero .hero-copy .hero-actions,
    .hero.enhanced-hero > .hero-copy > .hero-actions {
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }
    .hero.enhanced-hero .hero-actions .cta-btn,
    .hero.enhanced-hero .hero-actions .secondary-btn {
        width: 100%;
        min-width: 0;
    }
}