* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2a1f;
    background: #f7f7f2;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8df;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 245px;
}

.logo-icon {
    width: 54px;
    height: 54px;
    background: #ffffff;
    color: #456f32;
    border: 2px solid #456f32;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.logo-area strong {
    display: block;
    font-size: 22px;
    color: #222;
    line-height: 1;
}

.logo-area span {
    display: block;
    font-size: 22px;
    color: #456f32;
    line-height: 1.1;
}

.logo-area small {
    display: block;
    font-size: 12px;
    color: #333;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: #456f32;
    border-bottom-color: #456f32;
}

.donate-btn {
    background: #456f32;
    color: #fff;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(247,247,242,.96) 0%, rgba(247,247,242,.82) 42%, rgba(247,247,242,.18) 72%),
        url("/images/giant-schnauzer-hero.jpg");
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 24px;
}

.hero h1 {
    max-width: 600px;
    font-family: Georgia, serif;
    font-size: 58px;
    line-height: 1.05;
    margin: 0 0 22px;
    color: #232323;
}

.hero h1 span {
    color: #456f32;
}

.hero p {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 15px 24px;
    border-radius: 9px;
    font-weight: 700;
}

.primary-btn {
    background: #456f32;
    color: #fff;
}

.secondary-btn {
    background: #fff;
    border: 1px solid #456f32;
    color: #1f2a1f;
}


.quick-links {
    max-width: 1180px;
    margin: -35px auto 30px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
    z-index: 5;
}

.quick-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 10px 26px rgba(0,0,0,.1);
    border: 1px solid #eee;
}

.quick-card span {
    background: #456f32;
    color: #fff;
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.quick-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.quick-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #4c4c4c;
}

.mission-box {
    max-width: 1080px;
    margin: 0 auto 45px;
    padding: 28px 35px;
    background: #f3efe5;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 110px 1fr 260px;
    gap: 30px;
    align-items: center;
}

.mission-icon {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #456f32;
    display: grid;
    place-items: center;
    font-size: 38px;
}

.mission-text h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin: 0 0 8px;
}

.mission-text p {
    margin: 0;
    line-height: 1.55;
}

.mission-list {
    list-style: none;
    padding: 0 0 0 28px;
    margin: 0;
    border-left: 1px solid #cfc7b7;
}

.mission-list li {
    margin: 8px 0;
}

.mission-list li:before {
    content: "✓";
    color: #456f32;
    font-weight: bold;
    margin-right: 8px;
}

.dogs-section {
    max-width: 1080px;
    margin: 0 auto 45px;
    padding: 0 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-heading h2,
.adoption-process h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin: 0;
}

.section-heading a {
    color: #456f32;
    font-weight: 700;
}

.dog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48% 52%;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.dog-image {
    min-height: 190px;
    background-size: cover;
    background-position: center;
}

.placeholder-dog {
    background: linear-gradient(135deg, #1f2a1f, #5f7d4c);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
}

.dog-info {
    padding: 18px;
}

.dog-info h3 {
    color: #456f32;
    font-family: Georgia, serif;
    font-size: 24px;
    margin: 0 0 6px;
}

.dog-info p {
    font-size: 14px;
    line-height: 1.45;
}

.dog-info a {
    display: inline-block;
    background: #456f32;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.adoption-process {
    max-width: 1080px;
    margin: 0 auto 45px;
    padding: 0 24px;
    text-align: center;
}

.process-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.process-grid span {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #f3efe5;
    color: #456f32;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
}

.process-grid h3 {
    margin: 10px 0 6px;
}

.process-grid p {
    font-size: 14px;
    line-height: 1.45;
}

.support-banner {
    max-width: 1180px;
    margin: 0 auto;
    background: linear-gradient(135deg, #456f32, #263a22);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 34px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.support-banner h2 {
    font-family: Georgia, serif;
    font-size: 32px;
    margin: 0 0 8px;
}

.support-banner p {
    max-width: 560px;
    margin: 0;
    line-height: 1.55;
}

.support-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.light-btn,
.outline-btn {
    min-width: 180px;
    text-align: center;
    border-radius: 9px;
    padding: 14px 22px;
    font-weight: 700;
}

.light-btn {
    background: #f7f2e3;
    color: #456f32;
}

.outline-btn {
    border: 1px solid rgba(255,255,255,.7);
    color: #fff;
}

.light-btn small,
.outline-btn small {
    font-weight: 400;
}

.testimonial {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    border-radius: 0 0 10px 10px;
}

.testimonial blockquote {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.testimonial p {
    min-width: 210px;
}

.site-footer {
    margin-top: 45px;
    background: #1d211f;
    color: #fff;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
    gap: 35px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
}

.footer-grid a {
    display: block;
    color: #ddd;
    margin: 7px 0;
}

.footer-bottom {
    background: #456f32;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

/* Tablet */
@media (max-width: 950px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .quick-links,
    .dog-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-icon {
        margin: 0 auto;
    }

    .mission-list {
        border-left: none;
        padding-left: 0;
    }

    .support-banner,
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .header-inner {
        padding: 14px;
    }

    .logo-area {
        min-width: auto;
        width: 100%;
    }

    .main-nav {
        gap: 12px;
        font-size: 13px;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: auto;
        background:
            linear-gradient(rgba(247,247,242,.92), rgba(247,247,242,.92)),
            url("/images/giant-schnauzer-hero.jpg");
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .quick-links,
    .dog-grid,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        margin-top: 25px;
    }

    .dog-card {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .support-banner {
        padding: 30px 22px;
    }
}

/* Centre full page layout refinement */
body {
    text-align: center;
}

/* Keep paragraph text readable */
p,
li,
blockquote {
    text-align: center;
}

/* Header centred */
.header-inner {
    justify-content: center;
    text-align: center;
}

.logo-area {
    justify-content: center;
}

.main-nav {
    justify-content: center;
}

/* Hero moved left, image remains on right */
.hero {
    justify-content: flex-start;
    text-align: left;
}

.hero-content {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding-left: 60px;
}

.hero h1,
.hero p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.hero-buttons {
    justify-content: flex-start;
}

/* Quick cards centred */
.quick-card {
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Mission section centred */
.mission-box {
    text-align: center;
}

.mission-list {
    text-align: center;
}

/* Dog cards centred */
.dog-info {
    text-align: center;
}

/* Footer centred */
.footer-grid {
    text-align: center;
}

.footer-grid a {
    text-align: center;
}

/* Centre hero image without adding extra images */
.hero {
    background-size: auto 90%;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Keep hero text safely on the left */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Make the text area slightly narrower so it does not sit over the dog */
.hero h1,
.hero p {
    max-width: 470px;
}

/* Full-width hero with centred single background image */
.hero {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 560px;
    background:
        linear-gradient(90deg, rgba(247,247,242,.96) 0%, rgba(247,247,242,.82) 36%, rgba(247,247,242,.35) 58%, rgba(247,247,242,.12) 100%),
        url("/images/giant-schnauzer-hero.jpg");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Keep the writing area on the left */
.hero-content {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding-left: 70px;
    padding-right: 24px;
    text-align: left;
}

/* Make the text sit neatly over the pale part */
.hero h1,
.hero p {
    max-width: 500px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Buttons left aligned */
.hero-buttons {
    justify-content: flex-start;
}


/* Inner page section spacing fix */
.page-section {
    margin-top: 55px;
    margin-bottom: 55px;
}

.page-section .section-heading {
    display: block;
    text-align: center;
    margin-bottom: 35px;
}

.page-section .section-heading h2 {
    margin-bottom: 12px;
}

/* Stop quick-link cards from pulling upwards on inner pages */
.page-section .quick-links {
    margin-top: 0;
}

/* Contact page */
.contact-section {
    max-width: 1080px;
    margin: 55px auto;
    padding: 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.contact-info-box,
.contact-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.contact-info-box h2,
.contact-form h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    color: #456f32;
    margin-top: 0;
}

.contact-info-box p {
    line-height: 1.6;
}

.contact-info-box a {
    color: #456f32;
    font-weight: 700;
}

.contact-form {
    text-align: left;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin: 16px 0 6px;
    color: #1f2a1f;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d8cf;
    border-radius: 9px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    background: #fbfbf7;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
    background: #456f32;
    color: #ffffff;
    border: none;
    padding: 15px 26px;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form button:hover {
    background: #365729;
}

.form-note {
    font-size: 13px;
    color: #666;
    margin-top: 16px;
}

/* Contact mobile */
@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-box,
    .contact-form {
        text-align: center;
    }

    .contact-form label {
        text-align: left;
    }
}

/* News page cards */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border: 1px solid #eee;
    text-align: center;
}

.news-date {
    display: inline-block;
    background: #f3efe5;
    color: #456f32;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.news-card h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #456f32;
    margin: 0 0 12px;
}

.news-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.news-card a {
    display: inline-block;
    margin-top: 12px;
    background: #456f32;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
}

/* Legal pages */
.legal-page-section {
    max-width: 980px;
    margin: 55px auto;
    padding: 0 24px;
}

.legal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 42px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border: 1px solid #eee;
    text-align: left;
}

.legal-content h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #456f32;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    text-align: left;
    margin-bottom: 16px;
}

.legal-note {
    margin-top: 32px;
    background: #f3efe5;
    border-left: 5px solid #456f32;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 14px !important;
    color: #444 !important;
}

@media (max-width: 650px) {
    .legal-content {
        padding: 28px 22px;
    }

    .legal-content h2 {
        font-size: 23px;
    }

    .legal-content p {
        font-size: 15px;
    }
}

/* Inner page hero tidy */
.page-hero {
    background: #f7f7f2;
    padding: 55px 24px 35px;
    text-align: center;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1.15;
    color: #1f2a1f;
    margin: 0 0 18px;
    text-align: center;
}

.page-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
    color: #333;
    text-align: center;
}

/* Safe hero badge position */
.hero {
    position: relative;
    overflow: visible;
}

.hero-badge {
    position: absolute !important;
    top: 80px !important;
    left: 60% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: grid !important;
}

/* Tablet adjustment */
@media (max-width: 950px) {
    .hero-badge {
        left: 68% !important;
        top: 90px !important;
    }
}

/* Mobile: place badge under the hero text */
@media (max-width: 650px) {
    .hero-badge {
        position: static !important;
        transform: none !important;
        margin: 20px auto 30px !important;
    }
}
/* Restore and position hero badge */
.hero {
    position: relative !important;
    overflow: visible !important;
}

.hero-badge {
    position: absolute !important;
    left: 62% !important;
    top: 80px !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    width: 145px !important;
    height: 145px !important;
    border-radius: 50% !important;

    background: #f5f0dd !important;
    border: 6px solid rgba(154,144,96,.35) !important;

    display: grid !important;
    place-items: center !important;
    text-align: center !important;

    color: #365729 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;

    z-index: 50 !important;
}

/* Keep badge tidy on tablet */
@media (max-width: 950px) {
    .hero-badge {
        left: 54% !important;
        top: 52px !important;
    }
}

/* Mobile: place badge below text instead of over image */
@media (max-width: 650px) {
    .hero-badge {
        position: static !important;
        transform: none !important;
        margin: 20px auto 30px !important;
    }
}

/* Final hero badge position override */
.hero-badge {
    left: 67% !important;
    top: 62px !important;
}

/* Keep same position on tablet/medium screens */
@media (max-width: 950px) {
    .hero-badge {
        left: 64% !important;
        top: 62px !important;
    }
}

/* Mobile still stacks neatly */
@media (max-width: 650px) {
    .hero-badge {
        position: static !important;
        transform: none !important;
        margin: 20px auto 30px !important;
    }
}

/* Privacy checkbox on contact form */
.privacy-check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    text-align: left;
}

.privacy-check input {
    width: auto !important;
    margin-top: 4px;
    flex-shrink: 0;
}

.privacy-check span {
    display: block;
    font-size: 14px;
    color: #333;
}

.privacy-check a {
    color: #456f32;
    font-weight: 700;
    text-decoration: underline;
}

/* Mobile header tidy-up: hide separate donate button */
@media (max-width: 768px) {
    .donate-btn {
        display: none;
    }
}

/* Fix dog profile action button text */
.contact-info-box .primary-btn,
.dog-profile-layout .primary-btn {
    color: #ffffff !important;
}

.contact-info-box .primary-btn:hover,
.dog-profile-layout .primary-btn:hover {
    color: #ffffff !important;
}

.contact-info-box .secondary-btn,
.dog-profile-layout .secondary-btn {
    text-decoration: none;
}

/* Public dog status badges */
.dog-image-with-badge {
    position: relative;
}

.dog-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    background: #3d6f37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
}

.dog-status-available {
    background: #3d6f37;
}

.dog-status-reserved {
    background: #b7771f;
}

.dog-status-foster {
    background: #356b8c;
}

.dog-status-not_ready {
    background: #6f5a8c;
}

.dog-status-adopted {
    background: #555555;
}

@media (max-width: 700px) {
    .dog-status-badge {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.powered-by {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    padding: 12px 15px 18px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.powered-by a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Mobile public header */
@media (max-width: 768px) {

    .site-header {
        overflow: hidden;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 18px 16px;
    }

    .logo-area {
        width: 100%;
        justify-content: center;
        gap: 10px;
        text-align: left;
    }

    .logo-icon-img {
        width: 48px;
        height: 48px;
    }

    .logo-area strong {
        display: block;
        font-size: 24px;
        line-height: 1.05;
    }

    .logo-area span {
        display: block;
        font-size: 22px;
        line-height: 1.1;
    }

    .logo-area small {
        display: block;
        font-size: 13px;
        margin-top: 3px;
    }

    .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 8px;
    text-align: center;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
    border: 1px solid #dce5d8;
    border-radius: 8px;
    background: #f5f7f3;
    text-decoration: none;
}

.main-nav a.active {
    color: #ffffff;
    background: #4f7b43;
    border-color: #4f7b43;
    border-bottom: 1px solid #4f7b43;
}