/*
Theme Name: Kiwi Shine Care
Theme URI: https://kiwishinecare.com/
Author: Kiwi Shine Care
Author URI: https://kiwishinecare.com/
Description: A modern, clean and responsive WordPress theme built for Kiwi Shine Care. Includes custom widgets, post types, and Gutenberg-friendly styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kiwishinecare
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, responsive-layout
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #0a7c3a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #064e23;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    line-height: 1.25;
    font-weight: 700;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1em;
}

/* =========================================================
   2. LAYOUT
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.content-area {
    width: 100%;
}

@media (min-width: 992px) {
    .has-sidebar .content-area {
        width: 68%;
        float: left;
        padding-right: 40px;
    }
    .has-sidebar .widget-area {
        width: 32%;
        float: right;
    }
}

/* =========================================================
   3. HEADER
   ========================================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: #0a7c3a;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* =========================================================
   4. NAVIGATION
   ========================================================= */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    color: #1a1a1a;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}

.main-navigation a:hover {
    color: #0a7c3a;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1a1a1a;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        gap: 0;
    }
    .main-navigation.toggled ul {
        display: flex;
    }
    .main-navigation li {
        padding: 8px 0;
        border-bottom: 1px solid #eaeaea;
    }
}

/* =========================================================
   5. POSTS & PAGES
   ========================================================= */
.entry-header {
    margin-bottom: 24px;
}

.entry-title a {
    color: #1a1a1a;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.entry-meta a {
    color: #666;
}

.entry-content {
    margin-bottom: 32px;
}

.entry-content > * + * {
    margin-top: 1em;
}

.post-thumbnail {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

article.post,
article.page {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eaeaea;
}

article.post:last-child,
article.page:last-child {
    border-bottom: none;
}

/* =========================================================
   6. SIDEBAR & WIDGETS
   ========================================================= */
.widget {
    margin-bottom: 32px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0a7c3a;
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid #eaeaea;
}

.widget li:last-child {
    border-bottom: none;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: auto;
}

.site-footer a {
    color: #fff;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.875rem;
}

/* =========================================================
   8. BUTTONS & FORMS
   ========================================================= */
button,
.button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    background: #0a7c3a;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: #064e23;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0a7c3a;
    box-shadow: 0 0 0 3px rgba(10, 124, 58, 0.15);
}

/* =========================================================
   9. PAGINATION & COMMENTS
   ========================================================= */
.navigation.pagination {
    margin: 32px 0;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 8px 14px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    color: #1a1a1a;
}

.page-numbers.current {
    background: #0a7c3a;
    color: #fff;
    border-color: #0a7c3a;
}

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eaeaea;
}

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-body {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
}

/* =========================================================
   10. ACCESSIBILITY
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: #fff;
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    left: 8px;
}

/* =========================================================
   11. UTILITY
   ========================================================= */
.alignleft   { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.alignright  { float: right; margin-left: 1.5em;  margin-bottom: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
