/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark:   #1a2a14;
    --green-mid:    #2d5a1b;
    --green-main:   #4a8a2a;
    --green-bright: #6aaa3a;
    --green-light:  #eaf3de;
    --green-text:   #3b6d11;
    --green-accent: #5a9e2a;

    --nav-height: 58px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f4f4f0;
}

/* ── Top bar (matches app1.tugit.ca) ─────────────────────────────────────── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-mid) 40%, var(--green-bright) 100%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.top-bar__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.top-bar__logo {
    height: 38px;
    width: auto;
    display: block;
}

.top-bar__nav {
    display: flex;
    gap: 28px;
}

.top-bar__nav a {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.top-bar__nav a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.6);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--green-dark);
    padding: 60px 24px 52px;
    text-align: center;
    border-bottom: 1px solid #2d4a1e;
}

.hero-badge {
    display: inline-block;
    background: rgba(106,170,58,0.18);
    color: #8ecf55;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(106,170,58,0.32);
    margin-bottom: 20px;
}

.hero h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero p {
    color: rgba(255,255,255,0.58);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--green-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--green-main); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.28);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.55); }

/* ── Content sections ────────────────────────────────────────────────────── */
.content-section {
    padding: 56px 24px;
    background: #fff;
    border-bottom: 1px solid #e8e8e2;
}

.content-section.section-alt {
    background: #f4f4f0;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-accent);
    margin-bottom: 8px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.section-sub {
    font-size: 15px;
    color: #555;
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.65;
}

/* ── Steps grid ──────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.step-card {
    background: #f9f9f6;
    border: 1px solid #e0e0d8;
    border-radius: 12px;
    padding: 24px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.step-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
}

.step-img-placeholder {
    width: 100%;
    height: 120px;
    background: #12233a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img-placeholder span {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ── Sheets grid ─────────────────────────────────────────────────────────── */
.sheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.sheet-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sheet-thumb {
    height: 120px;
    background: #f0f0ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdf-icon {
    width: 38px;
    height: 44px;
    background: var(--green-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--green-text);
    letter-spacing: 0.05em;
}

.sheet-lines { display: flex; flex-direction: column; gap: 4px; width: 70px; }
.sheet-line { height: 3px; background: #ccc; border-radius: 2px; }
.sheet-line.short { width: 80%; }

.sheet-meta {
    padding: 14px 16px;
    flex: 1;
}

.sheet-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sheet-desc {
    font-size: 12px;
    color: #777;
}

.sheet-dl {
    display: block;
    text-align: center;
    background: var(--green-light);
    color: var(--green-text);
    font-size: 12px;
    font-weight: 600;
    padding: 9px;
    text-decoration: none;
    border-top: 1px solid #c0dd97;
    transition: background 0.15s;
}
.sheet-dl:hover { background: #d4ebae; }

.sheets-note {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.tugit-footer {
    background: var(--green-dark);
    padding: 22px 24px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tugit-footer p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-badge {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero h1          { font-size: 24px; }
    .top-bar__nav     { gap: 16px; }
    .top-bar__logo    { height: 28px; }
    .hero-btns        { flex-direction: column; align-items: center; }
    .footer-inner     { flex-direction: column; text-align: center; }
}

/* ── Sheet gallery ───────────────────────────────────────────────────────── */
.sheet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.gallery-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.gallery-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.10); }

.gallery-thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f0f0ea;
    cursor: pointer;
}

.gallery-thumb {
    width: 100%;
    display: block;
    transition: transform 0.2s;
}
.gallery-thumb-link:hover .gallery-thumb { transform: scale(1.03); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 42, 20, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.18s;
}
.gallery-thumb-link:hover .gallery-overlay { opacity: 1; }

.gallery-open-icon { font-size: 26px; }

.gallery-meta {
    padding: 12px 14px;
    flex: 1;
}
.gallery-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.gallery-desc {
    font-size: 12px;
    color: #777;
}

/* ── Full-doc download bar ───────────────────────────────────────────────── */
.full-download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--green-light);
    border: 1px solid #c0dd97;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.full-download-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.full-download-info strong {
    font-size: 14px;
    color: var(--green-text);
}
.full-download-info span {
    font-size: 12px;
    color: #555;
}

@media (max-width: 600px) {
    .full-download-bar { flex-direction: column; align-items: flex-start; }
}
