/* ============================================
   Guidry Professional Roofing LLC
   Custom Styles
============================================ */

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

:root {
    --green-900: #0D3B10;
    --green-800: #1B5E20;
    --green-700: #2E7D32;
    --green-600: #388E3C;
    --green-500: #4CAF50;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;
    --cream: #FAF9F6;
    --cream-dark: #F0EFEB;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-900: #212121;
    --gray-700: #616161;
    --gray-500: #9E9E9E;
    --gray-300: #E0E0E0;
    --gray-100: #F5F5F5;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-300);
    transition: box-shadow var(--transition);
}

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

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo__text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-800);
    letter-spacing: -0.02em;
}

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

/* --- Navigation --- */
.nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.nav__link--cta {
    background: var(--green-800);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.nav__link--cta:hover {
    background: var(--green-700);
    color: var(--white) !important;
}

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

.mobile-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    padding: 32px 24px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.mobile-nav__link {
    display: block;
    padding: 14px 16px;
    font-size: 1.063rem;
    font-weight: 500;
    color: var(--gray-900);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-nav__link:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.mobile-nav__link--cta {
    margin-top: 16px;
    background: var(--green-800);
    color: var(--white) !important;
    text-align: center;
    border-radius: var(--radius-sm);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--green-900);
    overflow: hidden;
    padding-top: 80px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero__content {
    color: var(--white);
}

.hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-100);
    margin-bottom: 20px;
}

.hero__headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--green-100);
}

.hero__subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.hero__trust-item svg {
    color: var(--green-100);
    flex-shrink: 0;
}

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

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.938rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-800);
    color: var(--white);
    border-color: var(--green-800);
}

.btn--primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

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

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

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

.section-header__eyebrow {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-700);
    margin-bottom: 12px;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

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

.section-header__desc--light {
    color: rgba(255,255,255,0.75);
}

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

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

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

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.938rem;
    color: var(--gray-700);
    line-height: 1.7;
}

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

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

.about__image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-800);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
}

.about__badge-number {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.about__badge-text {
    font-size: 0.813rem;
    font-weight: 500;
    opacity: 0.9;
}

.about__eyebrow {
    margin-bottom: 12px;
}

.about__title {
    margin-bottom: 24px;
}

.about__text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-300);
}

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

.about__stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-800);
}

.about__stat-label {
    font-size: 0.813rem;
    color: var(--gray-700);
    font-weight: 500;
}

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

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

.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.why-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.why-card__desc {
    font-size: 0.938rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--cream);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,59,16,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.gallery__item--large {
    grid-column: span 7;
}

.gallery__item:not(.gallery__item--large) {
    grid-column: span 5;
}

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

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

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-banner__text {
    font-size: 1.063rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 520px;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

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

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

.contact__title {
    margin-bottom: 16px;
}

.contact__text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.contact__detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact__detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact__detail-label {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--gray-900);
    line-height: 1.5;
}

.contact__detail-value a:hover {
    color: var(--green-700);
}

/* --- Form --- */
.contact__form-wrap {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-300);
}

.contact__form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.938rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-input::placeholder {
    color: var(--gray-500);
}

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

.form-privacy {
    font-size: 0.813rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 16px;
}

/* Form Success */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.form-success__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: 50%;
    margin-bottom: 20px;
}

.form-success__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.form-success__text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    max-width: 320px;
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--white);
}

.footer__inner {
    padding: 64px 0 48px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
}

.footer__tagline {
    font-size: 0.938rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

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

.footer__link-title {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer__link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link-list a {
    font-size: 0.938rem;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.footer__link-list a:hover {
    color: var(--green-100);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.813rem;
    color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__inner {
        gap: 40px;
    }
    
    .services__grid,
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__item--large {
        grid-column: span 12;
    }
    
    .gallery__item:not(.gallery__item--large) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
    
    .hero__image {
        order: -1;
        max-height: 360px;
    }
    
    .hero__image img {
        height: 100%;
    }
    
    .hero__trust {
        gap: 16px;
    }
    
    .services__grid,
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__item--large,
    .gallery__item:not(.gallery__item--large) {
        grid-column: span 1;
    }
    
    .gallery__item {
        height: 260px;
    }
    
    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-banner__actions {
        justify-content: center;
    }
    
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact__form-wrap {
        padding: 28px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services,
    .about,
    .why-us,
    .gallery,
    .contact {
        padding: 64px 0;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery__item:hover img {
        transform: none;
    }
}
