/* ===================================
   Daytonlawyers.com - Main Stylesheet
   Law Offices of Terry W. Posey
   =================================== */

/* CSS Variables */
:root {
    --ohio-blue: #003f87;
    --trust-green: #2d5f3f;
    --professional-gold: #c5a572;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #333333;
    --medium-text: #666666;
    --light-text: #999999;
    --border-color: #e0e0e0;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ohio-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--trust-green);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--ohio-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--ohio-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--white);
    margin-left: 20px;
}

.top-bar a:hover {
    color: var(--professional-gold);
}

.top-bar i {
    margin-right: 5px;
}

.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--ohio-blue);
}

.site-branding .tagline {
    font-size: 0.9rem;
    color: var(--medium-text);
    font-style: italic;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--dark-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--ohio-blue);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--ohio-blue);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--ohio-blue) 0%, var(--trust-green) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--professional-gold);
    color: var(--white);
    border-color: var(--professional-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--professional-gold);
    border-color: var(--professional-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--ohio-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--ohio-blue);
    border-color: var(--ohio-blue);
}

.btn-outline:hover {
    background-color: var(--ohio-blue);
    color: var(--white);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    color: var(--ohio-blue);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: var(--medium-text);
}

/* Practice Areas */
.practice-area {
    padding: 30px;
    background: var(--white);
    border-left: 4px solid var(--professional-gold);
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.practice-area:hover {
    border-left-color: var(--ohio-blue);
    box-shadow: var(--shadow-md);
}

.practice-area h3 {
    color: var(--ohio-blue);
    margin-bottom: 0.75rem;
}

.practice-area ul {
    list-style-position: inside;
    color: var(--medium-text);
}

.practice-area ul li {
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats {
    background: var(--ohio-blue);
    color: var(--white);
    padding: 60px 0;
}

.stats .grid {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--professional-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-style: italic;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 5rem;
    color: var(--professional-gold);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial p {
    margin-bottom: 1rem;
    padding-top: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--ohio-blue);
    font-style: normal;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--trust-green) 0%, var(--ohio-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Info Blocks */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-block {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-block:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-block i {
    font-size: 3rem;
    color: var(--ohio-blue);
    margin-bottom: 1rem;
}

.contact-block h3 {
    margin-bottom: 0.75rem;
}

.contact-block a {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 30px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.site-footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--professional-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
}

.footer-section a:hover {
    color: var(--professional-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--light-bg);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumbs li::after {
    content: '→';
    margin-left: 10px;
    color: var(--medium-text);
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--medium-text);
}

.breadcrumbs a:hover {
    color: var(--ohio-blue);
}

/* Alert Boxes */
.alert {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.alert-warning {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    background-color: var(--professional-gold);
    color: var(--white);
    margin-left: 10px;
}

/* Lists with Icons */
.icon-list {
    list-style: none;
}

.icon-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
}

.icon-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--trust-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-content {
        align-items: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar a {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 15px;
    }
    
    .card,
    .practice-area {
        padding: 20px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero,
    .cta-section,
    .site-footer,
    .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ohio-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--ohio-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--professional-gold);
    color: var(--white);
}
