/* ==========================================================================
   Lema Alliance Pty Ltd - Main Stylesheet
   ========================================================================== */

:root {
    --primary: #f26d21; /* Lema Alliance Orange */
    --primary-hover: #d95e1a;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-light: #1f1f1f;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #333333;
    --nav-height: 104px;
    --nav-height-mobile: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Stops anchor targets landing underneath the fixed header */
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-light);
    line-height: 1;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-cta {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 109, 33, 0.3);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 1)), 
                url('assets/bg-hero.png') center/cover no-repeat;
    /* Top padding clears the fixed nav so hero text is never hidden behind it */
    padding: calc(var(--nav-height) + 3rem) 5% 4rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary, .btn-outline {
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--bg-dark);
}

/* --- Features Strip --- */
.features-strip {
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-card);
    padding: 3rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* --- About Section --- */
.about {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 6rem 5%;
    text-align: left; /* Better readability for longer text */
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    font-weight: 400;
    text-align: center;
    letter-spacing: 1px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-content h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    margin-bottom: 2rem;
}

.about-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.about-list li i {
    color: var(--primary);
    font-size: 1rem;
}

.about-slogan {
    margin-top: 3rem;
    font-size: 1.2rem !important;
    color: var(--text-light) !important;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    background-color: rgba(242, 109, 33, 0.05);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.about-slogan strong {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--primary);
}

/* --- Services Section --- */
.services {
    padding: 6rem 5%;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}

/* --- Our Work / Gallery Section --- */
.work {
    padding: 6rem 5%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(10,10,10,0.95), rgba(10,10,10,0.6), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Contact Section --- */
.contact-container {
    background-color: var(--bg-dark);
    padding: 6rem 5%;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Footer --- */
footer {
    background-color: #050505;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.designer-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background-color: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    z-index: 2000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* --- Nav scroll state --- */
nav.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.gallery-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
    }
}

/* --- Signature detail: surveyor's frame on the hero --- */
.hero-content {
    position: relative;
    padding: 2.5rem 3rem;
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border: 2px solid var(--primary);
}

.hero-content::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.hero-content::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* --- Sticky Call Now Button --- */
.call-now {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.75rem;
    background-color: var(--primary);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    /* Hidden until the user scrolls past the hero */
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
}

.call-now.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.call-now:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.call-now i {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    /* Full-width bar on mobile - easiest possible tap target */
    .call-now {
        right: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        justify-content: center;
        padding: 1.1rem;
        font-size: 1rem;
    }

    /* Stops the bar covering the footer credit */
    footer {
        padding-bottom: 5.5rem;
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        transition: max-height 0.4s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1.2rem 0;
        border-top: 1px solid var(--border-color);
    }

    nav {
        padding: 1rem 5%; /* Slightly reduce padding on mobile */
    }

    .logo-main {
        font-size: 1.4rem; /* Shrink main logo text on mobile */
        letter-spacing: 1px;
    }

    .logo-sub {
        font-size: 0.6rem; /* Shrink sub logo text on mobile */
        letter-spacing: 2px;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.75rem; /* Shrink button text slightly */
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-content { padding: 2rem 1.5rem; }
    .btn-group { flex-direction: column; }
    .features-strip { flex-direction: column; gap: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
