/* Alexa K. Alvarez, P.A. - Family Law Website */
/* Design based on alvarez2.webamelia.net */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0d1f33;
    --accent: #c9a962;
    --accent-light: #ddc078;
    --accent-dark: #a68a3c;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-warm: #faf8f5;
    --bg-dark: #1a1a1a;
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.1);
    --shadow-lg: rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover {
    color: var(--accent);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
}

.header-top {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.header-top a {
    color: white;
    font-weight: 500;
}

.header-top a:hover {
    color: var(--accent-light);
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--accent);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    color: var(--text);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero .tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--accent-light);
}

.hero .btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-page {
    padding: 80px 0;
}

.hero-page h1 {
    font-size: 2.75rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-warm {
    background: var(--bg-warm);
}

.section-dark {
    background: var(--primary-dark);
    color: white;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Services Icon Grid (for services page) */
.services-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.service-icon-item {
    background: white;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.service-icon-item:hover {
    transform: translateY(-5px);
}

.service-icon-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.service-icon-item span {
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

/* ============================================
   ABOUT / BIO SECTIONS
   ============================================ */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-text h2 {
    margin-bottom: 1.5rem;
}

.credentials-list {
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.credential-icon {
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.credential-item strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.credential-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Bio with alternating images */
.bio-section {
    margin-bottom: 60px;
}

.bio-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.bio-block.reverse {
    direction: rtl;
}

.bio-block.reverse > * {
    direction: ltr;
}

.bio-block-text h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.bio-block-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

/* Credentials Box */
.credentials-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.credentials-box h3 {
    margin-bottom: 25px;
    color: var(--primary);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.credentials-column h4 {
    color: var(--accent-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credentials-column ul {
    list-style: none;
    margin: 0;
}

.credentials-column li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

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

/* Practice Areas Box */
.practice-areas-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px;
    border-radius: 8px;
    color: white;
}

.practice-areas-box h3 {
    color: white;
    margin-bottom: 20px;
}

.practice-areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
}

.practice-areas-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.practice-areas-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: bold;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 100px;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 25px;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--text);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.contact-info-card h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--primary-dark);
    font-weight: 500;
    margin: 0;
    font-size: 1.1rem;
}

.contact-info-card a {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Map */
.map-container {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px var(--shadow);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 15px var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    color: var(--primary-dark);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-item.active .faq-question {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 500px;
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px var(--shadow);
}

.resource-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.resource-card ul {
    list-style: none;
    margin: 0;
}

.resource-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.resource-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 500;
}

.resource-card a:hover {
    color: var(--accent);
}

.resource-card a::before {
    content: '→';
    color: var(--accent);
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about .logo-text {
    color: white;
    margin-bottom: 15px;
    display: block;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.pt-4 { padding-top: 40px; }
.pb-4 { padding-bottom: 40px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .about-preview,
    .contact-grid,
    .bio-block {
        grid-template-columns: 1fr;
    }
    
    .bio-block.reverse {
        direction: ltr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px var(--shadow);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--border);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 15px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-page h1 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    section {
        padding: 60px 0;
    }
    
    .header-top {
        display: none;
    }
    
    .bio-block-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}
