/* ==========================================================================
   Paws 4 Thought Dogs - Website Styles
   ========================================================================== */

:root {
    --color-green-dark: #22533c;
    --color-green: #165043;
    --color-green-light: #2d6b4f;
    --color-footer: #252711;
    --color-white: #ffffff;
    --color-offwhite: #f5f5f5;
    --color-gray-light: #eeeeee;
    --color-gray: #666666;
    --color-text: #333333;
    --color-success: #198754;
    --color-error: #dc3545;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 90px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-gray-light);
}

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

a {
    color: var(--color-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-green);
    color: var(--color-white);
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Focus Styles (Accessibility)
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--color-green-light);
    outline-offset: 2px;
}

.main-nav a:focus-visible,
.footer-nav a:focus-visible,
.social-link:focus-visible {
    outline-color: var(--color-white);
    border-radius: 2px;
}

.btn:focus-visible {
    outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
}

.logo {
    height: 65px;
    width: auto;
}

.tagline {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom-color: var(--color-white);
    text-decoration: none;
}

.main-nav .social-link {
    border-bottom: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.main-nav .social-link:hover {
    opacity: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.2s;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.messages-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background-color: var(--color-green-dark);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    color: var(--color-white);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-green-light);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-green-dark);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-light {
    background-color: var(--color-offwhite);
}

.section-full {
    max-width: none;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-green);
    margin-bottom: 1.5rem;
}

.section-title a {
    color: var(--color-green);
    text-decoration: underline;
}

/* Welcome section */
.welcome {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.welcome-image {
    border-radius: 8px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.welcome-text p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ==========================================================================
   Cards (Blog posts, Services)
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-date {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--color-green);
    text-decoration: underline;
}

.card-title a:hover {
    color: var(--color-green-dark);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Service cards */
.service-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card-body {
    padding: 1.5rem;
}

.service-card-body h3 {
    color: var(--color-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.service-card-body p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ==========================================================================
   Services Banner
   ========================================================================== */

.services-banner {
    background-color: var(--color-green-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--color-white);
}

.services-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-banner-content {
    position: relative;
    z-index: 1;
}

.services-banner h2 {
    font-size: 1.6rem;
    text-decoration: underline;
    margin-bottom: 1rem;
    color: #c9c9c9;
}

.services-banner p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background-color: #e8f5e9;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-green-dark);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-green-dark);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--color-error);
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 2px rgba(34, 83, 60, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-errors {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Blog Detail
   ========================================================================== */

.blog-detail {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-header h1 {
    font-size: 2rem;
    color: var(--color-green);
    margin-bottom: 0.5rem;
}

.blog-detail-date {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.blog-detail-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
    max-height: 500px;
    object-fit: cover;
}

.blog-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.blog-detail-body h2 {
    color: var(--color-green);
    margin: 2rem 0 1rem;
}

.blog-detail-body h3 {
    color: var(--color-green);
    margin: 1.5rem 0 0.75rem;
}

.blog-detail-body p {
    margin-bottom: 1rem;
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-detail-body img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--color-green);
    font-weight: 500;
}

/* ==========================================================================
   Field Hire
   ========================================================================== */

.field-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.field-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.field-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.field-features {
    margin: 1.5rem 0;
}

.field-features li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.field-features li strong {
    color: var(--color-green-dark);
}

.field-details h3 {
    color: var(--color-green);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

/* ==========================================================================
   Privacy Policy
   ========================================================================== */

.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-policy h1 {
    color: var(--color-green);
    margin-bottom: 0.5rem;
}

.privacy-policy .last-updated {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.privacy-policy h2 {
    color: var(--color-green);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-policy ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.privacy-policy li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   License
   ========================================================================== */

.license-notice {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--color-gray);
    font-size: 0.9rem;
    background-color: var(--color-offwhite);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-footer);
    color: #f9f3f0;
    padding: 2rem 1.5rem 1rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #f9f3f0;
    font-size: 0.9rem;
    text-decoration: none;
}

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

.footer-right .social-link {
    color: #f9f3f0;
    opacity: 0.8;
}

.footer-right .social-link:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   Page Header (for inner pages)
   ========================================================================== */

.page-header {
    background-color: var(--color-offwhite);
    padding: 3rem 1.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--color-green);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-green-dark);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 300px;
    }

    .welcome {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .welcome-image {
        height: 200px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .field-gallery {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tagline {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.pagination-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--color-green);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.pagination-link:hover {
    background-color: var(--color-green-light);
    color: var(--color-white);
    text-decoration: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ==========================================================================
   Share Links
   ========================================================================== */

.share-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.share-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.share-facebook {
    background-color: #1877f2;
    color: var(--color-white);
}

.share-whatsapp {
    background-color: #25d366;
    color: var(--color-white);
}

.share-copy {
    background-color: var(--color-gray-light);
    color: var(--color-text);
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-green);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--color-green-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--color-white);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* ==========================================================================
   Fade-in on Scroll Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Typography - Heading Font
   ========================================================================== */

h1, h2, h3,
.hero h1,
.section-title,
.card-title,
.page-header h1 {
    font-family: var(--font-heading);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-green-light);
    opacity: 0.3;
    position: absolute;
    top: 0.25rem;
    left: 1rem;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-green-dark);
    font-size: 0.9rem;
}

.testimonial-dog {
    color: var(--color-gray);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Subtle Background Improvements
   ========================================================================== */

.section-light {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}
