/* ============================================================
   Hello Computer — Shared Stylesheet
   hellocomputer.au
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hc-yellow: #F5D020;
    --hc-black: #000000;
    --hc-navy: #1A2332;
    --hc-charcoal: #374151;
    --hc-grey: #6B7280;
    --hc-silver: #9CA3AF;
    --hc-cloud: #F9FAFB;
    --hc-fog: #F4F5F7;
    --hc-border: #E8EAED;
    --hc-blue: #3B82F6;
    --hc-green: #166534;
    --hc-amber: #F59E0B;
    --hc-red: #DC2626;
    --font-heading: 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--hc-charcoal);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hc-navy); text-decoration: none; }
a:hover { color: var(--hc-yellow); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--hc-navy);
    line-height: 1.2;
}

/* ===== HEADER / NAV ===== */
header {
    background: #fff;
    border-bottom: 1px solid var(--hc-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-logo img { height: 48px; width: auto; }

nav { display: flex; align-items: center; gap: 32px; }
nav a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--hc-navy);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
nav a:hover { color: var(--hc-grey); }
nav a.active { color: var(--hc-grey); }

.nav-cta {
    background: var(--hc-yellow);
    color: var(--hc-black) !important;
    padding: 10px 22px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #e6c01c; transform: translateY(-1px); color: var(--hc-black) !important; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--hc-navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO (homepage) ===== */
.hero {
    background: var(--hc-navy);
    color: #fff;
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom right, transparent 49.5%, #fff 50.5%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    margin-bottom: 20px;
}

.hero-text h1 span { color: var(--hc-yellow); }

.hero-text p {
    font-size: 1.15rem;
    color: var(--hc-silver);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--hc-yellow);
    color: var(--hc-black);
}
.btn-primary:hover { background: #e6c01c; color: var(--hc-black); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--hc-yellow); color: var(--hc-yellow); }

.btn-outline-navy {
    background: transparent;
    color: var(--hc-navy);
    border: 2px solid var(--hc-navy);
}
.btn-outline-navy:hover { background: var(--hc-navy); color: #fff; }

.hero-graphic {
    flex-shrink: 0;
    width: 240px;
}

.hero-graphic img {
    width: 100%;
    filter: drop-shadow(0 8px 32px rgba(245, 208, 32, 0.25));
}

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
    background: var(--hc-navy);
    color: #fff;
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.subpage-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom right, transparent 49.5%, #fff 50.5%);
}

.subpage-hero-inner {
    max-width: 760px;
}

.subpage-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
}

.subpage-hero h1 span { color: var(--hc-yellow); }

.subpage-hero p {
    font-size: 1.15rem;
    color: var(--hc-silver);
    max-width: 600px;
    line-height: 1.7;
}

/* ===== INTRO STRIP ===== */
.intro {
    padding: 72px 0 56px;
    text-align: center;
}

.intro h2 { font-size: 1.8rem; margin-bottom: 16px; }

.intro p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--hc-grey);
    font-size: 1.05rem;
}

/* ===== SERVICES ===== */
.services {
    padding: 48px 0 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.service-card {
    background: var(--hc-fog);
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Linked service card — when the card element is an <a> tag */
a.service-card { display: block; color: inherit; text-decoration: none; }
a.service-card:hover { color: inherit; }

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--hc-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--hc-grey);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===== WHY US ===== */
.why-us {
    background: var(--hc-navy);
    color: #fff;
    padding: 72px 0;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top right, transparent 49.5%, #fff 50.5%);
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--hc-fog) 50.5%);
}

.why-us h2 { color: #fff; font-size: 1.8rem; text-align: center; margin-bottom: 48px; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
}

.why-item { text-align: center; }

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hc-yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.why-item h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.why-item p {
    color: var(--hc-silver);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== HOW WE WORK (homepage teaser) ===== */
.how-we-work {
    padding: 80px 0 72px;
    background: var(--hc-fog);
    position: relative;
}

.how-we-work h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 12px;
}

.how-we-work > .container > p {
    text-align: center;
    color: var(--hc-grey);
    max-width: 680px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.hww-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.hww-card {
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hww-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.hww-icon {
    width: 48px;
    height: 48px;
    background: var(--hc-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.hww-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hww-card p {
    color: var(--hc-grey);
    font-size: 0.95rem;
    line-height: 1.65;
}

.hww-cta {
    text-align: center;
    margin-top: 40px;
}

.hww-teaser-link {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hc-navy);
    letter-spacing: 0.02em;
}
.hww-teaser-link:hover { color: var(--hc-amber); }
.hww-teaser-link::after { content: ' →'; }

/* ===== HOW WE WORK PAGE — ALTERNATING SECTIONS ===== */
.hwwp-sections {
    padding: 80px 0 72px;
}

.hwwp-section {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.hwwp-section:last-child { margin-bottom: 0; }

.hwwp-section.reverse { flex-direction: row-reverse; }

.hwwp-section-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--hc-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.hwwp-section-text h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--hc-navy);
}

.hwwp-section-text p {
    color: var(--hc-grey);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 560px;
}

.hwwp-divider {
    max-width: 900px;
    margin: 0 auto 80px;
    border: none;
    border-top: 1px solid var(--hc-border);
}

/* ===== HOW WE WORK PAGE — CLOSING CTA ===== */
.hwwp-cta {
    background: var(--hc-navy);
    color: #fff;
    padding: 72px 0;
    text-align: center;
    position: relative;
}

.hwwp-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top right, transparent 49.5%, #fff 50.5%);
}

.hwwp-cta h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.hwwp-cta p {
    color: var(--hc-silver);
    max-width: 480px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0 64px;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 56px;
}

.about-text { flex: 1; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; color: var(--hc-grey); }
.about-text p:last-of-type { margin-bottom: 0; }

.about-graphic {
    flex-shrink: 0;
    width: 200px;
    background: var(--hc-yellow);
    border-radius: 50%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-graphic img { width: 100%; border-radius: 50%; }

/* ===== CONTACT ===== */
.contact {
    padding: 72px 0 80px;
}

.contact h2 { font-size: 1.8rem; text-align: center; margin-bottom: 12px; }
.contact > .container > p {
    text-align: center;
    color: var(--hc-grey);
    max-width: 540px;
    margin: 0 auto 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    background: var(--hc-fog);
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 32px 24px;
}

.contact-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--hc-grey);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--hc-navy);
    font-weight: 600;
    font-family: var(--font-heading);
}
.contact-card a:hover { color: var(--hc-amber); }

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    max-width: 580px;
    margin: 0 auto;
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--hc-navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    background: var(--hc-fog);
    color: var(--hc-charcoal);
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hc-yellow);
    box-shadow: 0 0 0 3px rgba(245, 208, 32, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
    align-self: flex-start;
}

.form-submit .btn { font-size: 16px; padding: 14px 36px; }

.form-note {
    font-size: 0.85rem;
    color: var(--hc-silver);
    margin-top: 4px;
}

.contact-address {
    text-align: center;
    margin-top: 36px;
    color: var(--hc-grey);
    font-size: 0.95rem;
}

.contact-address strong {
    font-family: var(--font-heading);
    color: var(--hc-navy);
}

/* ===== FOOTER ===== */
footer {
    background: var(--hc-navy);
    color: var(--hc-silver);
    padding: 40px 0 32px;
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-info {
    text-align: center;
    line-height: 1.6;
}

.footer-info a { color: var(--hc-silver); }
.footer-info a:hover { color: var(--hc-yellow); }

/* ===== SPACIA SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.scroll-progress.visible { opacity: 1; }

.scroll-road {
    position: absolute;
    bottom: 6px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: rgba(26, 35, 50, 0.12);
}

.scroll-road::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    height: 3px;
    background: var(--hc-yellow);
    border-radius: 2px;
    width: var(--scroll-pct, 0%);
    transition: width 0.1s linear;
}

.scroll-car {
    position: absolute;
    bottom: 2px;
    left: calc(24px + (100% - 72px) * var(--scroll-pct-raw, 0));
    height: 22px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    cursor: pointer;
    transition: left 0.1s linear;
}

.scroll-car:hover {
    transform: scale(1.3) translateY(-4px);
    transition: left 0.1s linear, transform 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 56px 0 56px; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-graphic { width: 180px; order: -1; }

    .subpage-hero { padding: 56px 0 56px; }

    nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hc-border); padding: 16px 24px; gap: 16px; }
    nav.open { display: flex; }
    .hamburger { display: block; }

    .about-inner { flex-direction: column; text-align: center; }
    .about-graphic { width: 160px; order: -1; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }

    .services-grid { grid-template-columns: 1fr; }

    .hwwp-section,
    .hwwp-section.reverse {
        flex-direction: column;
        gap: 24px;
    }

    .hwwp-section-text h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .hero-text h1 { font-size: 1.75rem; }
    .hero-graphic { width: 140px; }
    .btn { padding: 12px 22px; font-size: 14px; }
    .form-row { flex-direction: column; gap: 18px; }
    .scroll-progress { height: 22px; }
    .scroll-car { height: 18px; }
}
