/* ============================================
   GRAHAM ELECTRIC — Custom Styles
   Charcoal + Coral | Warm & Approachable
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --charcoal-950: #0f1117;
    --charcoal-900: #1a1d27;
    --charcoal-800: #242836;
    --charcoal-700: #2e3347;
    --charcoal-600: #3d4259;
    --charcoal-500: #565b73;
    --charcoal-400: #7a7f96;
    --charcoal-300: #9a9fb5;
    --charcoal-200: #c4c7d6;
    --charcoal-100: #e2e4eb;
    --charcoal-50:  #f4f5f8;

    --coral-600: #d4543a;
    --coral-500: #e8634a;
    --coral-400: #ef7a65;
    --coral-300: #f59e90;
    --coral-200: #fad4cc;
    --coral-100: #fde8e3;
    --coral-50:  #fef5f3;

    --white: #ffffff;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 3px rgba(15, 17, 23, 0.06), 0 1px 2px rgba(15, 17, 23, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 17, 23, 0.08), 0 2px 6px rgba(15, 17, 23, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 17, 23, 0.12), 0 4px 12px rgba(15, 17, 23, 0.06);
    --shadow-xl: 0 24px 60px rgba(15, 17, 23, 0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--charcoal-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral-500);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232, 99, 74, 0.35);
}

.btn-primary:hover {
    background: var(--coral-600);
    box-shadow: 0 6px 20px rgba(232, 99, 74, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal-800);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--charcoal-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--charcoal-900);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--charcoal-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--coral-100);
    color: var(--coral-600);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--charcoal-500);
    line-height: 1.7;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--charcoal-900);
}

.logo svg {
    color: var(--coral-500);
}

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

.nav-links a:not(.btn) {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--charcoal-600);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--coral-500);
}

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

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

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--charcoal-800);
    border-radius: 3px;
    transition: all var(--transition);
}

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

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

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

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 17, 23, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal-800);
    padding: 14px 0;
    border-bottom: 1px solid var(--charcoal-100);
    transition: color var(--transition);
}

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

.mobile-cta {
    margin-top: 20px;
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--charcoal-950) 0%, var(--charcoal-800) 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero .badge {
    background: rgba(232, 99, 74, 0.2);
    color: var(--coral-300);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 24px;
    color: var(--white);
}

.hero h1 span {
    color: var(--coral-400);
}

.hero p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--charcoal-300);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.trust-indicators {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

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

.trust-item svg {
    color: var(--coral-400);
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--coral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-600);
    flex-shrink: 0;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text strong {
    font-size: 0.95rem;
    color: var(--charcoal-900);
    line-height: 1.3;
}

.card-text span {
    font-size: 0.8rem;
    color: var(--charcoal-500);
}

/* Decorative blob */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--coral-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--coral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-500);
    margin-bottom: 22px;
    transition: all var(--transition);
}

.service-card:hover .icon-box {
    background: var(--coral-500);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.94rem;
    color: var(--charcoal-500);
    line-height: 1.7;
}

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

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

.about-image {
    position: relative;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    background: var(--coral-200);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.about-content .badge {
    margin-bottom: 16px;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content > p {
    font-size: 1.02rem;
    color: var(--charcoal-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
    color: var(--charcoal-700);
    font-weight: 500;
}

.about-list li svg {
    color: var(--coral-500);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 88px 0;
    background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 99, 74, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.08rem;
    color: var(--charcoal-300);
    line-height: 1.7;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--charcoal-50);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--coral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-500);
    flex-shrink: 0;
}

.info-card strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--charcoal-400);
    margin-bottom: 6px;
    font-weight: 600;
}

.info-card p, .info-card a {
    font-size: 1rem;
    color: var(--charcoal-800);
    line-height: 1.6;
}

.info-card a:hover {
    color: var(--coral-500);
    text-decoration: underline;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 4px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--charcoal-50);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--charcoal-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    border: 1.5px solid var(--charcoal-200);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.96rem;
    color: var(--charcoal-900);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--charcoal-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral-400);
    box-shadow: 0 0 0 3px rgba(232, 99, 74, 0.12);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 20px;
    gap: 16px;
}

.form-success svg {
    color: var(--coral-500);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal-900);
}

.form-success p {
    color: var(--charcoal-500);
    font-size: 0.96rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal-950);
    padding: 60px 0 32px;
    color: var(--charcoal-300);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 14px;
    justify-content: center;
}

.footer-brand p {
    font-size: 0.94rem;
    color: var(--charcoal-400);
    max-width: 320px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--charcoal-300);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--charcoal-800);
    padding-top: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.84rem;
    color: var(--charcoal-500);
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }

    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 48px;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-content p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper img {
        height: 340px;
    }

    .floating-card {
        bottom: -12px;
        left: 12px;
        padding: 14px 18px;
    }

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

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 360px;
    }

    .about-image::before {
        display: none;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

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

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

    .hero-buttons .btn {
        justify-content: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }
}
