body {
    font-family: 'Garamond', serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #474747;
    color: #fff;
    padding: 1rem;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 500;
    min-height: 80px;
    margin-left: 220px;
}

.header-text {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

@font-face {
    font-family: 'English Towne';
    src: url('fonts/EnglishTowne.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    font-family: 'English Towne', 'Dancing Script', cursive;
    color: white;
    -webkit-text-stroke: 1px black;
    text-align: center;
}

header p {
    font-size: 1rem;
    margin: 0.2rem 0 0;
}

.sidebar {
    width: 200px;
    background: darkred;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.logo[src=""]::after, .logo:not([src])::after {
    content: "Logo not found";
    color: #fff;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    display: block;
}

.sidebar nav a:hover {
    text-decoration: underline;
}

main {
    margin-left: 220px;
    padding: 1rem;
    flex: 1;
}

section {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #2b2b2b;
    padding-bottom: 0.5rem;
}

.service, .project {
    margin: 1rem 0;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.resource {
    margin: 1rem 0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.resource:hover {
    transform: translateY(-2px);
}

.resource-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.resource h3 {
    margin-top: 0;
    color: #333;
}

.resource p {
    line-height: 1.5;
    color: #666;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5rem 0;
}

#service-type {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Garamond', serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    margin-bottom: 1rem;
    cursor: pointer;
}

#service-description {
    margin: 1rem 0;
    font-size: 1rem;
}

#service-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#service-form label {
    font-weight: bold;
    margin: 0.5rem 0 0.2rem;
}

#service-form input[type="text"],
#service-form input[type="email"],
#service-form input[type="tel"],
#service-form select,
#service-form textarea {
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Garamond', serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

#service-form textarea {
    height: 100px;
    resize: vertical;
}

#service-form .contact-preference {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    font-size: 1rem;
}

#service-form .contact-preference label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

#service-form .contact-preference input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #2b2b2b;
}

#service-form button {
    background: #2b2b2b;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Garamond', serif;
}

#service-form button:hover {
    background: #4a4a4a;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-list a {
    color: #2b2b2b;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}

.resource-list a:hover {
    text-decoration: underline;
}

.slideshow {
    position: relative;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.slide.active {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #2b2b2b;
}

.ptg-logo {
    width: 120px;
    height: auto;
    margin-top: 1rem;
}

.about-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.headshot {
    width: 120px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease, transform 0.25s ease;  /* smooth everything */
}

.headshot:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);  /* optional lift on hover */
}

footer {
    text-align: center;
    padding: 1rem;
    background: #2b2b2b;
    color: #fff;
    margin-left: 220px;
}

/* ────────────────────────────────────────────────
   MOBILE RESPONSIVE STYLES
───────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Remove desktop sidebar offset — most important fix */
    header,
    main,
    footer {
        margin-left: 0 !important;
    }

    /* Turn sidebar into a top navigation bar */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0.8rem 0.5rem;
        background: darkred;
        box-shadow: none;
    }

    .logo {
        width: 160px;
        margin: 0.4rem auto 0.8rem;
    }

    .sidebar nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 0.4rem 0;
    }

    .sidebar nav a {
        font-size: 1.05rem;
        padding: 0.5rem 0.9rem;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .sidebar nav a:hover,
    .sidebar nav a:active {
        background: rgba(255,255,255,0.15);
        text-decoration: none;
    }

    /* Highlight for "For Sale" link */
    .sidebar nav a[href="forsale.html"] {
        background: rgba(255,255,255,0.2);
    }

    /* Header text adjustments */
    h1 {
        font-size: 2.1rem;
        line-height: 1.1;
        margin: 0.3rem 0;
    }

    header p {
        font-size: 0.95rem;
        margin-top: 0.2rem;
    }

    /* Content breathing room */
    main {
        padding: 1rem 0.8rem;
    }

    section {
        padding: 0.8rem;
    }

    /* Full-width grids/lists on mobile */
    .resource-list,
    .gear-list,
    .project-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gear-image,
    .resource-thumb {
        height: 180px;
    }

    /* Slideshow better mobile scaling */
    .slideshow {
        max-width: 100%;
        height: 220px;
        aspect-ratio: 4 / 3;
    }

    .slide {
        object-fit: contain;
    }

    .ptg-logo {
        width: 100px;
    }

    .contact-preference,
    #service-form .contact-preference {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-logos {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .headshot {
        width: 100px;
        margin-top: 0.5rem;
    }
}

/* Feedback Form Enhancements */
#feedback-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#feedback-form label {
    font-weight: bold;
    margin: 0.5rem 0 0.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

#feedback-form input[type="text"],
#feedback-form input[type="email"],
#feedback-form textarea,
#feedback-form select {
    padding: 0.5rem;
    font-size: 1rem;
    font-family: 'Garamond', serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

#feedback-form textarea {
    height: 100px;
    resize: vertical;
}

#feedback-form button {
    background: #2b2b2b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Garamond', serif;
    width: 100%;
    margin-top: 0.5rem;
}

#feedback-form button:hover {
    background: #4a4a4a;
}

/* Testimonial Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #2b2b2b;
    margin-top: 0.1rem;
}

/* Success/Error Messages */
.success, .error {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    font-weight: bold;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gear-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gear-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gear-item:hover {
    transform: translateY(-5px);
}

.gear-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.gear-details {
    padding: 1.2rem;
}

.gear-details h3 {
    margin: 0 0 0.5rem;
    color: #2b2b2b;
}

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: darkred;
    margin: 0.3rem 0 1rem;
}

.gear-details ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
    color: #555;
}

.gear-details p {
    line-height: 1.5;
    color: #444;
}

/* Modal for image zoom */
.modal {
    display: none;          /* Hidden by default */
    position: fixed;
    z-index: 2000;          /* High z-index so it sits above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding-top: 40px;      /* Space for close button */
}

/* Modal Content (the image) */
.modal .modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    object-fit: contain;    /* Keeps aspect ratio, no distortion */
}

/* Caption (optional – shows alt text or title) */
.modal-caption {
    margin: 15px auto;
    display: block;
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
}

/* Zoom-in animation */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.modal .modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Make gear images look clickable */
.gear-image {
    cursor: zoom-in;        /* Visual hint */
    transition: opacity 0.3s;
}

.gear-image:hover {
    opacity: 0.85;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .modal-close {
        right: 20px;
        top: 10px;
        font-size: 35px;
    }
    .modal .modal-content {
        width: 95%;
    }
}
