/* ============================================================
   Frank Leonard Painting LLC — Main Stylesheet
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

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

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

/* ── Navigation ───────────────────────────────────────────── */
/* Main site nav (direct child of body) — fixed top bar */
body > nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.92);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body > nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

body > nav ul li {
    display: inline-block;
}

body > nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 16px 14px;
    transition: color 0.25s ease, background-color 0.25s ease;
    text-transform: uppercase;
}

body > nav ul li a:hover {
    color: #f0c040;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active nav link */
body > nav ul li a.active {
    color: #f0c040;
}

/* CTA nav button */
body > nav ul li.cta-bar a {
    background-color: #c0392b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

body > nav ul li.cta-bar a:hover {
    background-color: #a93226;
    transform: translateY(-1px);
}

/* ── Hero Header ──────────────────────────────────────────── */
header {
    padding-top: 60px; /* account for fixed nav */
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

header img {
    position: relative;
    z-index: 2;
    max-width: 340px;
    width: 60%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Page-specific header backgrounds */
.header-background-index    { background-image: url('header-background-home.png'); }
.header-background-about    { background-image: url('header-background-about.png'); }
.header-background-services { background-image: url('header-background-services.png'); }
.header-background-project-gallery { background-image: url('header-background-project-gallery.png'); }
.header-background-contact  { background-image: url('header-background-contact.png'); }
.header-background-schedule-estimate { background-image: url('header-background-schedule-estimate.png'); }
.header-background-pricing  { background-image: url('header-background-pricing.png'); }

/* ── Main Content Wrapper ─────────────────────────────────── */
.main-centered {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

/* ── Homepage Three-Column Grid ───────────────────────────── */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 380px 280px;
    gap: 40px;
    align-items: start;
    margin-top: 16px;
}

/* Left column */
.left-column {
    text-align: left;
}

.left-column h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 18px;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.left-column p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 16px;
}

.services-list {
    margin: 20px 0;
    padding: 18px 20px;
    background: #f7f7f7;
    border-left: 4px solid #c0392b;
    border-radius: 0 6px 6px 0;
}

.services-list p {
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.services-list strong {
    display: block;
    margin: 6px 0;
    color: #444;
    font-size: 0.88rem;
    font-weight: 600;
}

.services-list strong::before {
    content: '✓ ';
    color: #c0392b;
    font-weight: 700;
}

/* Center column */
.center-column {
    text-align: center;
}

.center-column img.square-image,
.center-column img.round-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

/* ── Homepage Auto-Rotating Slideshow ─────────────────────── */
.home-slideshow {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    background: #111;
    aspect-ratio: 4 / 3;
}

.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    pointer-events: none;
}

.home-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* Prev / Next arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.slide-arrow:hover {
    background: rgba(192, 57, 43, 0.82);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Dot navigation */
.slide-dots {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 10;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* "View All" link below slideshow */
.slideshow-gallery-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #c0392b;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.slideshow-gallery-link:hover {
    color: #a93226;
    text-decoration: underline;
}

/* Right column */
.right-column {
    text-align: center;
    background: #f8f8f8;
    padding: 28px 22px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.right-column img[src="logo-black.png"] {
    width: 160px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.social-icons img {
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons img:hover {
    opacity: 0.75;
    transform: scale(1.18);
}

.epa-logo {
    width: 120px;
}

.right-column h2 {
    font-size: 1.3rem;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 700;
}

.right-column p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.right-column .cta-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.right-column .cta-bar a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background-color: #c0392b;
    border-radius: 6px;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.right-column .cta-bar a:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(192, 57, 43, 0.4);
}

/* ── Interior Page Content ────────────────────────────────── */
.page-content {
    max-width: 860px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #c0392b;
}

.page-content p {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ── Services Page ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 24px 20px;
    border-left: 4px solid #c0392b;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ── Pricing Page ─────────────────────────────────────────── */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.95rem;
}

.pricing-table th {
    background-color: #1a1a1a;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.pricing-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #e8e8e8;
    color: #444;
}

.pricing-table tr:nth-child(even) td {
    background-color: #f7f7f7;
}

.pricing-table tr:hover td {
    background-color: #fef5f5;
}

.pricing-note {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fff8e1;
    border-left: 4px solid #f0c040;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: #555;
}

.pricing-section {
    margin-top: 40px;
    margin-bottom: 8px;
}

.pricing-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c0392b;
    border-left: 4px solid #c0392b;
    padding-left: 12px;
    margin-bottom: 0;
    margin-top: 0;
}

.pricing-table-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* ── Project Gallery Index ────────────────────────────────── */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-category-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-category-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.gallery-category-card .card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #ddd;
}

.gallery-category-card .card-thumb-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-category-card .card-thumb-placeholder span {
    font-size: 2.5rem;
}

.gallery-category-card .card-label {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    border-top: 3px solid #c0392b;
}

/* ── Photo Gallery Grid ───────────────────────────────────── */
.gallery-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c0392b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gallery-back-link:hover {
    color: #a93226;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background: #eee;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.photo-grid-item:hover img {
    transform: scale(1.06);
}

.photo-grid-item .photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-grid-item:hover .photo-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.photo-grid-item .photo-overlay::after {
    content: '⤢';
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-grid-item:hover .photo-overlay::after {
    opacity: 1;
}

/* Empty gallery notice */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #f0c040;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    z-index: 10000;
    transition: background 0.2s ease;
    line-height: 1;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(192, 57, 43, 0.7);
}

/* ── Contact & Forms ──────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

.contact-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}

.contact-detail a {
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-social img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

/* Form styling */
.styled-form {
    background: #f8f8f8;
    padding: 28px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.styled-form h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

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

.form-group .required {
    color: #c0392b;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.92rem;
}

/* Estimate form sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c0392b;
}

/* Submit buttons */
.btn-submit {
    display: inline-block;
    padding: 13px 32px;
    background-color: #c0392b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(192, 57, 43, 0.4);
}

/* ── About Page ───────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

.about-sidebar {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.about-sidebar img.epa-logo-large {
    width: 160px;
}

.about-cta-box {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    width: 100%;
}

.about-cta-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.about-cta-box p {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 16px;
}

.btn-cta {
    display: block;
    padding: 12px 20px;
    background-color: #c0392b;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-color: #a93226;
    transform: translateY(-2px);
}

.highlight-box {
    background: #fff8e1;
    border-left: 4px solid #f0c040;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-social img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0.7);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.footer-social img:hover {
    filter: brightness(0) invert(1);
    transform: scale(1.15);
}

footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 28px 20px 20px;
    margin-top: 60px;
}

footer img {
    max-width: 140px;
    margin: 0 auto 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f0c040;
}

.footer-copy {
    font-size: 0.78rem;
    color: #666;
    margin: 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.section-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ── Responsive Design ────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr 320px;
    }

    .right-column {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 20px;
    }

    .right-column .cta-bar {
        width: auto;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        justify-content: flex-start;
        padding: 0 10px;
    }

    nav ul li a {
        padding: 12px 10px;
        font-size: 0.78rem;
    }

    nav ul li.cta-bar a {
        margin-left: 4px;
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    header {
        min-height: 280px;
        padding-top: 60px;
    }

    header img {
        max-width: 220px;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .right-column {
        grid-column: 1;
    }

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

    .gallery-categories {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .main-centered {
        padding: 32px 16px 48px;
    }

    .page-content h1 {
        font-size: 1.6rem;
    }

    .left-column h2 {
        font-size: 1.4rem;
    }

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

    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
}

/* ── Mobile Hamburger Menu ────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 14px 16px;
    }

    body > nav {
        display: block;
    }

    body > nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        background-color: rgba(20, 20, 20, 0.97);
    }

    body > nav ul.open {
        display: flex;
    }

    body > nav ul li {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    body > nav ul li a {
        padding: 14px 20px;
        font-size: 0.9rem;
        width: 100%;
        display: block;
    }

    body > nav ul li.cta-bar a {
        margin: 10px 16px;
        width: calc(100% - 32px);
        text-align: center;
        border-radius: 4px;
    }
}

/* ── Gallery count & back link ────────────────────────────── */
.gallery-count {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 6px;
}

a.back-link {
    display: inline-block;
    font-size: 0.88rem;
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

a.back-link:hover {
    color: #a93226;
    text-decoration: underline;
}

/* ── Gallery Index Grid (new card layout) ─────────────────── */
.gallery-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    border: 1px solid #eee;
}

.gallery-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.gallery-card-empty {
    opacity: 0.65;
}

.gallery-card-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
    color: #aaa;
    gap: 8px;
}

.card-placeholder span {
    font-size: 2.5rem;
}

.card-placeholder p {
    font-size: 0.8rem;
    margin: 0;
    color: #aaa;
}

.card-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.card-count-empty {
    background: rgba(0,0,0,0.4);
    color: #ccc;
}

.gallery-card-body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-card-body h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gallery-card-subtitle {
    font-size: 0.78rem;
    color: #c0392b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.6rem 0;
}

.gallery-card-desc {
    font-size: 0.87rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 0.9rem 0;
    flex: 1;
}

.gallery-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

.gallery-card:hover .gallery-card-link {
    text-decoration: underline;
}

/* Gallery page subtitle (below h1) */
.gallery-subtitle {
    font-size: 0.92rem;
    color: #c0392b;
    margin: -0.4rem 0 1rem 0;
    font-style: italic;
}

/* Gallery index intro paragraph */
.gallery-intro {
    font-size: 1rem;
    color: #444;
    max-width: 820px;
    margin: 0 0 0.5rem 0;
    line-height: 1.7;
}

/* ── Content Wrapper (gallery pages) ─────────────────────── */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.content-wrapper h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.section-divider {
    border: none;
    border-top: 3px solid #c0392b;
    margin: 0 0 1.2rem 0;
}

.back-link {
    display: inline-block;
    font-size: 0.88rem;
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Page header for gallery sub-pages (logo centered, no social icons) */
.page-header {
    padding-top: 60px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
}

.page-header .header-logo {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header .header-logo img {
    max-width: 300px;
    width: 55%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.gallery-header {
    background-image: url('header-background-project-gallery.png');
}

/* Footer social icons (text-based) */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 10px 0;
    font-size: 1.3rem;
}

.footer-social a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #fff;
}

/* lb-caption style */
#lb-caption {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ccc;
    font-size: 0.85rem;
    margin: 0;
    pointer-events: none;
}
