/*
Theme Name: Lone Star Bichons
Theme URI: https://lonestarbichons.com/
Author: Lone Star Bichons
Author URI: https://lonestarbichons.com/
Description: Custom WordPress theme for Lone Star Bichons — specialty Bichon Frise breeder in Spring, Texas.
Version: 2.0.0
Requires at least: 5.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lonestarbichons
Tags: custom, one-page, business, dog-breeder
*/

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

:root {
    --color-primary: #0a3d62;
    --color-accent: #f5a623;
    --color-text: #343a40;
    --color-text-light: #6c757d;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1b2d42;
    --color-white: #ffffff;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Roboto', 'Open Sans', Arial, sans-serif;
    --max-width: 1200px;
    --section-pad: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ===== Header / Nav ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background 0.3s;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.site-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.site-logo img {
    max-height: 55px;
    width: auto;
}
.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.primary-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }
.primary-nav a:hover { color: var(--color-primary); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10,61,98,0.6), rgba(27,45,66,0.75));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 40px 20px;
}
.hero h1 {
    color: var(--color-white);
    font-size: 3.2rem;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1.5em;
    opacity: 0.95;
}
.hero .tagline {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 1.5em;
}

/* ===== Sections ===== */
.section {
    padding: var(--section-pad) 0;
}
.section-alt {
    background: var(--color-bg-alt);
}
.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ===== About / Story ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text .experience {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 3px;
    margin-bottom: 16px;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--color-white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    opacity: 0.4;
}
.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 1em;
    padding-left: 0;
    border: none;
    line-height: 1.6;
}
.testimonial-card .attribution {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-item .icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 18px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 25px;
    text-align: center;
}
.site-footer a { color: var(--color-accent); }
.footer-nav { margin-bottom: 20px; }
.footer-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-accent); }
.footer-copy { font-size: 0.85rem; opacity: 0.7; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root { --section-pad: 50px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero .tagline { font-size: 1.2rem; }
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .testimonials-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .primary-nav.open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .primary-nav li { border-bottom: 1px solid #eee; }
    .primary-nav a { display: block; padding: 12px 0; }
}

/* ===== WordPress Utility ===== */
.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* WP admin bar fix */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
