/* Summit Roofing - Clean Professional Stylesheet */

:root {
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --amber-500: #f59e0b;
    --vh: 1vh;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-700);
    background: var(--white);
}

h1, h2, h3, h4 {
    color: var(--slate-900);
    font-weight: 600;
    line-height: 1.25;
}

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

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.btn-primary:hover {
    background: var(--blue-700);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--slate-900);
}

.btn-white:hover {
    background: var(--slate-100);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: transparent;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav.scrolled {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.nav.scrolled .nav-logo {
    color: var(--slate-900);
}

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

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

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: color 0.15s;
}

.nav.scrolled .nav-menu a {
    color: var(--slate-600);
}

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

.nav.scrolled .nav-menu a:hover {
    color: var(--slate-900);
}

.nav-cta {
    padding: 8px 16px;
    background: var(--blue-600);
    color: var(--white) !important;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--blue-700);
}

.nav-toggle {
    display: none;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: 0.2s;
}

.nav.scrolled .nav-toggle span,
.nav.scrolled .nav-toggle::before,
.nav.scrolled .nav-toggle::after {
    background: var(--slate-900);
}

.nav-toggle::before { content: ''; top: 4px; }
.nav-toggle span { top: 11px; }
.nav-toggle::after { content: ''; top: 18px; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.6) 100%);
}

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

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 600px;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Section Intro */
.section-intro {
    text-align: center;
    margin-bottom: 48px;
}

.section-intro h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-intro p {
    font-size: 17px;
    color: var(--slate-500);
}

/* Services */
.services {
    padding: 96px 0;
    background: var(--slate-50);
}

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

.service {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-600);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    color: var(--white);
}

.service h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service p {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.6;
}

/* About */
.about {
    padding: 96px 0;
}

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

.about-image img {
    border-radius: 8px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--slate-600);
}

.about-list {
    margin-top: 24px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
    color: var(--slate-700);
}

.about-list svg {
    color: var(--blue-600);
    flex-shrink: 0;
}

/* Work / Gallery */
.work {
    padding: 96px 0;
    background: var(--slate-50);
}

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

.work-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-200);
}

.work-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-item:hover img {
    transform: scale(1.03);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.work-info h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 4px;
}

.work-info p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Reviews */
.reviews {
    padding: 96px 0;
}

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

.review {
    padding: 32px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: var(--amber-500);
}

.review > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate-600);
    margin-bottom: 20px;
}

.review-author strong {
    display: block;
    font-size: 15px;
    color: var(--slate-900);
}

.review-author span {
    font-size: 14px;
    color: var(--slate-500);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: var(--slate-900);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 12px;
}

.cta p {
    font-size: 17px;
    color: var(--slate-400);
    margin-bottom: 28px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Contact */
.contact {
    padding: 96px 0;
    background: var(--slate-50);
}

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

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--slate-600);
    margin-bottom: 32px;
}

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

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

.contact-item svg {
    color: var(--blue-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--slate-600);
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-600);
}

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

/* Footer */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
    color: var(--white);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 14px;
    transition: color 0.15s;
}

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

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--blue-600);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Mobile sticky phone bar */
.mobile-phone-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-600);
    padding: 16px 24px;
    z-index: 99;
    text-align: center;
}

.mobile-phone-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.mobile-phone-bar svg {
    width: 20px;
    height: 20px;
}

/* Menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .services-grid,
    .work-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .services,
    .about,
    .work,
    .reviews,
    .contact {
        padding: 72px 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Show mobile phone bar */
    .mobile-phone-bar {
        display: block;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.active {
        pointer-events: auto;
    }

    /* Add padding to body for sticky phone bar */
    body {
        padding-bottom: 60px;
    }

    .nav {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 40px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        color: var(--slate-700);
        font-size: 17px;
        padding: 16px 0;
        border-bottom: 1px solid var(--slate-100);
    }

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

    .nav-menu .nav-cta {
        margin-top: 16px;
        padding: 16px 24px;
        text-align: center;
        border-radius: 8px;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        text-align: center;
    }

    .stat {
        text-align: center;
    }

    .stat-num {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Section spacing mobile */
    .services,
    .about,
    .work,
    .reviews,
    .contact {
        padding: 56px 0;
    }

    .section-intro {
        margin-bottom: 32px;
    }

    .section-intro h2 {
        font-size: 24px;
    }

    .section-intro p {
        font-size: 15px;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service {
        padding: 24px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .service h3 {
        font-size: 17px;
    }

    .service p {
        font-size: 14px;
    }

    /* About mobile */
    .about-grid {
        gap: 32px;
    }

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

    .about-content h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-list li {
        font-size: 15px;
        padding: 10px 0;
    }

    /* Work/Gallery mobile */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work-item img {
        height: 200px;
    }

    .work-info {
        padding: 16px;
    }

    .work-info h4 {
        font-size: 15px;
    }

    .work-info p {
        font-size: 13px;
    }

    /* Reviews mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review {
        padding: 24px;
    }

    .review > p {
        font-size: 14px;
    }

    /* CTA mobile */
    .cta {
        padding: 56px 0;
    }

    .cta h2 {
        font-size: 24px;
    }

    .cta p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
        padding: 14px 24px;
    }

    /* Contact mobile */
    .contact-grid {
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 24px;
    }

    .contact-info > p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .contact-details {
        gap: 20px;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .form-group label {
        font-size: 14px;
    }

    /* Footer mobile */
    .footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 12px;
    }

    .footer-links ul {
        gap: 8px;
    }

    .footer-links a {
        font-size: 14px;
        padding: 4px 0;
        display: inline-block;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px 0;
        margin-bottom: 60px; /* Space for sticky phone bar */
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-num {
        font-size: 22px;
    }

    .nav-logo {
        font-size: 16px;
    }

    .nav-logo svg {
        width: 24px;
        height: 24px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .work-item:hover img {
        transform: none;
    }

    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape phone */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-menu,
    .nav-overlay,
    .work-item img,
    .btn,
    a {
        transition: none;
    }
}
