css
/* ========================================
   FENCE AFRICA - MAIN STYLESHEET
   Brand: Africa Well Fenced
======================================== */

:root {
    --green: #06452f;
    --dark-green: #032d20;
    --accent-green: #16834e;
    --light-green: #eaf4ee;
    --white: #ffffff;
    --light-bg: #f6f8f6;
    --text: #333b36;
    --muted: #68736c;
    --border: #e0e7e1;
    --shadow: 0 10px 35px rgba(3, 45, 32, 0.09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.eyebrow {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* HEADER AND NAVIGATION */

.site-header {
    background: var(--white);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    color: var(--green);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    flex-shrink: 0;
}

.logo span {
    display: inline;
    color: var(--accent-green);
}

.logo small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav > a:not(.quote-button):not(.store-button) {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.main-nav > a:not(.quote-button):not(.store-button):hover,
.main-nav > a.active {
    color: var(--accent-green);
}

.quote-button,
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.quote-button {
    background: var(--green);
    color: var(--white);
    border: 2px solid var(--green);
}

.quote-button:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--white);
}

.store-button {
    background: var(--accent-green);
    color: var(--white);
    border: 2px solid var(--accent-green);
}

.store-button:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #4cb77b;
    outline-offset: 3px;
}

/* BUTTONS */

.primary-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 21px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background: var(--accent-green);
    border: 2px solid var(--accent-green);
    color: var(--white);
}

.primary-button:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
}

.outline-button {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.outline-button:hover {
    background: var(--white);
    color: var(--green);
}

.light-button {
    background: var(--white);
    border-color: var(--white);
    color: var(--green);
}

.light-button:hover {
    background: var(--light-green);
    border-color: var(--light-green);
    color: var(--dark-green);
}

/* HOME HERO */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=2000&q=85")
        center 55% / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 35, 24, 0.91) 0%,
        rgba(3, 45, 32, 0.77) 52%,
        rgba(3, 45, 32, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 70px;
    padding-bottom: 70px;
    color: var(--white);
}

.hero .eyebrow {
    color: #9be0b5;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 23px;
}

.hero h1 span {
    color: #9be0b5;
}

.hero-description {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* TRUST STRIP */

.trust-strip {
    background: var(--green);
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.trust-grid > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-grid strong {
    color: #9be0b5;
    font-size: 25px;
    font-weight: 900;
}

.trust-grid span {
    font-size: 13px;
    font-weight: 600;
}

/* GENERAL SECTIONS */

.section {
    padding: 85px 0;
}

.section-muted {
    background: var(--light-bg);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2,
.feature-content h2,
.contact-information h2 {
    color: var(--green);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 15px;
}

/* SERVICE CARDS */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(3, 45, 32, 0.14);
}

.service-card > img {
    height: 220px;
}

.card-content {
    padding: 25px;
}

.card-content h3,
.info-card h3 {
    color: var(--green);
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.card-content p,
.info-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.card-content a,
.text-link {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 800;
}

.card-content a:hover,
.text-link:hover {
    color: var(--dark-green);
}

/* FEATURE SECTION */

.feature-section {
    padding: 85px 0;
    background: var(--light-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 60px;
}

.feature-image img {
    min-height: 400px;
    height: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.check-list {
    list-style: none;
    margin: 25px 0 30px;
}

.check-list li {
    position: relative;
    padding-left: 29px;
    margin-bottom: 12px;
    font-size: 14px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-green);
    font-weight: 900;
}

/* PAGE BANNERS */

.page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 65px 0;
    color: var(--white);
    background-position: center;
    background-size: cover;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 45, 32, 0.79);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner .eyebrow {
    color: #9be0b5;
}

.page-banner h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 15px;
}

.page-banner p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
}

.about-banner {
    background-image:
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80");
}

.services-banner {
    background-image:
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.contact-banner {
    background-image:
        url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1800&q=80");
}

/* ABOUT PAGE CARDS */

.three-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--accent-green);
    font-size: 16px;
    font-weight: 900;
}

/* SERVICES PAGE */

.service-list {
    display: grid;
    gap: 45px;
}

.service-detail {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 42px;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.service-detail.reverse img {
    order: 2;
}

.service-detail img {
    height: 330px;
    border-radius: 9px;
    box-shadow: var(--shadow);
}

.service-detail h2 {
    color: var(--green);
    font-size: 29px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.service-detail > div > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.service-detail ul {
    margin: 0 0 22px 20px;
    color: var(--text);
    font-size: 14px;
}

.service-detail li {
    padding: 4px 0;
}

/* CALL TO ACTION */

.cta-section {
    padding: 75px 0;
    background:
        linear-gradient(rgba(3, 45, 32, 0.94), rgba(3, 45, 32, 0.94)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
        center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 760px;
}

.cta-section .eyebrow {
    color: #9be0b5;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 18px;
}

.cta-section p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

/* CONTACT PAGE */

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 55px;
}

.contact-information > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 25px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--light-green);
    border-radius: 7px;
    color: var(--accent-green);
    font-size: 21px;
}

.contact-item h3,
.contact-store-note h3 {
    color: var(--green);
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-item a:hover {
    color: var(--accent-green);
}

.contact-store-note {
    margin-top: 35px;
    padding: 25px;
    background: var(--light-green);
    border-radius: 8px;
}

.contact-store-note p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.contact-form-card {
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    color: var(--green);
    font-size: 29px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.contact-form-card > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: #fbfcfb;
    border: 1px solid #d6dfd8;
    border-radius: 5px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(22, 131, 78, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    border-radius: 5px;
}

.form-note {
    color: var(--muted);
    font-size: 11px;
    margin-top: 15px;
}

/* FOOTER */

.site-footer {
    background: #021f16;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 50px;
    padding-top: 55px;
    padding-bottom: 45px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 18px;
}

.footer-logo small {
    color: rgba(255, 255, 255, 0.65);
}

.footer-grid > div > p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.footer-grid h3 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 18px;
}

.footer-grid > div > a:not(.logo) {
    display: block;
    width: fit-content;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: #9be0b5;
}

.footer-bottom {
    padding: 18px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* TABLETS */

@media (max-width: 1000px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 14px;
        width: 100%;
    }

    .hero {
        min-height: 500px;
    }

    .card-grid {
        gap: 18px;
    }

    .feature-grid {
        gap: 35px;
    }

    .contact-layout {
        gap: 30px;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* MOBILE PHONES */

@media (max-width: 700px) {
    .container {
        width: 92%;
    }

    .nav-container {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .main-nav {
        gap: 12px 15px;
    }

    .main-nav > a:not(.quote-button):not(.store-button) {
        font-size: 12px;
    }

    .quote-button,
    .store-button {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .hero {
        min-height: 490px;
        background-position: 58% center;
    }

    .hero-overlay {
        background: rgba(3, 35, 24, 0.78);
    }

    .hero-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: clamp(34px, 8vw, 48px);
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 300px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trust-grid strong {
        min-width: 35px;
    }

    .section,
    .feature-section {
        padding: 60px 0;
    }

    .card-grid,
    .three-cards {
        grid-template-columns: 1fr;
    }

    .service-card > img {
        height: 230px;
    }

    .feature-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .feature-image img {
        min-height: 260px;
        max-height: 360px;
    }

    .page-banner {
        min-height: 240px;
        padding: 50px 0;
    }

    .page-banner h1 {
        font-size: 36px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 32px;
    }

    .service-detail.reverse img {
        order: 0;
    }

    .service-detail img {
        height: 240px;
    }

    .service-detail h2 {
        font-size: 25px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 35px;
    }

    .contact-form-card {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* SMALL PHONES */

@media (max-width: 380px) {
    .logo {
        font-size: 21px;
    }

    .main-nav {
        gap: 10px;
    }

    .quote-button,
    .store-button {
        padding: 8px 9px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 33px;
    }

    .primary-button,
    .outline-button {
        padding: 12px 14px;
        font-size: 12px;
    }
}



/* ===== FENCE AFRICA LOGO AND HEADER FIX ===== */

/* Header container */
.site-header {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e0e7e1;
}

.nav-container {
    width: min(1160px, 90%);
    min-height: 88px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo link */
.site-header .logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #06452f;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    line-height: normal;
}

/* Actual logo image */
.logo-image {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Text beside the logo */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.logo-text strong {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-text .fence {
    color: #06452f;
}

.logo-text .africa {
    color: #d4a017;
}

.logo-text small {
    display: block;
    margin: 0;
    padding: 0;
    color: #222222;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.main-nav > a:not(.quote-button):not(.store-button) {
    color: #333b36;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.main-nav > a:not(.quote-button):not(.store-button):hover,
.main-nav > a.active {
    color: #16834e;
}

/* Store and quotation buttons */
.main-nav .quote-button,
.main-nav .store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.main-nav .quote-button {
    background: #06452f;
    border: 2px solid #06452f;
}

.main-nav .store-button {
    background: #16834e;
    border: 2px solid #16834e;
}

.main-nav .quote-button:hover,
.main-nav .store-button:hover {
    background: #032d20;
    border-color: #032d20;
    color: #ffffff;
}

/* Tablet */
@media (max-width: 1000px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 0;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
        gap: 12px 16px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text small {
        font-size: 10px;
    }

    .main-nav {
        gap: 10px 14px;
    }
}



/* Make the main headings white */
.hero h1,
.page-header h1,
.about h1,
.services h1,
.contact h1,
h1 {
    color: #ffffff;
}

/* Make section headings white */
section h2,
.about h2,
.services h2,
.contact h2 {
    color: #ffffff;
}
