/* ===================================
   YORKSHIRE ROOF SOLUTIONS
   Professional Roofing Website Styles
   =================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --navy: #0A1E3E;
    --navy-light: #1a3254;
    --navy-dark: #050f1f;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 30, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 40px;
}

.btn-phone {
    background: var(--white);
    color: var(--navy);
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-phone:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('roofing-photos/IMG-20250407-WA0044.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 30, 62, 0.75), rgba(10, 30, 62, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-subtitle-small {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.trust-divider {
    color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 30, 62, 0.95), transparent);
    padding: 32px 24px 24px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 30, 62, 0.12);
    border-color: var(--navy);
}

.service-icon {
    color: var(--navy);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */

.why-choose {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.feature-card {
    position: relative;
}

.feature-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: var(--section-padding) 0;
    background: var(--navy);
    color: var(--white);
}

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

.contact-info h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-lead {
    font-size: 18px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.contact-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 48px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

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

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

.contact-method-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.contact-method-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
}

.contact-method-value:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 48px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

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

.btn-submit {
    background: var(--white);
    color: var(--navy);
    padding: 16px 36px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--navy-dark);
    padding: 48px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

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

.footer-text p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

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

    .contact-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header {
        padding: 16px 0;
    }

    .logo img {
        height: 40px;
    }

    .btn-phone {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-image {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-subtitle-small {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .trust-divider {
        display: none;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

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

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

    .service-card {
        padding: 32px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .contact-method {
        gap: 16px;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
    }

    .contact-method-value {
        font-size: 16px;
        word-break: break-all;
    }
}

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

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .feature-number {
        font-size: 56px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.hidden {
    display: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--navy);
    color: var(--white);
}

::-moz-selection {
    background: var(--navy);
    color: var(--white);
}
