/* =========================================================
   TeachYourDog.com
   Public Site Styles
   ========================================================= */

:root {
    --navy: #183b56;
    --navy-dark: #102e45;
    --text: #263640;
    --muted: #667985;
    --background: #f5f7f8;
    --border: #e1e7ea;
    --light-blue: #edf3f6;
    --white: #ffffff;
    --green: #4f7d61;
    --radius: 12px;
    --shadow: 0 4px 18px rgba(0, 0, 0, .055);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: var(--navy);
    color: var(--white);
}

.header-inner {
    max-width: 1180px;
    min-height: 70px;
    margin: auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: var(--white);
    font-size: 22px;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -.3px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    opacity: .85;
}

.nav-button {
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 6px;
}

/* =========================================================
   Hero
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #183b56 0%,
            #234f6c 55%,
            #315f78 100%
        );
    color: var(--white);
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background: rgba(255,255,255,.045);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: auto;
    padding: 86px 25px 92px;
}

.hero-content {
    max-width: 790px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #cbdce6;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 31px;
    color: #e0e9ee;
    font-size: 19px;
    line-height: 1.6;
}

/* =========================================================
   Main Search
   ========================================================= */

.hero-search {
    max-width: 850px;
    padding: 10px;
    display: grid;
    grid-template-columns:
        minmax(230px, 1.5fr)
        minmax(210px, 1fr)
        auto;
    gap: 9px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    backdrop-filter: blur(4px);
}

.search-field {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 0;
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.search-field:focus {
    outline: 3px solid rgba(255,255,255,.25);
}

.search-button {
    min-height: 52px;
    padding: 0 23px;
    border: 0;
    border-radius: 7px;
    background: #f0b44c;
    color: #293944;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.search-button:hover {
    background: #f4bf61;
}

.search-hint {
    margin-top: 12px;
    color: #cbdce6;
    font-size: 13px;
}

/* =========================================================
   Generic Sections
   ========================================================= */

.section {
    padding: 76px 25px;
}

.section.white {
    background: var(--white);
}

.section-inner {
    max-width: 1180px;
    margin: auto;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 34px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 32px;
    letter-spacing: -.6px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================================
   Training Categories
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    min-height: 145px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.025);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #c7d5dc;
    box-shadow: var(--shadow);
}

.category-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--light-blue);
    color: var(--navy);
    font-size: 21px;
}

.category-name {
    margin-top: 23px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
}

.category-text {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   How It Works
   ========================================================= */

.steps {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 750;
}

.step h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 19px;
}

.step p {
    max-width: 320px;
    margin: auto;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================================================
   Trainer CTA
   ========================================================= */

.trainer-cta {
    padding: 70px 25px;
    background: var(--navy);
    color: var(--white);
}

.trainer-cta-inner {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.trainer-cta-content {
    max-width: 650px;
}

.trainer-cta h2 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: -.5px;
}

.trainer-cta p {
    margin: 0;
    color: #d6e2e8;
    font-size: 16px;
    line-height: 1.6;
}

.cta-button {
    flex: 0 0 auto;
    display: inline-block;
    padding: 14px 21px;
    border-radius: 7px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.cta-button:hover {
    background: #edf3f6;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: #102c40;
    color: #b9c9d2;
}

.footer-inner {
    max-width: 1180px;
    margin: auto;
    padding: 38px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: var(--white);
    font-weight: 700;
}

.footer-copy {
    margin-top: 6px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: #d3dee4;
    font-size: 13px;
    text-decoration: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 850px) {

    .hero-search {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .steps {
        gap: 25px;
    }

    .trainer-cta-inner {
        display: block;
        text-align: center;
    }

    .cta-button {
        margin-top: 25px;
    }

}

@media (max-width: 650px) {

    .header-inner {
        min-height: 64px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav .find-link {
        display: none;
    }

    .hero-inner {
        padding-top: 62px;
        padding-bottom: 67px;
    }

    .home-hero h1 {
        font-size: 40px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .footer-links {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

}

/* Visual refresh. To add your stock photo later, upload it to
   /assets/images/home-hero-dog.jpg and change "none" to
   url('/assets/images/home-hero-dog.jpg') below. */
:root { --home-hero-photo: url('/assets/images/home-hero-dog.jpg'); }
.home-hero { background: linear-gradient(125deg, #183b56 0%, #254e66 62%, #326b74 100%); }
.home-hero .hero-inner { isolation: isolate; }
.home-hero .hero-content { position: relative; z-index: 1; }
.home-hero .eyebrow { display: inline-block; padding: 8px 13px; border: 1px solid rgba(245,188,82,.48); border-radius: 100px; background: rgba(245,188,82,.12); color: #ffe0a0; font-size: 12px; letter-spacing: .11em; }
.home-hero h1::after { content: ""; display: block; width: 74px; height: 5px; margin-top: 22px; border-radius: 99px; background: #f5bc52; }
.hero-art { position: absolute; right: 16px; top: 84px; width: 264px; height: 264px; pointer-events: none; }
.hero-art svg { display: block; width: 100%; height: 100%; opacity: .85; filter: drop-shadow(0 18px 24px rgba(7,31,45,.17)); }
.hero-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background-image: var(--home-hero-photo); background-position: center; background-size: cover; }
.category-card { position: relative; overflow: hidden; }
.category-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #e6aa41; transform: scaleY(0); transform-origin: bottom; transition: transform .18s ease; }
.category-card:hover::before, .category-card:focus-visible::before { transform: scaleY(1); }
.category-icon { border-radius: 50%; background: #fff2d8; color: #83550b; }
.category-card:focus-visible, .cta-button:focus-visible, .search-button:focus-visible { outline: 3px solid #e6aa41; outline-offset: 3px; }
.step-number { background: #f5bc52; color: #183b56; box-shadow: 0 7px 17px rgba(180,116,22,.16); }
.trainer-cta { background: linear-gradient(115deg, #183b56, #245b69); }
@media (max-width: 1100px) { .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .category-card::before { transition: none; } }

/* Reusable site logo and illustrated specialty cards. */
.logo img { display: block; width: 270px; height: auto; }
.category-card { display: block; min-height: 0; padding: 0; }
.category-image { display: block; width: 100%; height: 142px; object-fit: cover; background: #eef4f7; }
.category-copy { padding: 20px 24px 24px; }
.category-name { margin-top: 0; }
@media (max-width: 650px) {
    .logo img { width: 185px; }
    .header-inner { flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .site-nav { justify-content: center; width: 100%; }
}



/* Homepage: all training specialties */

.specialty-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.specialty-link-grid a {
    display: block;
    padding: 14px 18px;
    border: 1px solid #dce6eb;
    border-radius: 10px;
    background: #f6f9fb;
    color: #183b56;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.specialty-link-grid a:hover {
    background: #e9f2f7;
    border-color: #a9c6d5;
}

.specialty-link-grid a:focus-visible {
    outline: 3px solid #e6aa41;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .specialty-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .specialty-link-grid {
        grid-template-columns: 1fr;
    }
}

