/*
Theme Name: FrontlineAide
Theme URI: https://frontlineaide.com
Author: FrontlineAide
Author URI: https://frontlineaide.com
Description: A compassionate, modern WordPress theme for FrontlineAide - In-Home Senior Care services. Features a full-screen hero with location search, service cards, caregiver job listings, contact forms, and a professional footer. Designed with warm brand colors (navy blue, gold, teal) and the Merriweather & Open Sans font pairing for a trustworthy, caring aesthetic.
Version: 1.0.0
Tested up to: 6.7
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: frontlineaide
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/*
 * FrontlineAide Theme - Base Styles
 * The majority of styling is loaded via the compiled CSS assets.
 * This stylesheet contains WordPress-required theme headers and essential
 * base resets to ensure proper rendering before the main assets load.
 */

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

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
}

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-bottom: 1rem;
}

a {
    color: #1e4a6f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a017;
}

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

/* ===== Layout ===== */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container-custom { padding: 0 2rem; }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding { padding: 5rem 0; }
}

@media (min-width: 1024px) {
    .section-padding { padding: 6rem 0; }
}

/* ===== WordPress Alignment Classes ===== */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

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

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

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ===== WordPress Caption ===== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666666;
    text-align: center;
    padding: 0.5rem 0;
}

/* ===== Screen Reader Text ===== */
.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;
}

/* ===== WordPress Content Styling ===== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.entry-content blockquote {
    border-left: 4px solid #d4a017;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f5f5f5;
    font-style: italic;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.entry-content th {
    background-color: #1e4a6f;
    color: #ffffff;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background-color: #d4a017;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background-color: #1e4a6f;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 74, 111, 0.4);
    color: #ffffff;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
