/* ========================================
   Tom's Affordable Roofing — Stylesheet
   Fresh, airy, forest green + off-white
======================================== */

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

:root {
    --green-900: #052e16;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #15803d;
    --green-500: #22c55e;
    --green-100: #bbf7d0;
    --green-50:  #f0fdf4;
    --green-50-alt: #f0f7f0;
    --off-white: #f8faf8;
    --cream: #f5f9f5;
    --white: #ffffff;
    --gray-50: #f9faf9;
    --gray-100: #f3f4f3;
    --gray-200: #e5e7e5;
    --gray-300: #d1d5d1;
    --gray-400: #a3a8a3;
    --gray-500: #6b726b;
    --gray-600: #4b554b;
    --gray-700: #374037;
    --gray-800: #1f291f;
    --gray-900: #111811;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(22, 101, 52, 0.06), 0 1px 2px rgba(22, 101, 52, 0.04);
    --shadow-md: 0 4px 16px rgba(22, 101, 52, 0.08), 0 2px 6px rgba(22, 101, 52, 0.05);
    --shadow-lg: 0 12px 40px rgba(22, 101, 52, 0.12), 0 4px 12px rgba(22, 101, 52, 0.06);
    --shadow-xl: 0 20px 60px rgba(22, 101, 52, 0.14), 0 8px 20px rgba(22, 101, 52, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background-color: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--green-600);
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-700);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

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

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

.btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--green-700);
    border-color: var(--green-100);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: var(--white);
    border-color: var(--green-500);
    color: var(--green-700);
}

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

.btn--dark:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-200, var(--green-100));
}

.btn--outline:hover {
    background: var(--green-50);
    border-color: var(--green-500);
    color: var(--green-700);
}

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

.btn--light:hover {
    background: var(--green-50);
    color: var(--green-700);
}

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

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

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

/* ---------- SECTION HELPERS ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.section-header {
    margin-bottom: 56px;
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green-700);
}

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

.logo__text {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

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

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

.nav__link--cta {
    background: var(--green-700);
    color: var(--white) !important;
    border-radius: var(--radius-xl);
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--green-600);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--green-50-alt) 50%, var(--green-50) 100%);
    overflow: hidden;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: none;
}

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

.hero__content {
    max-width: 560px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--green-100);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__subheadline {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.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: var(--gray-600);
}

.hero__image {
    position: relative;
}

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

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

.hero__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--green-100);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.hero__floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hero__floating-card__icon {
    width: 48px;
    height: 48px;
    background: var(--green-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__floating-card__text {
    display: flex;
    flex-direction: column;
}

.hero__floating-card__text strong {
    font-size: 0.9375rem;
    color: var(--gray-800);
    line-height: 1.3;
}

.hero__floating-card__text span {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 100px 0;
    background: var(--green-50-alt);
}

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

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

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

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

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

.service-card--featured {
    border-color: var(--green-100);
    background: linear-gradient(to bottom, var(--green-50), var(--white));
}

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

.service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green-700);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

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

.service-card:hover .service-card__icon {
    background: var(--green-100);
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 16px;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-card__list li {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding-left: 18px;
    position: relative;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
}

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

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

.about__image-stack {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image-main img {
    width: 100%;
    height: 620px;
    object-fit: cover;
}

.about__image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.about__image-secondary img {
    width: 260px;
    height: 300px;
    object-fit: cover;
}

.about__experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--green-700);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about__experience-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.about__experience-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about__content-col {
    max-width: 480px;
}

.about__body {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

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

.about__stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-700);
    line-height: 1;
}

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

/* ---------- WHY US ---------- */
.why-us {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--green-700) 0%, var(--green-800) 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--green-100);
    border-color: rgba(255, 255, 255, 0.2);
}

.why-us .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.why-card__number {
    font-family: var(--font-serif);
    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-serif);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

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

/* ---------- GALLERY ---------- */
.gallery {
    padding: 100px 0;
    background: var(--off-white);
}

.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-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s 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(5, 46, 22, 0.7) 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-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
}

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

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

.gallery__item:nth-child(2) {
    grid-column: span 5;
    grid-row: 1;
}

.gallery__item:nth-child(3) {
    grid-column: span 5;
    grid-row: 2;
}

.gallery__item:nth-child(4) {
    grid-column: span 5;
    grid-row: 1;
}

.gallery__item:nth-child(5) {
    grid-column: span 7;
    grid-row: 2;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 60
