/* =========================================================
   Skywave Technologies Malawi — landing page styles
   Reuses the main Skywave brand palette from public/css/index.css
   ========================================================= */

:root {
    --blue: #1f4d8f;
    --dark-blue: #163b6c;
    --deep: #0e1622;
    --light-bg: #f8f9fb;
    --muted: #5f6c7b;
    --line: #e5e7eb;
    --shadow: 0 12px 35px rgba(14, 22, 34, 0.08);
    --radius: 16px;
    --max: 1150px;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: var(--deep);
    background: var(--light-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Keep anchor targets clear of the fixed header. */
section[id] {
    scroll-margin-top: 96px;
}

a {
    color: inherit;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--blue);
    color: #fff;
}

.btn.primary:hover {
    background: var(--dark-blue);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn.alt {
    border-color: var(--blue);
    color: var(--dark-blue);
    background: transparent;
}

.btn.alt:hover {
    background: var(--blue);
    color: #fff;
}

/* ---------- Header ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: #fff;
    color: var(--deep);
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

header.scrolled {
    background: #fff;
    color: var(--deep);
    box-shadow: 0 4px 20px rgba(14, 22, 34, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    width: 120px;
}

.logo img {
    width: 100%;
    height: auto;
}

header nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

header nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    color: inherit;
    transition: opacity 0.2s ease;
}

header nav a:hover {
    opacity: 0.72;
}

/* Active navigation state */
header nav a {
    position: relative;
}

header nav a.active,
header nav a.section-active {
    color: var(--blue);
    font-weight: 600;
}

header nav a.active::after,
header nav a.section-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.contact-btn {
    background: var(--blue);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.contact-btn:hover {
    opacity: 1 !important;
    background: var(--dark-blue);
}

header nav a.contact-btn::after {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 140px 5% 80px;
    color: #fff;
    background-image: url("../images/heroslide/hero1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(8, 20, 35, 0.94) 0%,
        rgba(8, 20, 35, 0.78) 45%,
        rgba(8, 20, 35, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow,
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.eyebrow {
    color: #bcd4f2;
    padding-left: 44px;
    position: relative;
}

.section-label.light {
    color: #bcd4f2;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #bcd4f2;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 610px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-note {
    margin-top: 30px;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

.hero-note a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- Shared section structure ---------- */

.section {
    padding: 88px 5%;
}

.bg-white {
    background: #fff;
}

.bg-light {
    background: var(--light-bg);
}

.section-head {
    max-width: var(--max);
    margin: 0 auto 38px;
}

.section-head.center {
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--dark-blue);
    max-width: 780px;
}

.section-head.center h2 {
    margin-left: auto;
    margin-right: auto;
}

.section-sub {
    max-width: 680px;
    color: var(--muted);
    margin: 14px auto 0;
}

/* ---------- Interior page hero ---------- */

.page-hero {
    padding: 150px 5% 72px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--deep) 0%,
        var(--dark-blue) 62%,
        var(--blue) 100%
    );
}

.page-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.page-hero .section-label {
    color: #bcd4f2;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.page-hero p {
    max-width: 680px;
    margin-top: 16px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .hero-actions {
    margin-top: 28px;
}

.page-intro {
    max-width: 900px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-cta {
    max-width: var(--max);
    margin: 42px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.section-cta-text {
    flex-basis: 100%;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 1rem;
}

.section > .fish-audience:first-child {
    margin-top: 0;
}

/* ---------- Intro / About ---------- */

.intro {
    background: #fff;
}

.intro-copy {
    max-width: 820px;
    margin: 0 auto;
}

.intro-copy p {
    color: var(--muted);
    margin-bottom: 18px;
}

.intro-copy .btn {
    margin-top: 8px;
}

/* ---------- Offerings / What We Do Best ---------- */

.offerings {
    background: var(--light-bg);
}

.card-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(14, 22, 34, 0.12);
}

.card h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.card a {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* ---------- Why Choose Skywave ---------- */

.why {
    background: #fff;
}

.features {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.features .card {
    text-align: center;
    padding: 36px 28px;
}

.features .card h3 {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.features .card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- Fish Africa ---------- */

.fish {
    background: #fff;
}

.fish-card {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--light-bg);
}

.fish-copy h2 {
    color: var(--dark-blue);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.fish-copy > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.text-link {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.fish-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(22, 59, 108, 0.14);
}

.fish-intro {
    max-width: var(--max);
    margin: 28px auto 0;
}

.fish-intro p {
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 900px;
    margin-bottom: 14px;
}

.fish-intro-closing {
    color: var(--blue) !important;
    font-weight: 600;
    font-size: 1.05rem !important;
    margin-top: 6px;
}

/* ---------- Fish Africa content ---------- */

.fish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.fish-grid {
    max-width: var(--max);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fish-product {
    background: var(--light-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
}

.fish-product h3,
.fish-audience h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.fish-product p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.fish-product ul,
.fish-audience ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.fish-product li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
    font-size: 0.94rem;
}

.fish-product li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

.fish-features {
    max-width: var(--max);
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fish-feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.fish-feature h3 {
    color: var(--dark-blue);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.fish-feature p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

.fish-audience {
    max-width: var(--max);
    margin: 32px auto 0;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--light-bg);
    border: 1px solid var(--line);
}

.fish-audience ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 28px;
}

.fish-audience li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
    font-size: 0.94rem;
}

.fish-audience li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

/* ---------- Resources ---------- */

.profile-sheet {
    max-width: var(--max);
    margin: 0 auto 34px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.profile-head h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
}

.profile-sheet > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
    margin: 0;
}

.profile-facts dt {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.profile-facts dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.print-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    font-size: 0.86rem;
}

.resource-grid {
    max-width: var(--max);
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-card {
    display: block;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(14, 22, 34, 0.12);
}

.resource-card h3 {
    color: var(--dark-blue);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.resource-card span {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.88rem;
}

.faq {
    max-width: var(--max);
    margin: 0 auto;
}

.faq h3 {
    color: var(--dark-blue);
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 22px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 600;
    color: var(--dark-blue);
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--blue);
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    color: var(--muted);
    font-size: 0.94rem;
    padding-bottom: 18px;
    margin: 0;
}

/* ---------- Contact ---------- */

.contact {
    background: #fff;
}

.contact-wrap {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: stretch;
}

.contact-panel {
    padding: 46px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    color: #fff;
}

.contact-panel h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
}

.contact-details {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.contact-details span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bcd4f2;
    margin-bottom: 4px;
}

.contact-details a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-details a:hover {
    border-bottom-color: #fff;
}

.contact-details p {
    color: #fff;
    font-weight: 600;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.field label span {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--deep);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--light-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 77, 143, 0.14);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button {
    border: none;
}

.form-message {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.2em;
}

.form-message.success {
    color: #15803d;
}

.form-message.error {
    color: #b91c1c;
}

/* ---------- Print (company profile) ---------- */

@media print {
    @page {
        margin: 18mm;
    }

    header,
    footer,
    .hero,
    .page-hero,
    #about,
    #products,
    #services,
    #solutions,
    #why,
    #fish-africa,
    #contact,
    .section-cta,
    .resource-grid,
    .faq,
    .intro-copy {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .section {
        background: #fff !important;
        padding: 0;
    }

    #resources {
        padding: 0;
    }

    #resources .section-head,
    .print-btn {
        display: none !important;
    }

    .profile-sheet {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}


/* ---------- Footer ---------- */

footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 48px 5% 28px;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand img {
    width: 140px;
    height: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-address {
    font-style: normal;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 10px;
}

.footer-address a {
    color: inherit;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding-top: 10px;
}

.footer-links a {
    color: #3d4652;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-switch {
    text-align: right;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-switch a {
    display: block;
    margin-top: 5px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--blue);
    text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    header nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 5%;
        right: 5%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
        border-radius: var(--radius);
        background: #fff;
        color: var(--deep);
        box-shadow: 0 18px 45px rgba(14, 22, 34, 0.16);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    header nav.open {
        display: flex;
    }

    header nav a {
        color: var(--deep) !important;
        width: 100%;
    }

    header nav a.active::after,
    header nav a.section-active::after {
        display: none;
    }

    header nav a.active,
    header nav a.section-active {
        color: var(--blue) !important;
    }

    header nav .contact-btn {
        text-align: center;
        color: #fff !important;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 980px) {
    .fish-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .fish-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-facts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .profile-head {
        flex-direction: column;
    }

    .fish-audience ul {
        grid-template-columns: 1fr;
    }

    .contact-panel,
    .contact-form {
        padding: 32px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 78vh;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .section {
        padding: 68px 5%;
    }

    .page-hero {
        padding: 124px 5% 56px;
    }

    .page-hero h1 {
        font-size: clamp(1.9rem, 7.6vw, 2.5rem);
    }

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

    .features,
    .fish-features,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 28px;
    }

    .footer-switch {
        text-align: left;
    }
}