/*
Theme Name: MyPetNet
Theme URI: https://mypetnet.com
Author: MyPetNet
Description: Custom theme for MyPetNet - Pet Health Tracking SaaS and Blog
Version: 1.0.9
Requires at least: 5.0
Requires PHP: 7.4
Text Domain: mypetnet
*/

/* ── Reset & Base ───────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #151C49;
    text-decoration: none;
}

a:hover {
    color: #0d1230;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #151C49;
    line-height: 1.3;
    margin-top: 0;
}

/* ── Container ──────────────────────────────────────────── */

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

/* ── Header & Navigation ────────────────────────────────── */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    color: #151C49;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-branding img {
    width: auto;
    max-height: 90px;
    padding-top: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Primary Navigation */

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.primary-nav a {
    color: #444;
    padding: 8px 16px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: #151C49;
    background-color: rgba(21, 28, 73, 0.06);
}

/* Auth Buttons */

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background-color: #151C49;
    color: #fff;
    border-color: #151C49;
}

.btn-primary:hover {
    background-color: #0d1230;
    color: #fff;
    border-color: #0d1230;
}

.btn-secondary {
    background-color: transparent;
    color: #151C49;
    border-color: #151C49;
}

.btn-secondary:hover {
    background-color: #151C49;
    color: #fff;
}

/* Mobile Menu Toggle */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #151C49;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero Banner ────────────────────────────────────────── */

.hero-banner {
    background-color: #B6D3D5;
    padding: 0 0;
    margin-bottom: -150px;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #151C49;
}

.hero-content p {
    font-size: 1.15rem;
    color: #2a2a2a;
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-content .btn {
    padding: 12px 32px;
    font-size: 1rem;
}

.hero-content .btn-hero {
    background-color: #151C49;
    color: #fff;
    border-color: #151C49;
}

.hero-content .btn-hero:hover {
    background-color: #0d1230;
    border-color: #0d1230;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
}

/* ── Content Layout ─────────────────────────────────────── */

.site-content {
    padding: 40px 0;
}

.content-area {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.full-width .main-content {
    max-width: 100%;
}

/* ── Blog Posts ──────────────────────────────────────────── */

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.post-card-body {
    padding: 24px;
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.post-meta .meta-separator {
    margin: 0 8px;
}

.post-card-body h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.post-card-body h2 a {
    color: #151C49;
}

.post-card-body h2 a:hover {
    color: #0d1230;
}

.post-card-body .excerpt {
    color: #555;
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: #151C49;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #151C49;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.read-more:hover {
    color: #B6D3D5;
    border-color: #B6D3D5;
}

/* ── Single Post ────────────────────────────────────────── */

.single-post-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.single-post-content .post-thumbnail {
    margin: -40px -40px 30px -40px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.single-post-content .post-thumbnail img {
    width: 100%;
    display: block;
}

.single-post-content h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.single-post-content .post-meta {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post-content .entry-content p {
    margin-bottom: 1.4em;
}

.single-post-content .entry-content img {
    border-radius: 6px;
}

/* ── Page Content ───────────────────────────────────────── */

.page-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.page-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ── Sidebar ────────────────────────────────────────────── */

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar .widget {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #B6D3D5;
    color: #151C49;
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    margin-bottom: 8px;
}

.sidebar .widget li a {
    color: #444;
    font-size: 0.95rem;
    padding: 6px 0;
    display: block;
    transition: color 0.2s;
}

.sidebar .widget li a:hover {
    color: #151C49;
}

/* ── Archive Header ─────────────────────────────────────── */

.archive-header {
    margin-bottom: 30px;
}

.archive-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.archive-description {
    color: #666;
}

/* ── Pagination ─────────────────────────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ddd;
    color: #151C49;
    background: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #151C49;
    color: #fff;
    border-color: #151C49;
}

.pagination .current {
    background-color: #151C49;
    color: #fff;
    border-color: #151C49;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
    background: #151C49;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Homepage Sections ──────────────────────────────────── */

.home-sections {
    padding: 60px 0;
}

.home-section {
    margin-bottom: 60px;
    text-align: center;
}

.home-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.home-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.09);

}

.feature-card h3 {
    font-size: 2.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* ── Split Section ──────────────────────────────────────── */

.hs-split {
    text-align: left;
}

.hs-split-inner {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 50px;
    align-items: center;
}

.hs-left-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hs-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hs-stat-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.hs-stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #151C49;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.hs-stat-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.hs-split-right {
    padding-left: 10px;
}

.hs-split-right h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.hs-intro-text {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.hs-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.hs-mv-col h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.hs-mv-col p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ── Centred Section ────────────────────────────────────── */

.hs-centred {
    text-align: center;
}

.hs-centred h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.hs-centred p {
    font-size: 1.05rem;
    color: #555;
    margin: 30px auto;
}

/* ── Feature Grid Section ───────────────────────────────── */

.hs-fg-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hs-fg-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 36px 32px 60px;
    overflow: hidden;
}

.hs-fg-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.hs-fg-card p {
    font-size: 0.97rem;
    color: #555;
    margin: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.hs-fg-paws {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 90px;
    opacity: 0.15;
    pointer-events: none;
}

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

/* ── 404 ────────────────────────────────────────────────── */

.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.error-404 h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: #B6D3D5;
}

.error-404 h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.error-404 p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* ── WordPress Defaults ─────────────────────────────────── */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────── */

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hs-split-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hs-split-right {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .menu-toggle {
        display: block;
    }

    .header-right {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .header-right.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .primary-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .primary-nav a {
        padding: 10px 16px;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
    }

    .header-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Content layout */
    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    /* Hero */
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        text-align: center;
    }

    .hero-banner {
        padding: 40px 0;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Split section */
    .hs-mission-vision {
        grid-template-columns: 1fr;
    }

    .hs-img {
        height: 140px;
    }

    /* Single post */
    .single-post-content {
        padding: 24px;
    }

    .single-post-content .post-thumbnail {
        margin: -24px -24px 20px -24px;
    }

    /* Page */
    .page-content {
        padding: 24px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links ul {
        flex-wrap: wrap;
        gap: 16px;
    }
}
