/* BoatPartsPH — clean marine marketplace */
:root {
    --navy: #001e3c;
    --teal: #00a8b5;
    --teal-dark: #008a94;
    --sand: #f4f6f8;
    --text: #1a202c;
    --muted: #5a677a;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 10px 40px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid #e5e9ef;
    position: sticky; top: 0; z-index: 100;
}
.nav-flex {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.35rem; font-weight: 800; color: var(--navy);
    text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--teal); }
.main-nav { display: flex; gap: 24px; }
.main-nav a {
    color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--teal); }
.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy);
}

.hero {
    min-height: 22vh;
    max-height: 260px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; color: var(--white);
    text-align: center;
}
.hero-content { padding: 40px 20px; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 0 0 18px; font-weight: 800; line-height: 1.1;
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 760px; margin: 0 auto 36px; opacity: 0.92;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 999px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none; font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: rgba(255,255,255,0.14); color: var(--white); border: 2px solid rgba(255,255,255,0.45); }
.btn-secondary:hover { background: rgba(255,255,255,0.22); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

.section { padding: 72px 0; }
.alt-bg { background: var(--sand); }
.section h2 { font-size: 2rem; margin: 0 0 36px; color: var(--navy); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 10px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.part-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.part-card { display: flex; flex-direction: column; }
.part-card .img-wrap { width: 100%; height: 180px; background: #f4f6f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.part-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.part-card .body { padding: 18px; }
.part-card h4 { margin: 0 0 6px; color: var(--navy); }
.part-card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.part-card .price { font-size: 1.25rem; font-weight: 800; color: var(--teal-dark); }
.empty { color: var(--muted); grid-column: 1 / -1; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card label { display: block; margin-bottom: 18px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.form-card input, .form-card textarea {
    width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #d0d7e0;
    border-radius: 8px; font: inherit; color: var(--text);
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,168,181,0.12); }
.form-card input[type="file"] { padding: 8px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

.payment-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pay-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pay-card h3 { margin: 0 0 10px; color: var(--navy); }
.pay-card p { margin: 0 0 12px; word-break: break-all; }
.pay-card .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85rem; }
.tag { display: inline-block; background: #e7f8f9; color: var(--teal-dark); padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }

.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 36px 0; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.site-footer .small { font-size: 0.85rem; opacity: 0.7; }

.muted { color: var(--muted); }

@media (max-width: 720px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

/* Hero overlap layout */
.hero-tall {
    min-height: 280px;
    max-height: 340px;
    padding-top: 10px;
    padding-bottom: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}
.hero-tall .hero-content {
    padding: 10px 20px 0;
}
.hero-tall .hero-sub {
    margin-bottom: 18px;
}
.hero-tall .hero-cta {
    margin-bottom: 0;
}
.listings-overlap {
    margin-top: -130px;
    padding-top: 0;
    position: relative;
    z-index: 10;
    background: transparent !important;
}
.listings-overlap .section-head {
    margin-bottom: 18px;
    color: var(--white);
}
.listings-overlap .section-head h2 {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.listings-overlap .parts-grid {
    gap: 18px;
}
.listings-overlap + .section {
    padding-top: 52px;
}
@media (max-width: 720px) {
    .hero-tall {
        padding-bottom: 140px;
        min-height: 240px;
    }
    .listings-overlap {
        margin-top: -150px;
    }
}
