/*
Theme Name: Notaría Balbín
Theme URI: https://notariabalbin.com
Author: Custom Theme
Author URI: https://notariabalbin.com
Description: Custom WordPress theme for Notaría Balbín - Professional notary services in Huancayo, Junín
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notaria-balbin
Tags: business, professional, legal, notary

This theme was custom built for Notaría Balbín.
*/

:root {
    --primary-blue: #001749;
    --bronze: #8b6f47;
    --text-dark: #2d3436;
    --background: #fdfeff;
    --burgundy: #722f37;
    --light-gray: #f8f9fa;
    --border-color: #e1e8ed;
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 23, 73, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.logo-image {
    height: 55px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
}

@media (max-width: 768px) {
    .logo-image {
        height: 50px !important;
    }
}

.logo-subtitle {
    display: none; /* Hide subtitle when using image logo */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 42px;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-blue);
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-blue);
    color: white;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-blue);
}

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

nav a:hover::after {
    width: 100%;
}

.phone-header {
    background: var(--burgundy);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-header::after {
    display: none;
}

.phone-header:hover {
    background: #8b1e3f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002a6b 100%);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 111, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 111, 71, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--burgundy);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid var(--burgundy);
}

.btn-primary:hover {
    background: #8b1e3f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 47, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Trust Bar */
.trust-bar {
    background: var(--light-gray);
    padding: 3rem 2rem;
    border-top: 3px solid var(--bronze);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.trust-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trust-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Years Banner */
.years-banner {
    background: white;
    padding: 5rem 2rem;
}

.years-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.years-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -4px;
}

.years-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.years-subtext {
    font-size: 1.2rem;
    color: var(--bronze);
    margin-top: 1rem;
    font-style: italic;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: white;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--bronze);
    transition: height 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.service-card:hover {
    border-color: var(--bronze);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 23, 73, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.view-all-services {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    background: var(--primary-blue);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #002a6b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 23, 73, 0.3);
}

/* Why Choose Section */
.why-choose {
    background: var(--primary-blue);
    color: white;
    padding: 5rem 2rem;
    position: relative;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(139, 111, 71, 0.05) 100%);
    pointer-events: none;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--bronze);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.why-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.why-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: var(--light-gray);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item-label {
    font-size: 0.85rem;
    color: var(--bronze);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-item-value {
    font-size: 1.15rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--bronze);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--bronze);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002a6b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Page Specific Styles */
.contact-content {
    max-width: 1200px;
    margin: -3rem auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 23, 73, 0.1);
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-detail {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--bronze);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-detail-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-detail-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail-content a:hover {
    color: var(--bronze);
}

.map-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 23, 73, 0.1);
    height: 500px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.cta-card {
    background: var(--primary-blue);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hours-table {
    width: 100%;
    margin-top: 1rem;
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 1rem 0;
    font-size: 1rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--primary-blue);
}

.hours-table td:last-child {
    text-align: right;
}

/* Service Card Styles for Services Page */
.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--bronze);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* WordPress specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ====================
   MOBILE RESPONSIVE
   ==================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        align-items: stretch;
        z-index: 999;
    }

    nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    nav a::after {
        display: none;
    }

    nav .phone-header {
        margin: 0;
        text-align: center;
        justify-content: center;
    }

    /* Hero Mobile */
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Trust Bar Mobile */
    .trust-bar {
        padding: 2rem 1rem;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Years Banner Mobile */
    .years-banner {
        padding: 3rem 1.5rem;
    }

    .years-number {
        font-size: 4rem;
    }

    .years-text {
        font-size: 1.6rem;
    }

    .years-subtext {
        font-size: 1rem;
    }

    /* Services Mobile */
    .services {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Why Choose Mobile */
    .why-choose {
        padding: 3rem 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Contact Page Mobile */
    .contact-content {
        margin-top: -2rem;
        padding: 0 1rem 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .map-section {
        height: 300px;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-card .btn-secondary {
        margin-top: 0.5rem;
        display: block;
        width: 100%;
    }

    .hours-table td {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
}
