/* Braro Packing — home page. Values lifted from the Claude Design file. */
:root {
    --ink: #1A2812;
    /* Brand: logo green #57893A. --green is the same hue a touch deeper so white button text passes WCAG AA (4.6:1). */
    --brand: #57893A;
    --green: #528137;
    --green-dark: #446B2E;
    --forest: #2C4C1C;
    --leaf: var(--brand);
    --moss: #6E8459;
    --text-2: #405A36;
    --text-3: #4C6340;
    --nav: #3E5636;
    --line: #DEE6D3;
    --line-2: #E3EBD9;
    --chip-line: #D1DDBE;
    --btn-line: #BCCCA3;
    --bg: #F5F8F0;
    --bg-2: #EBF1E3;
    --tile: #EEF3E8;
    --serif: 'Newsreader', Georgia, serif;
    --wrap: 1280px;
}

html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', 'Noto Sans Arabic', 'Noto Sans SC', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }
input, textarea, select, button { font: inherit; color: inherit; }
::placeholder { color: #93A382; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.serif { font-family: var(--serif); font-weight: 400; }
.pretty { text-wrap: pretty; }

/* Buttons */
.btn {
    display: inline-block; border-radius: 999px; font-size: 15px; font-weight: 500;
    padding: 14px 26px; cursor: pointer; border: 0; text-align: center;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--btn-line); background: rgba(255,255,255,.6); color: var(--green); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; font-weight: 400; }
.btn-outline { border: 1px solid var(--line); background: transparent; color: var(--green); }
.btn-outline:hover { border-color: var(--brand); }
.btn.is-added { background: var(--leaf); }

/* Image placeholder, shown until an image is uploaded in the admin */
.media { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
    width: 100%; height: 100%; display: grid; place-items: center; box-sizing: border-box; padding: 12px;
    background: repeating-linear-gradient(135deg, rgba(85,138,59,.07) 0 12px, transparent 12px 24px);
    color: #93A382; font-size: 13px; text-align: center;
}

/* Utility bar */
.util { background: var(--forest); color: #DFEAD3; font-size: 13px; }
.util .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.util span { opacity: .85; }
.util .grow { flex: 1; min-width: 8px; }
.langs { display: flex; gap: 3px; align-items: center; background: rgba(255,255,255,.09); border-radius: 999px; padding: 3px; }
.langs a { border-radius: 999px; padding: 5px 11px; font-size: 12.5px; line-height: 1.2; color: #DFEAD3; }
.langs a:hover { color: #fff; }
.langs a.is-active { background: var(--bg); color: var(--forest); font-weight: 500; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .bar { padding-top: 15px; padding-bottom: 15px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 36px; width: auto; display: block; }
.brand-line { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); }
.search {
    flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
}
.search span { color: var(--moss); }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; min-width: 60px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .count { font-size: 13.5px; color: var(--text-3); }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }
.site-nav { border-top: 1px solid #E8EFE2; }
.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 0 26px; }
.site-nav a { padding: 12px 0; font-size: 14.5px; color: var(--nav); border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brand); color: var(--ink); }

/* Hero */
.hero { background: var(--bg-2); }
.tabs { padding-top: 28px; padding-bottom: 8px; display: flex; gap: 10px; overflow-x: auto; }
.tab {
    flex: 0 0 auto; cursor: pointer; border-radius: 999px; padding: 9px 18px; font-size: 14px; white-space: nowrap;
    background: rgba(255,255,255,.7); color: var(--nav); border: 1px solid var(--chip-line);
}
.tab.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.hero-grid {
    padding-top: 18px; padding-bottom: 56px; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center;
}
.eyebrow { display: inline-block; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--moss); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; margin: 0 0 18px; }
.hero-blurb { margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 34px; border-top: 1px solid #D5E0C4; padding-top: 22px; }
.stat-value { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--moss); letter-spacing: .04em; }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; background: #DEE7D3; aspect-ratio: 4 / 3; }
.hero-frame { position: absolute; inset: 0; transition: opacity .45s ease; opacity: 0; pointer-events: none; }
.hero-frame.is-active { opacity: 1; pointer-events: auto; }
.hero-badge {
    position: absolute; inset-inline-start: 18px; bottom: 18px; background: rgba(255,255,255,.94); border-radius: 12px;
    padding: 10px 16px; font-size: 13px; color: var(--green); pointer-events: none;
}

/* Sections */
.section-head { margin-bottom: 26px; }
.section-head h2, .why h2, .quote h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--text-3); font-size: 16px; max-width: 58ch; }
.catalog { padding-top: 72px; padding-bottom: 8px; }
.catalog .section-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.view-all { font-size: 14.5px; border-bottom: 1px solid var(--btn-line); padding-bottom: 2px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { display: block; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; color: var(--ink); }
a.card:hover { border-color: var(--brand); color: var(--ink); }
.cat-card .thumb { height: 168px; background: var(--tile); }
.cat-card .body { padding: 16px 18px 18px; }
.cat-card .name { font-family: var(--serif); font-size: 19px; margin-bottom: 5px; }
.cat-card .note { font-size: 13.5px; color: var(--moss); }

.products { padding-top: 64px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.prod-card { display: flex; flex-direction: column; }
.prod-card .thumb { height: 200px; background: var(--tile); position: relative; }
.prod-tag {
    position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(44,76,28,.92); color: #fff;
    font-size: 11.5px; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; pointer-events: none;
}
.prod-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-name { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.prod-spec { font-size: 13px; color: var(--moss); }
.prod-moq { font-size: 13px; color: var(--green); }
.prod-card .grow { flex: 1; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Why */
.why-wrap { margin-top: 72px; }
.why { background: var(--forest); color: #E5EDDD; border-radius: 24px; padding: 52px 44px; }
.why h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.why > p { margin: 0 0 34px; font-size: 16px; max-width: 60ch; color: #C9D8B6; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.benefit { border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; }
.benefit-title { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 8px; }
.benefit-body { font-size: 14.5px; line-height: 1.55; color: #C0D1AE; }

/* Certifications */
.certs { padding-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: center; }
.certs h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 10px; }
.certs p { margin: 0 0 22px; color: var(--text-3); font-size: 16px; max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--chip-line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--green); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--moss); padding: 0 0 0 6px; font-size: 14px; }
.certs-media { border-radius: 20px; overflow: hidden; height: 260px; background: #E4EBDB; }

/* Quote form */
.quote-wrap { margin-top: 72px; }
.quote {
    background: #fff; border: 1px solid var(--line-2); border-radius: 24px; padding: 44px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}
.quote h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.quote > div > p { margin: 0 0 20px; color: var(--text-3); font-size: 16px; max-width: 44ch; }
.contact-lines { font-size: 14.5px; color: var(--text-3); line-height: 1.9; }
.contact-lines a { color: var(--text-3); }
.quote form { display: grid; gap: 12px; }
.field {
    border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 15px; outline: none;
    background: #F9FAF5; width: 100%; box-sizing: border-box;
}
.field:focus { border-color: var(--leaf); }
textarea.field { resize: vertical; }
.quote-items { border: 1px dashed var(--chip-line); border-radius: 12px; padding: 12px 14px; }
.quote-items-label { font-size: 12.5px; color: var(--moss); margin-bottom: 8px; }
.quote-items .empty { font-size: 13.5px; color: #93A382; }
.form-errors { background: #FDF1EF; color: #8A2E1E; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.form-errors ul { margin: 0; padding-inline-start: 18px; }
.form-sent { background: #EAF3E2; color: var(--forest); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }

/* Footer */
.site-footer { margin-top: 72px; background: var(--ink); color: #BCCBAA; }
.footer-grid { padding-top: 56px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 10px; }
.footer-about { margin: 0; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer-col-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #829470; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #BCCBAA; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    padding-top: 18px; padding-bottom: 34px; border-top: 1px solid rgba(255,255,255,.12);
    display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: #829470;
}

@media (max-width: 640px) {
    .why { padding: 36px 24px; }
    .quote { padding: 28px 20px; }
    .hero-grid { grid-template-columns: 1fr; }
    .certs { grid-template-columns: 1fr; }
    /* The full header would eat half a phone screen if it stayed pinned. */
    .site-header { position: static; }
    .site-header .bar { gap: 12px; }
    .brand img { height: 30px; }
    .search { order: 3; flex-basis: 100%; }
    .header-cta { margin-inline-start: auto; }
    .site-nav .wrap { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0 20px; }
    html { scroll-padding-top: 0; }
}
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
