/* ============================================
   JN Mechanical, LLC - Main Stylesheet
   Colors from site design: Dark navy, orange accents
   Font: Script for branding, clean sans-serif body
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-dark: #1a1a2e;
    --primary-navy: #16213e;
    --header-dark: #0f0f1a;
    --primary-gray: #4a4a5a;
    --accent-orange: #e85d04;
    --accent-orange-hover: #f48c06;
    --light-bg: #f8f8f8;
    --medium-gray: #e0e0e0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #777777;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

.brand-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--header-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    padding: 10px 20px;
    text-align: center;
    color: var(--white);
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top a {
    color: var(--accent-orange);
    font-weight: 600;
}

.header-top a:hover {
    color: var(--accent-orange-hover);
    text-decoration: underline;
}

.header-top .license {
    margin-left: 20px;
    opacity: 0.7;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--header-dark);
}

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

.logo-icon {
    width: 50px;
    height: 45px;
}

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

.logo-text h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    color: var(--white);
}

.logo-text span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.6em;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 5px;
}

nav a {
    color: var(--white);
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.95em;
    border-radius: 4px;
    transition: var(--transition);
}

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

nav .dropdown {
    position: relative;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-dark);
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown-content a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav .dropdown-content a:last-child {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-dark) 50%, #2a2a4a 100%);
    color: var(--white);
    padding: 100px 20px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

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

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5em;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    color: var(--white);
}

.hero .tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.hero .location {
    font-size: 1em;
    margin-bottom: 25px;
    opacity: 0.8;
}

.hero .phone-numbers {
    font-size: 1.8em;
    margin: 30px 0;
    font-weight: 700;
}

.hero .phone-numbers a {
    color: var(--accent-orange);
    transition: var(--transition);
}

.hero .phone-numbers a:hover {
    color: var(--accent-orange-hover);
}

.hero .phone-numbers .secondary-phone {
    display: block;
    font-size: 0.55em;
    margin-top: 8px;
    opacity: 0.8;
    color: rgba(255,255,255,0.8);
}

.hero .phone-numbers .secondary-phone a {
    color: rgba(255,255,255,0.9);
}

.page-hero {
    padding: 70px 20px 80px;
}

.page-hero h1 {
    font-size: 3.8em;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.4);
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(244, 140, 6, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

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

/* ============================================
   Sections
   ============================================ */
section {
    padding: 80px 20px;
}

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

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

.section-title h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2em;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.section-title p {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-gray);
    font-size: 1.1em;
    max-width: 700px;
    margin: 25px auto 0;
    font-style: italic;
}

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

.section-dark .section-title h2 {
    color: var(--white);
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

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

/* ============================================
   Service Cards
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-dark);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-orange);
}

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

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card ul li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--medium-gray);
    font-size: 0.95em;
}

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

.service-card ul li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    margin-right: 10px;
}

/* ============================================
   Feature Boxes
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
}

.feature-box .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.feature-box h4 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* ============================================
   Service Areas
   ============================================ */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.area-item {
    background: rgba(255,255,255,0.1);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.area-item:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
    border-color: var(--accent-orange);
}

.area-item span {
    display: block;
    font-size: 1.3em;
    margin-bottom: 8px;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 4em;
    color: var(--primary-dark);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    color: var(--accent-orange);
    font-size: 1.1em;
    margin-bottom: 15px;
}

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

.testimonial-card .author {
    color: var(--primary-dark);
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: linear-gradient(135deg, var(--primary-gray) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9em;
    text-align: center;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.05em;
}

.contact-item p,
.contact-item a {
    color: rgba(255,255,255,0.8);
    font-size: 1.05em;
}

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

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255,255,255,0.95);
}

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

.form-group select {
    cursor: pointer;
}

.contact-form .btn {
    width: 100%;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2em;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05em;
}

.content-text ul {
    list-style: none;
    margin-bottom: 25px;
}

.content-text ul li {
    padding: 10px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-text ul li::before {
    content: '✓';
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.1em;
}

.content-image {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 40px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #0a0a12;
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-brand .owners {
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}

.footer-brand .license {
    font-size: 0.9em;
    color: var(--accent-orange);
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--accent-orange);
    font-size: 1.1em;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-hours dt {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.footer-hours dd {
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-orange);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9em;
}

.footer-payments {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-payments span {
    margin-right: 10px;
}

.payment-icon {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 15px 20px;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-dark);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    nav.active {
        display: flex;
    }
    nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    nav .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 20px;
        border: none;
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero .tagline {
        font-size: 1em;
    }
    .hero .phone-numbers {
        font-size: 1.4em;
    }
    .page-hero h1 {
        font-size: 2.5em;
    }
    .section-title h2 {
        font-size: 2.4em;
    }
    .content-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content-section.reverse {
        direction: ltr;
    }
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    section {
        padding: 50px 20px;
    }
    .logo-text h1 {
        font-size: 1.4em;
    }
    .header-top {
        font-size: 0.8em;
    }
    .header-top .license {
        display: block;
        margin: 5px 0 0 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4em;
    }
    .hero .phone-numbers {
        font-size: 1.2em;
    }
    .areas-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 14px 30px;
        font-size: 0.85em;
    }
}
