/* ============================================
   DoggyKibbly - Main Stylesheet
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

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

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 2px solid #2563eb;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f9fafb;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumbs ol li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: #fff;
    color: #2563eb;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
}

.feature-card h3 {
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.feature-cta {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.125rem;
}

/* Testimonials */
.testimonials {
    background-color: #f9fafb;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card footer {
    font-style: normal;
}

.testimonial-card strong {
    display: block;
    color: #222;
    font-weight: 600;
}

.testimonial-card span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #222;
    margin-bottom: 0.75rem;
}

/* How-To Guide */
.howto-guide {
    background-color: #f0f9ff;
}

.guide-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.guide-steps {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.guide-step {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.guide-step h3 {
    color: #2563eb;
}

.guide-step ul {
    margin: 1rem 0 1rem 1.5rem;
}

.guide-step li {
    margin-bottom: 0.5rem;
}

.guide-checklist {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.guide-checklist h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.guide-checklist ul {
    margin-left: 1.5rem;
}

.guide-checklist li {
    margin-bottom: 0.5rem;
}

.guide-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Blog Grid */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-intro {
    font-size: 1.125rem;
    color: #6b7280;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f0f9ff;
    border-radius: 0.5rem;
    font-size: 1.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card h2 a {
    color: #222;
}

.blog-card h2 a:hover {
    color: #2563eb;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.pagination a,
.pagination-current {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

.pagination a:hover {
    background-color: #f3f4f6;
    text-decoration: none;
}

.pagination-current {
    background-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* Blog Sidebar */
.blog-sidebar {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: #222;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

/* Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.article-cover {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.article-cover img {
    border-radius: 0.5rem;
    width: 100%;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2rem;
    text-align: left;
}

.article-content h3 {
    margin-top: 1.5rem;
    text-align: left;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.related-articles {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.related-articles h3 {
    margin-bottom: 1rem;
}

.related-articles ul {
    list-style: none;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.social-share {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f0f9ff;
    border-radius: 0.5rem;
    text-align: center;
}

.social-share h4 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons a {
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: #fff;
    border-radius: 0.25rem;
    font-weight: 500;
}

.share-buttons a:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

/* Products Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    margin: 0 auto 1rem;
    max-height: 200px;
}

.product-card h3 {
    color: #222;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 1rem 0;
}

/* About & Contact Pages */
.page-content {
    max-width: 800px;
    margin: 3rem auto;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 0;
    border-color: #2563eb;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
}

button[type="submit"]:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .main-nav ul {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Focus Visible (Modern Browsers) */
:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cta-group,
    .social-share,
    .pagination {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}