/*
Theme Name:  Your Tech Handyman
Theme URI:   https://yourtechhandyman.ca
Description: Custom theme for Your Tech Handyman - Cole Tremblay. A warm, friendly
             foundation you can grow the whole site on. The homepage renders the
             landing page automatically; new Pages inherit the same header, footer,
             fonts, and colours.
Author:      Cole Tremblay
Version:     1.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
*/

/* =====================================================================
   COLOR PALETTE  (change these to recolor the whole site)
   ===================================================================== */
:root {
    --navy:       #16324f;   /* deep friendly blue  */
    --navy-soft:  #1e4368;   /* slightly lighter blue */
    --green:      #5f8f2e;   /* warm leafy green (buttons) */
    --green-dark: #4e7825;   /* button hover */
    --lime:       #8bc34a;   /* bright accent highlight */
    --cream:      #f5f2ea;   /* warm page background */
    --card:       #ffffff;   /* white cards */
    --ink:        #24303c;   /* main text color */
    --ink-soft:   #4f5b66;   /* secondary text color */
    --line:       #e7e2d6;   /* soft divider lines */
}

/* =====================================================================
   BASE / RESETS
   (scoped under .yth so they can't disturb the WordPress admin bar)
   ===================================================================== */
.yth *, .yth *::before, .yth *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body { background: var(--cream); }   /* stops white gaps behind short pages */

.yth {
    font-family: 'Nunito', -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.yth img { max-width: 100%; height: auto; display: block; }

.yth a { color: var(--green-dark); }

/* Centered content wrapper */
.yth .wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}

/* =====================================================================
   REUSABLE BUTTON
   ===================================================================== */
.yth .btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 50px;              /* fully rounded, friendly */
    box-shadow: 0 6px 16px rgba(95,143,46,0.30);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.yth .btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(95,143,46,0.38);
}
/* A lighter button for use on the dark navy band */
.yth .btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.yth .btn-light:hover { background: #f0efe9; color: var(--navy); }

/* =====================================================================
   HEADER
   ===================================================================== */
.yth .site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.yth .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    max-width: 1080px;
    margin: 0 auto;
}
.yth .brand { display: flex; align-items: center; text-decoration: none; }
.yth .brand-title { height: 54px; width: auto; }
@media (max-width: 480px) { .yth .brand-title { height: 40px; } }

/* Hide the header button on very small screens to save space */
.yth .header-cta { white-space: nowrap; padding: 11px 20px; font-size: 0.95rem; }
@media (max-width: 560px) { .yth .header-cta { display: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.yth .hero { padding: 60px 0 50px; }
.yth .hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.yth .hero-text { flex: 1 1 380px; }
.yth .hero-media { flex: 1 1 320px; text-align: center; }
/* width:100% keeps the logo inside the screen on phones; max-width caps it on desktop */
.yth .hero-media img { margin: 0 auto; width: 100%; max-width: 420px; }

.yth .hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.12;
}
.yth .hero h1 .accent { color: var(--green); display: block; }
.yth .hero p.lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    margin: 20px 0 30px;
    max-width: 520px;
}

/* little trust row under the hero button */
.yth .trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
}
.yth .trust div { font-size: 0.92rem; font-weight: 700; color: var(--navy); }
.yth .trust span { color: var(--green); margin-right: 6px; font-weight: 900; }

/* On phones/tablets the hero stacks into one column, so center everything. */
@media (max-width: 767px) {
    .yth .hero { padding: 40px 0; }
    .yth .hero-text { text-align: center; }
    .yth .hero p.lead { margin-left: auto; margin-right: auto; }
    .yth .trust { justify-content: center; }
}
@media (max-width: 560px) {
    .yth .header-inner { justify-content: center; }
}

/* =====================================================================
   GENERIC SECTION HEADINGS
   ===================================================================== */
.yth section { padding: 62px 0; }
.yth .section-title {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 900;
    color: var(--navy);
    text-align: center;
    margin-bottom: 14px;
}
.yth .section-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 40px;
}

/* =====================================================================
   ABOUT / DESCRIPTION
   ===================================================================== */
.yth .about { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.yth .about p {
    font-size: 1.22rem;
    color: var(--ink);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.yth .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.yth .service {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.yth .service:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(22,50,79,0.10);
}
.yth .service .icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef4e4;
    display: flex; align-items: center; justify-content: center;
}
.yth .service .icon svg { width: 32px; height: 32px; stroke: var(--green); fill: none; stroke-width: 2; }
.yth .service h3 { color: var(--navy); font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.yth .service p { color: var(--ink-soft); font-size: 0.98rem; }

/* =====================================================================
   CALL TO ACTION BAND (navy)
   ===================================================================== */
.yth .cta-band { background: var(--navy); text-align: center; }
.yth .cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 12px;
}
.yth .cta-band p { color: #cdd8e2; font-size: 1.1rem; margin-bottom: 28px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.yth .contact { text-align: center; }
.yth .contact .email-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 16px 30px;
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}
.yth .contact .email-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(22,50,79,0.12); }
.yth .contact .email-pill svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 2; }

/* =====================================================================
   GENERIC PAGE CONTENT  (for future Pages you add in WordPress)
   Anything you write in the WordPress editor lands here, styled to match.
   ===================================================================== */
.yth .page-content { padding: 58px 0; }
.yth .page-content .wrap { max-width: 820px; }
.yth .page-content h1.page-title {
    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 22px;
    text-align: center;
}
.yth .page-content h2, .yth .page-content h3 { color: var(--navy); margin: 1.3em 0 .5em; line-height: 1.25; }
.yth .page-content p { margin-bottom: 1em; font-size: 1.08rem; }
.yth .page-content ul, .yth .page-content ol { margin: 0 0 1em 1.4em; }
.yth .page-content li { margin-bottom: .4em; }
.yth .page-content a { text-decoration: underline; }
.yth .page-content img { border-radius: 12px; margin: 1em auto; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.yth .site-footer {
    background: var(--navy);
    color: #b9c6d3;
    text-align: center;
    padding: 26px 22px;
    font-size: 0.9rem;
}
.yth .site-footer strong { color: #fff; }
