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

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

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

/* Navigation bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.navbar .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #f47c30; /* orange accent from the logo */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo image styling */
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f47c30;
}

.nav-cta {
    padding: 0.5rem 1rem;
    background-color: #f47c30;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-cta:hover {
    background-color: #d95d15;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #fff;
    /* Use one of the provided project photos as the hero background to better represent poured‑in‑place rubber surfacing */
    background-image: url('assets/img/project1.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.btn-primary {
    display: inline-block;
    background-color: #f47c30;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #d95d15;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-light {
    background-color: #f9f9f9;
}

.section-dark {
    background-color: #fff;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    filter: grayscale(1);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f47c30;
}

.feature p {
    font-size: 0.9rem;
    color: #555;
}

/* Pricing table */
.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-size: 0.9rem;
}

.pricing-table th {
    background-color: #f47c30;
    color: #fff;
    font-weight: 600;
}

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

.pricing-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Contact form */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-form {
    flex: 1 1 300px;
    max-width: 600px;
}

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

.form-group.full-width {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-details {
    flex: 1 1 200px;
    max-width: 350px;
    font-size: 0.9rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.form-response {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #f47c30;
}

/* Floating call‑to‑action button */
.floating-cta {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 999;
    background-color: #f47c30;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.floating-cta:hover {
    background-color: #d95d15;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .navbar .nav-content {
        justify-content: space-between;
    }
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-details {
        max-width: none;
        margin-top: 1.5rem;
    }
}

/* Reset anchor hover on hero button for mobile dark backgrounds */
@media (prefers-color-scheme: dark) {
    .section-dark {
        background-color: #111;
        color: #eee;
    }
    .section-dark h2 {
        color: #fff;
    }
    .feature {
        background-color: #222;
    }
    .pricing-table th {
        background-color: #f47c30;
    }
}

/* Year dynamic colour in footer */
#year {
    font-weight: 600;
}

/* Hide citation markers so they don't appear in the public website. These spans
   are retained in the source for referencing but visually hidden. */
.citation {
    display: none;
}

/* Dark theme styling for the "Why choose" section
   The benefits section at the top of the page (id="surface") should read
   clearly against a darker background. These rules override the default
   light colour palette to provide white text on a rich charcoal backdrop. */
#surface {
    background-color: #222;
    color: #fff;
}

/* Ensure the section heading remains bright against the dark background */
#surface h2 {
    color: #fff;
}

/* Lighten the introductory paragraph text for readability */
#surface p {
    color: #ddd;
}

/* Card styling for each feature in the dark section */
#surface .feature {
    background-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Accent colour for feature headings and light text for their descriptions */
#surface .feature h3 {
    color: #f47c30;
}

#surface .feature p {
    color: #eee;
}

/* Transformation section grid
   Displays before and after images in a responsive grid with clear labels. */
.transformation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.transformation-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #f47c30;
}

.transformation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}