/* =====================================================
   PRACTICAL HELP FOR HOME & BUSINESS
   Shared CSS: homepage, blog and articles
   
   TWEAKED BY ME
   ===================================================== */

/*:root {*/
/*    --page: #f3f1ec;*/
/*    --paper: #fff;*/
/*    --ink: #29332d;*/
/*    --muted: #606a63;*/
/*    --green: #2f3b33;*/
/*    --green-light: #4a5b50;*/
/*    --line: #deded7;*/
/*    --soft: #e9e8e1;*/
/*    --radius: 14px;*/
/*    --shadow: 0 8px 28px rgba(35,45,38,.07);*/
/*}*/
:root {
    --page: #F5F6F0;
    --paper: #FFFFFF;
    --ink: #18332F;
    --muted: #4C625C;
    --green: #145B4A;
    --green-light: #16745E;
    --line: #D4DED7;
    --soft: #E7F0E9;
    --radius: 14px;
    --shadow: 0 8px 28px rgba(35,45,38,.07);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

/*body {*/
/*    margin: 0;*/
/*    background: var(--page);*/
/*    color: var(--ink);*/
/*    font: 16px/1.65 Arial, Helvetica, sans-serif;*/
/*}*/
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Atkinson Hyperlegible', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: var(--green-light); }
button, input, textarea, select { font: inherit; }

.container {
    width: min(100% - 40px, 1080px);
    margin-inline: auto;
}

.section { padding: 76px 0; }
.section-muted, .section-alt { background: var(--soft); }

h2, h3 { color: var(--green); line-height: 1.3; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(110deg, var(--green), var(--green-light));
    color: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 12px;
}

.site-name, .site-logo {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.site-name {
    display: flex;
    flex-direction: column;
    font-size: 21px;
    line-height: 1.2;
}

.site-name span {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .5px;
}

.site-logo { font-size: 19px; }

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-header nav a {
    padding: 8px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a:hover { opacity: .75; }

.site-header nav a.nav-contact {
    padding: 10px 18px;
    border-radius: 7px;
    background: #fff;
    color: var(--green);
}

.site-header nav a.nav-contact:hover {
    background: var(--soft);
    opacity: 1;
}


/* BUTTONS AND LINKS */

.button, .cta-button {
    display: inline-block;
    padding: 13px 23px;
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover, .cta-button:hover {
    background: var(--green-light);
    color: #fff;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--green-light);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* HOMEPAGE HERO */

.hero { padding: 64px 0 56px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
}

.hero-copy { max-width: 570px; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.hero-copy > p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* TRUST STRIP */

.trust-strip {
    padding: 20px 0;
    background: var(--green);
    color: #fff;
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.trust-items span { font-size: 14px; font-weight: 600; }


/* SECTION HEADINGS */

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 36px);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}


/* SERVICE CARDS */

.service-grid {
    /*display: grid;*/
    /*grid-template-columns: repeat(3, minmax(0, 1fr));*/
    display:flex;
    flex-wrap:wrap;  /* Crucial: Allows items to move to the next row */
    gap: 24px;       /* Optional: Adds spacing between wrapped cards */
}

.service-card {
    /*flex:1;*/
    flex: 1 1 min(100%, 250px); /* Combines flex-grow, flex-shrink, and a safe minimum base size */
    /*min-width:250px;*/
    /*min-width: 0;*/
    /*overflow: hidden;*/
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-copy { padding: 24px; }
.card-copy h3 { margin: 0 0 10px; }
.card-copy p { margin: 0; color: var(--muted); }


/* TWO-COLUMN SECTIONS */

.two-column {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: start;
    gap: 40px;
}

.two-column > * { min-width: 0; }

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 14px; padding-left: 5px; }

.about-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
}

.about-grid p { color: var(--muted); }


/* PRICING AND INFORMATION CARDS */

.price-card, .about-note {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-card h3, .about-note h3 { margin: 0 0 14px; }
.price-card p, .about-note p { color: var(--muted); }

.price {
    margin: 8px 0 16px;
    color: var(--green);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}


/* SUITABLE AND UNSUITABLE WORK */

.expect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.expect-grid > div {
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.expect-grid h3 { margin-top: 0; }
.expect-grid ul { margin-bottom: 0; padding-left: 21px; }
.expect-grid li { margin-bottom: 9px; }


/* CONTACT AND FORM */

.contact-section { background: var(--soft); }

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
    gap: 40px;
}

.contact-grid > * { min-width: 0; }

.form-card {
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card h3 { margin-top: 0; }

.form-row {
    /*display: grid;*/
    /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
    /*gap: 16px;*/
  margin-bottom: 17px;
}

.form-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.form-card input,
.form-card textarea,
.form-card select {
    display: block;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #c9cec8;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.form-card textarea { min-height: 145px; resize: vertical; }

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

.form-privacy {
    margin: 14px 0;
    color: var(--muted);
    font-size: 12px;
}

.form-status { 
    margin-top: 16px;
    padding: 12px;
    font-size: 14px;
}

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


/* BLOG INDEX AND ARTICLE LIST */

.page-hero {
    padding: 54px 0 38px;
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.2;
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-card h2, .article-card h3 {
    margin: 0 0 12px;
    font-size: 21px;
}

.article-card h2 a, .article-card h3 a {
    color: var(--green);
    text-decoration: none;
}

.article-card h2 a:hover, .article-card h3 a:hover {
    text-decoration: underline;
}

.article-card p { margin: 0; color: var(--muted); }


/* INDIVIDUAL ARTICLES */

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 { margin: 38px 0 14px; font-size: 26px; }
.article-content h3 { margin: 28px 0 10px; font-size: 20px; }
.article-content p { margin: 0 0 18px; }

.article-content ul, .article-content ol {
    margin: 0 0 22px;
    padding-left: 25px;
}

.article-content li { margin-bottom: 9px; }

.article-intro {
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 19px;
}

.article-cta {
    margin-top: 42px;
    padding: 30px;
    background: var(--soft);
    border-radius: var(--radius);
}

.article-cta h2 { margin-top: 0; }

.article-back {
    display: inline-block;
    margin-top: 30px;
    font-weight: 700;
    text-decoration: none;
}


/* FOOTER */

.site-footer {
    padding: 34px 0;
    background: var(--green);
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-inner p { margin: 0; }

.footer-small {
    color: rgba(255,255,255,.75);
    font-size: 13px;
}

.site-footer a { color: #fff; }


/* TABLET: SINGLE-COLUMN CONTENT */

@media (max-width: 800px) {
    .hero-grid, .two-column, .contact-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero { padding-top: 42px; }
    .hero-image { order: -1; }
    .hero-image img { aspect-ratio: 16 / 9; }

    .service-grid, .article-grid, .expect-grid {
        grid-template-columns: 1fr;
    }

    .section { padding: 58px 0; }
    .contact-grid { gap: 25px; }
}


/* MOBILE */

@media (max-width: 600px) {
    .container { width: min(100% - 32px, 1080px); }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-block: 14px;
    }

    .site-name, .site-logo {
        align-self: center;
        text-align: center;
    }

    .site-header nav {
        justify-content: center;
        gap: 5px 16px;
    }

    .site-header nav a { font-size: 13px; }
    .site-header nav a.nav-contact { padding: 9px 15px; }

    .hero { padding: 28px 0 38px; }
    .hero-grid { gap: 24px; }
    .hero h1 { font-size: 36px; }
    .hero-copy > p { font-size: 16px; }

    .trust-strip { padding: 16px 0; }
    .trust-items { justify-content: center; gap: 10px 18px; text-align: center; }
    .trust-items span { font-size: 13px; }

    .section { padding: 46px 0; }
    .section-heading { margin-bottom: 26px; }
    .section-heading h2 { font-size: 28px; }

    .service-grid, .article-grid, .expect-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-copy, .article-card, .price-card, .about-note, .form-card {
        padding: 22px;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .page-hero { padding: 38px 0 28px; }
    .page-hero h1 { font-size: 32px; }
    .article-content h2 { font-size: 24px; }
    .article-intro { font-size: 17px; }
    .article-cta { padding: 22px; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/** {*/
/*    outline: 1px solid red !important;*/
/*}*/