/*
Theme Name: Locksmith Minimal
Theme URI: https://example.com/locksmith-minimal
Author: Your Name
Author URI: https://example.com
Description: A minimal WordPress theme designed for locksmith businesses with sticky header, Elementor support, and Yoast SEO compatibility.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: locksmith-minimal
Tags: custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, business, one-column, sticky-post, theme-options
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Variables
2.0 Reset & Base Styles
3.0 Typography
4.0 Header & Navigation
5.0 Content
6.0 Footer
7.0 Responsive Design
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37;
    --text-color: #333333;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --header-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --max-width: 1200px;
    --header-height: 80px;
    --spacing-small: 10px;
    --spacing-medium: 20px;
    --spacing-large: 40px;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-family-heading: Georgia, "Times New Roman", Times, serif;
}

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

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

body {
    font-family: var(--font-family-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    padding-top: var(--header-height);
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: 1.3;
    margin-bottom: var(--spacing-medium);
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-medium);
}

ul, ol {
    margin-bottom: var(--spacing-medium);
    padding-left: var(--spacing-large);
}

/*--------------------------------------------------------------
4.0 Header & Navigation
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo a {
    display: block;
}

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

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

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

.site-branding .site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-branding .site-title a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.site-phone {
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: bold;
}

.site-phone a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-small);
}

.site-phone a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.phone-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/*--------------------------------------------------------------
5.0 Content
--------------------------------------------------------------*/
.site-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-large) var(--spacing-medium);
    min-height: calc(100vh - var(--header-height) - 150px);
}

.entry-header {
    margin-bottom: var(--spacing-large);
}

.entry-title {
    margin-bottom: var(--spacing-small);
}

.entry-content {
    margin-bottom: var(--spacing-large);
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* WordPress Core Alignment */
.alignleft {
    float: left;
    margin-right: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.alignright {
    float: right;
    margin-left: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-medium);
}

.alignwide,
.alignfull {
    margin-bottom: var(--spacing-medium);
}

/* WordPress Block Editor Styles */
.wp-block-image {
    margin-bottom: var(--spacing-medium);
}

.wp-block-button__link {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wp-block-button__link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
}

/* Comments */
.comments-area {
    margin-top: var(--spacing-large);
    padding-top: var(--spacing-large);
    border-top: 1px solid var(--secondary-color);
}

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

.comment {
    margin-bottom: var(--spacing-medium);
    padding: var(--spacing-medium);
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/*--------------------------------------------------------------
6.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-large) 0;
    margin-top: var(--spacing-large);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
    text-align: center;
}

.site-info {
    font-size: 0.9rem;
}

.site-info p {
    margin-bottom: var(--spacing-small);
}

.site-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.site-info a:hover {
    color: var(--footer-text);
    text-decoration: underline;
}

/*--------------------------------------------------------------
7.0 Responsive Design
--------------------------------------------------------------*/

/* Tablets and below (768px) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-large: 30px;
    }

    body {
        padding-top: var(--header-height);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .header-container {
        padding: 0 var(--spacing-medium);
    }

    .site-logo img {
        max-height: 50px;
    }

    .site-phone {
        font-size: 1.1rem;
    }

    .site-content {
        padding: var(--spacing-medium);
    }
}

/* Mobile devices (480px) */
@media screen and (max-width: 480px) {
    :root {
        --header-height: 60px;
        --spacing-large: 20px;
        --spacing-medium: 15px;
    }

    body {
        padding-top: var(--header-height);
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .header-container {
        padding: 0 var(--spacing-small);
        flex-wrap: wrap;
    }

    .site-logo {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: var(--spacing-small);
    }

    .site-logo img {
        max-height: 40px;
        margin: 0 auto;
    }

    .site-phone {
        flex: 1 1 100%;
        text-align: center;
        font-size: 1rem;
    }

    .site-branding .site-title {
        font-size: 1.25rem;
    }

    .site-content {
        padding: var(--spacing-medium) var(--spacing-small);
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 0 0 var(--spacing-medium) 0;
    }
}

/* Small mobile devices (320px) */
@media screen and (max-width: 320px) {
    body {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .site-phone {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }

    body {
        padding-top: 0;
    }

    .site-content {
        max-width: 100%;
    }
}
