/* TS Roofing - Clean CSS
   Color Scheme:
   - Primary Dark: #1b1b1b
   - Footer Teal: #4A7C7C
   - Button Gray: #5a5a5a
   - Text: #ffffff
*/

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1b1b1b;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lobster', cursive;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1em;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    transition: background 0.3s ease;
}

#header.scrolled {
    background: rgba(27, 27, 27, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#header.alt {
    background: rgba(27, 27, 27, 0.9);
}

#header .logo img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Navigation */
#menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #1b1b1b;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 4rem 2rem;
}

#menu.open {
    right: 0;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-links a {
    font-size: 1.25rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    color: #4A7C7C;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    opacity: 1;
}

.button.solid {
    background: #5a5a5a;
    border-color: #5a5a5a;
}

.button.solid:hover {
    background: #676767;
    border-color: #676767;
}

/* Hero Banner */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Content Sections */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 2rem;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: rgba(27, 27, 27, 0.8);
    padding: 3rem;
    border-radius: 4px;
}

.section-content h2 {
    margin-bottom: 1rem;
}

.section-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-content .button {
    margin-top: 1.5rem;
}

/* Page Header (Subpages) */
.page-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 2rem 4rem;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    background: rgba(27, 27, 27, 0.85);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
}

.page-content h1 {
    margin-bottom: 1.5rem;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Navigation Arrows */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    opacity: 1;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Profiles Section */
.profiles-list {
    text-align: left;
}

.profile-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-item h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #4A7C7C;
}

.profile-item h3 a {
    color: #4A7C7C;
    text-decoration: none;
}

.profile-item h3 a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Footer */
#footer {
    background-color: #4A7C7C;
    padding: 4rem 2rem;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#footer h2 {
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group.half {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.form-actions .button {
    background: #5a5a5a;
    border-color: #5a5a5a;
    padding: 1rem 3rem;
}

.form-actions .button:hover {
    background: #676767;
    border-color: #676767;
}

/* Social Icons */
.social-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-icons .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-icons .icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    opacity: 1;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.certifications img {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.certifications img:hover {
    opacity: 1;
}

/* Copyright */
.copyright {
    background: #1b1b1b;
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Thank You Page */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.thank-you-content {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 8px;
}

.thank-you-content h1 {
    color: #4A7C7C;
    margin-bottom: 1rem;
}

.thank-you-content .button {
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 980px) {
    .hero,
    .section {
        background-attachment: scroll;
    }

    .page-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 8rem 2rem 4rem;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        min-height: 80vh;
    }

    .section {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .section-content,
    .page-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .form-group.half {
        flex: 100%;
    }

    #footer {
        padding: 3rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    #header {
        padding: 1rem;
    }

    #header .logo img {
        height: 40px;
    }

    .section-content,
    .page-content {
        padding: 1.5rem;
    }

    .thank-you-content {
        padding: 2rem;
    }
}
