/* ==========================================================
   Double H Danes — Site Updates
   Supplements the existing style.css / queries.css.
   Load this file AFTER style.css in the <head>.
   ========================================================== */


/* ----------------------------------------------------------
   Typography — heading font upgrade
   ---------------------------------------------------------- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}


/* ----------------------------------------------------------
   Kylo stats card  (#features section)
   ---------------------------------------------------------- */
.kylo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;                 /* 1px gaps reveal the container colour as gridlines */
    margin: 30px auto 45px auto;
    max-width: 880px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.stat-item {
    padding: 16px 20px;
    font-size: 15px;
    color: #555;
    background: #fafafa;
}

/* 7 stats don't fill two rows of 4, so the last cell spans the empty slot
   to keep the grid a complete, aligned rectangle. */
.stat-item:last-child {
    grid-column: span 2;
}

.stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 4px;
}


/* ----------------------------------------------------------
   Feature boxes  (#features "Why breed with Kylo" row)
   Reserve space for two heading lines so the paragraphs below
   line up even when a heading wraps to one line vs. two.
   ---------------------------------------------------------- */
.js--wp-1 .box h3 {
    min-height: 2.6em;
}


/* ----------------------------------------------------------
   Mako section  (reuses .kylo-showcase grid)
   ---------------------------------------------------------- */
.section-mako {
    background-color: #f4f4f4;
    padding: 60px 0 40px;
}

.section-mako h2,
.section-mako .long-copy {
    text-align: center;
}

.section-mako .long-copy {
    margin-bottom: 30px;
}


/* ----------------------------------------------------------
   Breeding Request section  (Google Form embed)
   ---------------------------------------------------------- */
.section-breeding-request {
    background-color: #fff;
    padding: 70px 0;
}

.section-breeding-request h2,
.section-breeding-request .long-copy {
    text-align: center;
}

.section-breeding-request .long-copy {
    margin-bottom: 30px;
}

.section-breeding-request .long-copy a {
    color: #e67e22;
    text-decoration: none;
    border-bottom: 1px solid #e67e22;
}

.section-breeding-request .long-copy a:hover {
    color: #cf6d17;
    border-bottom-color: #cf6d17;
}

.breeding-form {
    max-width: 760px;
    margin: 0 auto;
}

/* The global form styling in style.css covers text/email/select/textarea but
   not tel/number/date, so the phone field would otherwise render unstyled. */
.breeding-form input[type=tel],
.breeding-form input[type=number],
.breeding-form input[type=date] {
    width: 100%;
    padding: 7px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* Subheadings that group the form into sections */
.form-group-heading {
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ececec;
    font-size: 90%;
    letter-spacing: 1px;
    color: #e67e22;
}

.form-group-heading:first-of-type {
    margin-top: 8px;
}


/* ----------------------------------------------------------
   Footer — email link & location
   ---------------------------------------------------------- */
footer p a {
    color: #e67e22;
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}

/* Center the footer nav + social icons as one balanced group instead of
   floating them to the far left/right edges of the 1140px row (which looks
   off-center on wide screens). */
footer .row:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 50px;
}

footer .row:first-child .col {
    width: auto;
    margin: 0;
    float: none;
}

footer .footer-nav,
footer .social-links {
    float: none;
    margin: 0;
}


/* ----------------------------------------------------------
   Contract page
   ---------------------------------------------------------- */
.contract-nav {
    background: #1a1a1a;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contract-nav a {
    color: #e67e22;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contract-nav a:hover {
    text-decoration: underline;
}

.contract-nav .site-name {
    color: #fff;
    font-size: 16px;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 1px;
}


/* ----------------------------------------------------------
   Admin dashboard  (admin.php, users.php, dog-form.php, etc.)
   Styles are scoped under .akc-admin-body so they never affect
   the public site, which also loads this stylesheet.
   ---------------------------------------------------------- */
.akc-admin-body {
    margin: 0;
    background: #f4f4f4;
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
}

.akc-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 22px 70px;
}

.akc-admin-body h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    margin: 6px 0 22px;
}

/* Buttons (the "+ Add New Dog" link uses .btn .btn-full) */
.akc-admin-body .btn,
.akc-admin-body .btn-full {
    display: inline-block;
    padding: 10px 24px;
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 90%;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.akc-admin-body .btn:hover,
.akc-admin-body .btn-full:hover {
    background: #cf6d17;
}

/* Data table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.admin-table thead th {
    background: #1a1a1a;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 15px;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

/* Small clickable photo thumbnail */
.admin-table-thumb {
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-table-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Action links / delete button */
.admin-table-actions {
    white-space: nowrap;
}

.admin-table-actions a,
.admin-table-actions .link-button {
    display: inline-block;
    margin-right: 10px;
    color: #e67e22;
    text-decoration: none;
    font-size: 14px;
}

.admin-table-actions a:hover,
.admin-table-actions .link-button:hover {
    text-decoration: underline;
}

.admin-table-actions form {
    display: inline;
    margin: 0;
}

.akc-admin-body .link-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #c0392b;
    font-family: inherit;
}

/* Click-to-enlarge photo overlay */
.admin-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: zoom-out;
    padding: 30px;
}

.admin-lightbox.open {
    display: flex;
}

.admin-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 4px 34px rgba(0, 0, 0, 0.55);
}

.contract-wrapper {
    max-width: 820px;
    margin: 50px auto 80px auto;
    padding: 0 30px;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 15px;
    color: #333;
}

.contract-wrapper h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2em;
    color: #1a1a1a;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.contract-wrapper h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1em;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contract-wrapper p {
    margin: 0 0 12px;
    line-height: 1.7;
}

/* Party info fields */
.contract-parties {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 30px;
}

.contract-parties .field-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 14px;
    gap: 12px;
}

.contract-parties .field-label {
    min-width: 220px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contract-parties .field-line {
    flex: 1;
    border-bottom: 1px solid #aaa;
    min-height: 20px;
}

/* Terms lists */
.contract-terms ol {
    padding-left: 24px;
}

.contract-terms li {
    margin-bottom: 14px;
    line-height: 1.7;
}

.contract-terms li ol {
    list-style-type: lower-alpha;
    margin-top: 8px;
}

/* Penalty box */
.contract-penalty {
    border: 2px solid #c0392b;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 30px 0;
    font-weight: 700;
    color: #c0392b;
    font-size: 14px;
    line-height: 1.6;
}

/* Signature blocks */
.contract-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.sig-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sig-field {
    border-bottom: 1px solid #aaa;
    padding-bottom: 4px;
    min-height: 28px;
}

.sig-label {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Special conditions */
.special-conditions {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.special-conditions-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-height: 120px;
    padding: 16px;
    background: #fafafa;
    color: #aaa;
    font-style: italic;
}

/* Download bar */
.download-bar {
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-bar span {
    font-size: 13px;
    color: #555;
}

.download-bar a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.download-bar a:hover {
    text-decoration: underline;
}


/* ----------------------------------------------------------
   Responsive overrides
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .kylo-stats {
        grid-template-columns: 1fr;
    }

    .stat-item:last-child {
        grid-column: span 1;
    }

    .section-breeding-request {
        padding: 40px 0;
    }

    .contract-wrapper {
        padding: 0 16px;
    }

    .contract-parties .field-row {
        flex-direction: column;
        gap: 4px;
    }

    .contract-parties .field-label {
        min-width: unset;
    }

    .contract-signatures {
        grid-template-columns: 1fr;
    }

    .contract-nav {
        padding: 12px 16px;
    }
}


/* ----------------------------------------------------------
   Print styles (contract page)
   ---------------------------------------------------------- */
@media print {
    .contract-nav,
    .download-bar {
        display: none;
    }

    .contract-wrapper {
        margin: 0;
        padding: 0;
    }

    .contract-penalty {
        border-color: #000;
        color: #000;
    }
}
