/* ========================================
   Torres Electric — Stylesheet
   Deep Navy + Warm Gold Palette
   ======================================== */

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

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-mid: #334155;
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-dark: #b45309;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: var(--navy);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-lg-wide {
    padding: 18px 40px;
    font-size: 1.063rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.btn-nav:hover {
    background: var(--gold-dark);
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-light {
    color: var(--white);
}

.logo-icon {
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a:not(.btn) {
    color: var(--gray-200);
    font-size: 0.938rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav a:not(.btn):hover {
    color: var(--white);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    color: var(--gray-200);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--gold);
}

.mobile-cta {
    margin-top: 16px;
    justify-content: center;
    border: none;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: var(--gold-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.188rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section Shared
   ======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.063rem;
    line-height: 1.7;
}

/* ========================================
   Services
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.65;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    max-width: 520px;
}

.about-body {
    color: var(--gray-600);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 0.813rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================================
   Why Us
   ======================================== */
.why-us {
    padding: 100px 0;
    background: var(--navy);
}

.why-us .section-label {
    color: var(--gold);
}

.why-us .section-title {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}

.why-card:hover {
    border-color: rgba(217, 119, 6, 0.3);
    transform: translateY(-2px);
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(217, 119, 6, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.188rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card p {
    color: var(--gray-400);
    font-size: 0.938rem;
    line-height: 1.65;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    padding: 80px 0;
    background: var(--gold);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: 12px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.063rem;
    line-height: 1.6;
}

.cta-actions .btn-gold {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.cta-actions .btn-gold:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-desc {
    color: var(--gray-600);
    font-size: 1.063rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-item p, .contact-item a {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-hours {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--gray-100);
}

.contact-hours strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-hours p {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    color: var(--gray-800);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius);
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success p {
    color: #059669;
    font-size: 0.938rem;
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.938rem;
    transition: color var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact strong {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.footer-contact a, .footer-contact p {
    color: var(--gray-400);
    font-size: 0.938rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.813rem;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 24px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
}
