/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3a2c50;
    --accent: #9d82ca;
    --dark: #241a33;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #f8f9fa;
    --gray: #e9ecef;
    --border-radius: 6px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--light);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    color: var(--light);
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
    height: 90px; /* Fixed header height */
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 60px; /* Shift logo container down when not scrolled */
    height: 70px; /* Fixed container height */
}

.logo img {
    height: 130px; /* Fixed height for SVG */
    width: auto;
    transition: var(--transition);
}

.logo-scrolled, .logo-default {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%); /* Center vertically */
    transition: var(--transition);
}

.logo-default {
    opacity: 1;
}

.logo-scrolled {
    opacity: 0;
}

.logo-text {
    position: absolute;
    left: 150px; /* Position text to the right of the logo */
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
}

header.scrolled .logo {
    margin-top: 0; /* No shift when scrolled */
}

header.scrolled .logo-default {
    opacity: 0;
}

header.scrolled .logo-scrolled {
    opacity: 1;
    height: 70px; /* Smaller height when scrolled */
}

header.scrolled .logo-text {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    color: var(--text-light);
}

header.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

header.scrolled .menu-toggle {
    color: var(--text);
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('./images/main.png');
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    margin-top: 0;
}

.hero-content {
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    padding: 6rem 1.5rem;
    padding-top: 10rem;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 1s ease;
}

.hero-content.fade-out {
    opacity: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}
.hero h2 {
    color: var(--text-light);
    font-size: 1.5rem;
}

.flag-icon {
    height: 1.2rem;
    width: auto;
    vertical-align: middle;
    margin-left: 0.5rem;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Permanent Lighting Section */
.lighting-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lighting-heading h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.lighting-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Lighting Gallery Styles */
.lighting-gallery {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.lighting-item {
    position: relative;
    width: calc(20% - 1.2rem);
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 0 0 calc(20% - 1.2rem);
    max-width: calc(20% - 1.2rem);
    aspect-ratio: 1/1;
}

.lighting-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 1/1;
}

.lighting-item:hover img {
    transform: scale(1.1);
}

.lighting-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.lighting-item:hover .lighting-caption {
    transform: translateY(0);
}

/* Roofing Section Specific Styles */
#roofing .lighting-item:hover .lighting-caption {
    transform: translateY(100%); /* Keep caption hidden */
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* Contact Section */

/* Footer Styles */
footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 4rem 0 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
/* Desktop styles are the default (above 1024px) */

/* Tablet Styles (768px-1024px) */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
    
    header {
        height: 80px;
    }
    
    .logo {
        height: 65px;
        margin-top: 50px;
    }
    
    .logo img {
        height: 110px; /* Adjusted height for tablet */
    }
    
    header.scrolled .logo-scrolled {
        height: 65px; /* Adjusted scrolled height for tablet */
    }
    
    .logo-text {
        left: 140px;
        font-size: 1rem;
    }
    
    .hero {
        background-size: auto 100%;
        min-height: 400px;
    }
    
    .lighting-item {
        width: calc(33.333% - 1rem);
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .quote-form-container {
        max-width: 600px;
    }
    
    .flag-icon {
        height: 1.1rem;
    }
    
    .tech-specs {
        gap: 0.8rem;
    }
    
    .spec-image {
        max-width: 100px;
        height: 100px;
    }
    
    .spec-list li {
        font-size: 0.85rem;
    }
}

/* Mobile Styles (below 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
        padding: 2rem 0;
    }
    
    header {
        height: 70px;
    }
    
    .logo {
        height: 60px;
        margin-top: 40px;
    }
    
    .logo img {
        height: 90px; /* Adjusted height for mobile */
    }
    
    header.scrolled .logo-scrolled {
        height: 60px; /* Adjusted scrolled height for mobile */
    }
    
    .logo-text {
        left: 130px;
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 350px;
    }

    
    .nav-links {
        position: fixed;
        top: 70px; /* Match header height */
        left: 0;
        right: 0;
        background-color: var(--light);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        opacity: 0;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        color: var(--text);
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .lighting-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        overflow-x: visible;
        padding: 0.5rem;
    }
    
    .lighting-item {
        width: 100%;
        flex: none;
        max-width: 100%;
        height: 180px;
        scroll-snap-align: none;
        margin-bottom: 0.5rem;
    }
    
    .lighting-item:first-child {
        grid-column: 1 / -1;
        height: 220px;
    }
    
    .lighting-caption {
        transform: translateY(0);
        opacity: 0.9;
        padding: 0.5rem;
    }
    
    .lighting-caption h3 {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Roofing section mobile-specific */
    #roofing .lighting-gallery {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    #roofing .lighting-item {
        width: 100%;
        height: 200px;
        margin-bottom: 0;
    }
    
    #roofing .lighting-item:first-child {
        height: 200px;
    }
    
    .quote-section {
        padding: 1rem 0;
    }
    
    .quote-form-columns {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .quote-form textarea {
        min-height: 60px;
    }
    
    .quote-form input {
        padding: 0.35rem 0.6rem;
    }
    
    .quote-form .btn {
        padding: 0.45rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .flag-icon {
        height: 1rem;
    }
    
    .service-checkboxes {
        gap: 0;
        margin-top: 0.1rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .checkbox-label:first-child {
        margin-right: 0.4rem;
    }
    
    .quote-form .btn {
        padding: 0.45rem 1rem;
    }
    
    .tech-specs {
        flex-direction: column;
    }
    
    .tech-spec-column {
        margin-bottom: 1rem;
    }
    
    .tech-spec-column:last-child {
        margin-bottom: 0;
    }
    
    .tech-specs-container {
        padding: 1rem;
    }
    
    .tech-specs-container h4 {
        font-size: 1.2rem;
    }
    
    .tech-spec-column h5 {
        font-size: 1rem;
    }
    
    .spec-list li {
        font-size: 0.85rem;
    }
    
    .tech-highlight {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .spec-image {
        max-width: 120px;
        height: 120px;
    }
    
    .app-images {
        height: 160px;
    }
    
    .app-image {
        width: 65px;
        margin-right: 20px;
    }
    
    .app-phone-image {
        width: 70px;
        right: 38%;
    }
    
    /* Mobile table styles */
    .tech-spec-table th,
    .tech-spec-table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .tech-spec-table th:first-child {
        width: 25%;
    }
    
    .tech-spec-table tbody tr:nth-child(odd) {
        background-color: rgba(245, 245, 250, 0.5);
    }
    
    .tech-spec-table tbody tr:nth-child(even) {
        background-color: transparent;
    }
    
    .tech-spec-table tbody tr:first-child {
        background-color: rgba(245, 245, 250, 0.8);
    }
    
    .tech-spec-table tbody tr:hover {
        background-color: rgba(157, 130, 202, 0.03);
    }
    
    .spec-image-small {
        width: 20px;
        height: 20px;
        margin-right: 2px;
    }
    
    .spec-image-medium {
        width: 60px;
        height: 60px;
        margin-bottom: 0.15rem;
    }
    
    .spec-image-container {
        padding: 0.1rem 0;
    }
    
    .tech-note {
        font-size: 0.7rem;
        padding: 0.4rem !important;
    }
    
    .tech-specs {
        flex-direction: column;
    }
    
    .tech-spec-column {
        margin-bottom: 1rem;
    }
    
    .tech-spec-table th.spec-title {
        font-size: 0.95em;
        padding-bottom: 0.5rem;
    }
}

/* Services Section */
.services-section {
    background-color: var(--light);
    padding: 3rem 0;
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category .lighting-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-category .lighting-heading h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Tech specs styles */
.tech-specs-container {
    background-color: #f5f5f5;
    border-radius: 5px;
    margin: 2rem 0;
}

.tech-specs-container h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--dark);
}

.tech-specs {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tech-spec-column {
    flex: 1;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tech-spec-table-column {
    flex: 2;
}

.tech-spec-column h5 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.spec-image {
    display: block;
    max-width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: 5px;
}

.tech-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.tech-spec-table th,
.tech-spec-table td {
    padding: 0.4rem;
    border: none;
    text-align: center;
    font-size: 0.9em;
}

.tech-spec-table th {
    color: var(--primary);
    font-weight: 600;
    background-color: transparent;
}

.tech-spec-table th:first-child {
    text-align: left;
    width: 30%;
}

.tech-spec-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.tech-spec-table tbody tr:nth-child(odd) {
    background-color: rgba(245, 245, 250, 0.5);
}

.tech-spec-table tbody tr:nth-child(even) {
    background-color: transparent;
}

.tech-spec-table tbody tr:first-child {
    background-color: rgba(245, 245, 250, 0.8);
}

.tech-spec-table tbody tr:hover {
    background-color: rgba(157, 130, 202, 0.05);
}

.tech-note {
    font-style: italic;
    text-align: center !important;
    font-size: 0.85rem;
    padding: 0.6rem !important;
    background-color: transparent;
}

/* App Images Styles */
.app-images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    height: 180px;
}

.app-image {
    width: 80px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    right: 10%;
    z-index: 2;
    transition: transform 0.3s ease;
    margin-right: 30px;
}

.app-phone-image {
    width: 80px;
    height: auto;
    object-fit: contain;
    position: absolute;
    right: 35%;
    bottom: 5px;
    transform: rotate(5deg);
    z-index: 1;
    transition: transform 0.3s ease;
}

.tech-spec-column:hover .app-image {
    transform: translateY(-5px);
}

.tech-spec-column:hover .app-phone-image {
    transform: rotate(5deg) translateY(-3px);
}

.spec-list {
    list-style: none;
    padding-left: 0.8rem;
}

.spec-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-list li:before {
    content: "•";
    position: absolute;
    left: -0.5rem;
    color: var(--accent);
}

.tech-highlight {
    background-color: #f0f8ff;
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--dark);
    text-align: center;
}

.tech-spec-column .tech-highlight {
    margin-top: 1rem;
    font-size: 0.85rem;
    background-color: rgba(157, 130, 202, 0.1);
}

.spec-better {
    color: #22c55e;
    font-weight: bold;
    margin-left: 0.3rem;
}

.spec-worse {
    color: #ef4444;
    font-weight: bold;
    margin-left: 0.3rem;
}

/* Quote Section */
.quote-section {
    background-color: var(--gray);
    padding: 1.5rem 0;
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form-columns {
    display: flex;
    gap: 1.5rem;
}

.quote-form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quote-form input, 
.quote-form textarea {
    padding: 0.4rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.quote-form textarea {
    resize: none;
    height: 100%;
    min-height: 70px; /* Reduced height by ~half */
}

/* Service Checkboxes */
.service-checkboxes {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    margin-top: 0.2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    padding: 0.3rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    justify-content: center;
}

.checkbox-label:first-child {
    margin-right: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.quote-form .btn {
    align-self: center;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1.2rem; /* Smaller button */
}

.tech-spec-table tbody tr:hover {
    background-color: transparent;
}

.spec-image-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
}

.spec-image-medium {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.2rem;
}

.spec-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0;
}

.tech-spec-table th.spec-title {
    font-size: 1.15em;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

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

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

.quote-form input.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.quote-form input.invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
