
/* Website colour palette */

:root {
    --charcoal: #252B30;
    --red: #A13D2D;
    --warm-grey: #E5E3DF;
    --off-white: #FAF9F6;
    --steel-grey: #747B80;
    --white: #FFFFFF;
}

/* General styling */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--off-white);
    color: var(--charcoal);
    line-height: 1.6;
}

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

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

/* Top information bar */

.top-bar {
    background-color: var(--charcoal);
    color: var(--white);
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main navigation */

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--warm-grey);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 30px;
}

/* Company branding */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 55px;
    height: 55px;
    background-color: var(--warm-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--steel-grey);
}

.brand-text h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}

.brand-text span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--steel-grey);
}

/* Navigation links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

/* Enquiry button */

.nav-links .enquire-btn {
    background-color: var(--red);
    color: var(--white);
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}

.nav-links .enquire-btn:hover {
    background-color: var(--charcoal);
    color: var(--white);
}

/* ==============================
   HERO SECTION
   ============================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    background-color: var(--warm-grey);
}

/* Hero text */

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 10%;
}

.hero-accent {
    width: 45px;
    height: 4px;
    background-color: var(--red);
    margin-bottom: 25px;
}

.section-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 20px 0;
}

.hero-content p {
    font-size: 17px;
    color: #62696E;
    max-width: 450px;
    margin-bottom: 35px;
}

/* Hero buttons */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
}

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

.btn-secondary {
    border: 1px solid var(--charcoal);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--white);
}

/* Hero image placeholder */

.hero-image {
    background-color: #C5C7C8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.hero-image span {
    color: #62696E;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Responsive hero layout */

@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 50px 6%;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        min-height: 280px;
    }

}

/* ==============================
   COMPANY INTRODUCTION
   ============================== */

.about-section {
    padding: 90px 0;
    background-color: var(--off-white);
}

/* Reusable section heading */

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-line {
    width: 30px;
    height: 3px;
    background-color: var(--red);
}

/* About layout */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--warm-grey);
}

.about-title h2 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.about-title span {
    font-size: 14px;
    color: var(--steel-grey);
}

.about-description p {
    font-size: 16px;
    color: #62696E;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Reusable text link */

.text-link {
    display: inline-block;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--charcoal);
}

/* Mobile layout */

@media (max-width: 768px) {

    .about-section {
        padding: 50px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 30px;
    }

}

/* ==============================
   CAPABILITIES SECTION
   ============================== */

.capabilities-section {
    background-color: var(--warm-grey);
    padding: 90px 0;
}

.capabilities-intro {
    margin-bottom: 40px;
}

.capabilities-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.capabilities-intro p {
    font-size: 16px;
    color: #62696E;
}

/* Three-column card layout */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Individual capability cards */

.capability-card {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Image placeholders */

.capability-image {
    aspect-ratio: 4 / 3;
    background-color: #C5C7C8;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.capability-image span {
    color: #62696E;
    font-size: 13px;
}

/* Card content */

.capability-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.capability-content h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.capability-content p {
    color: #62696E;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.capability-content .text-link {
    margin-top: auto;
}

/* Tablet layout */

@media (max-width: 1024px) {

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Mobile layout */

@media (max-width: 768px) {

    .capabilities-section {
        padding: 50px 0;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .capability-content {
        padding: 25px;
    }

}

/* ==============================
   FEATURED PROJECTS
   ============================== */

.projects-section {
    background-color: var(--off-white);
    padding: 90px 0;
}

/* Section introduction */

.projects-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 40px;
}

.projects-intro h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.projects-intro p {
    font-size: 16px;
    color: #62696E;
}

.projects-intro .btn-secondary {
    flex-shrink: 0;
}

/* Project gallery */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 25px;
}

.project-card {
    overflow: hidden;
}

/* Project image placeholders */

.project-image {
    aspect-ratio: 16 / 10;
    background-color: #C5C7C8;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

.project-image span {
    color: #62696E;
    font-size: 14px;
    letter-spacing: 1px;
}

.project-card:hover .project-image {
    filter: brightness(0.9);
}

/* Project descriptions */

.project-info {
    padding: 20px 0;
    border-bottom: 1px solid var(--warm-grey);
}

.project-category {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 8px;
}

/* Mobile layout */

@media (max-width: 768px) {

    .projects-section {
        padding: 50px 0;
    }

    .projects-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-info h3 {
        font-size: 21px;
    }

}

/* ==============================
   CONTACT SECTION
   ============================== */

.contact-section {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 90px 0;
}

.contact-section .section-label {
    color: #D68172;
}

.contact-section .section-line {
    background-color: #D68172;
}

/* Contact layout */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

/* Contact introduction */

.contact-intro h2 {
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.contact-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: #C5C7C8;
    max-width: 450px;
    margin-bottom: 30px;
}

.contact-intro .btn-primary {
    font-family: inherit;
}

.contact-intro .btn-primary:disabled {
    cursor: default;
}

.contact-intro .btn-primary:hover {
    background-color: #873326;
    border-color: #873326;
}

/* Contact information */

.contact-details h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D68172;
    margin-bottom: 20px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #454B50;
}

.contact-item span {
    display: block;
    color: #B0B5B8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    color: var(--white);
}

/* Mobile layout */

@media (max-width: 768px) {

    .contact-section {
        padding: 50px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-intro h2 {
        font-size: 36px;
    }

}

/* ==============================
   WEBSITE FOOTER
   ============================== */

.footer {
    background-color: #1C2125;
    color: #B0B5B8;
    padding: 60px 0 0;
}

/* Footer layout */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

/* Company branding */

.footer-brand {
    margin-bottom: 25px;
}

.footer-brand .logo-placeholder {
    background-color: #454B50;
    color: var(--white);
}

.footer-brand .brand-text h2 {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}

.footer-brand .brand-text span {
    color: #B0B5B8;
}

.footer-company p {
    font-size: 14px;
    line-height: 1.8;
}

/* Footer headings */

.footer h3 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Quick links */

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Contact information */

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

/* Copyright bar */

.footer-bottom {
    border-top: 1px solid #454B50;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 12px;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Mobile layout */

@media (max-width: 768px) {

    .footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

}

/* ==============================
   MOBILE NAVIGATION
   ============================== */

/* Hide hamburger on desktop */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Hamburger lines */

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--charcoal);
    margin: 5px 0;
    transition: transform 0.3s ease,
                opacity 0.3s ease;
}

/* Transform hamburger into X */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile and tablet navigation */

@media (max-width: 1024px) {

    .header {
        position: relative;
        z-index: 100;
    }

    .navbar {
        min-height: 75px;
        gap: 10px;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--warm-grey);
    }

    .nav-links .enquire-btn {
        text-align: center;
        margin-top: 15px;
        padding: 14px 20px;
        border: none;
    }

}

/* Smaller mobile screens */

@media (max-width: 480px) {

    .brand {
        gap: 10px;
    }

    .brand-text h1 {
        font-size: 23px;
    }

    .brand-text span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .logo-placeholder {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .top-bar {
        font-size: 10px;
    }

    .top-bar-content {
        gap: 10px;
    }

    .top-bar-content a {
        white-space: nowrap;
    }

}

/* ==============================
   FINAL DESIGN REFINEMENTS
   ============================== */

/* Typography */

body {
    font-family: 'Inter', Arial, sans-serif;
}

h1, h2, h3 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
}

.hero-content h2 {
    font-size: clamp(48px, 5.5vw, 85px);
    line-height: 1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.about-title h2,
.capabilities-intro h2,
.projects-intro h2 {
    font-size: clamp(38px, 4vw, 58px);
    letter-spacing: -0.5px;
}

.contact-intro h2 {
    font-size: clamp(42px, 5vw, 68px);
}

.capability-content h3,
.project-info h3 {
    font-size: 30px;
}

/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}

/* Text selection colour */

::selection {
    background-color: var(--red);
    color: var(--white);
}

/* Keyboard accessibility */

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

.footer a:focus-visible {
    outline-color: var(--white);
}

/* Mobile typography */

@media (max-width: 768px) {

    .hero-content h2 {
        font-size: clamp(40px, 10vw, 54px);
    }

    .contact-intro h2 {
        font-size: 44px;
    }

    .capability-content h3,
    .project-info h3 {
        font-size: 26px;
    }

}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}

/* ==============================
   UPDATED TYPOGRAPHY
   ============================== */

body {
    font-family: 'Source Sans 3', sans-serif;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.hero-content h2 {
    font-size: clamp(36px, 4vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    text-transform: none;
}

.about-title h2,
.capabilities-intro h2,
.projects-intro h2 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
}

.contact-intro h2 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
}

.capability-content h3,
.project-info h3 {
    font-size: 23px;
    font-weight: 700;
}

.hero-content p {
    font-size: 19px;
}

.nav-links a {
    font-size: 16px;
}

/* Mobile typography */

@media (max-width: 768px) {

    .hero-content h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .contact-intro h2 {
        font-size: 34px;
    }

    .capability-content h3,
    .project-info h3 {
        font-size: 21px;
    }

}

/* ==============================
   TEMPORARY IMAGE WATERMARKS
   ============================== */

.hero-image,
.capability-image,
.project-image {
    position: relative;
    overflow: hidden;
}

/* Centred watermark */

.image-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 85%;
    max-width: 420px;
    background-color: rgba(28, 33, 37, 0.78);
    padding: 20px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.image-watermark strong {
    display: block;
    color: #E3A194;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.image-watermark p {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Smaller watermarks on mobile */

@media (max-width: 768px) {

    .image-watermark {
        padding: 15px;
    }

    .image-watermark p {
        font-size: 13px;
    }

}

/* ==============================
   WEBSITE PHOTOGRAPHS
   ============================== */

/* Hero photograph */

.hero-image {
    background-image: url('images/hero.jpg');
}

/* Capability photographs */

.fabrication-image {
    background-image: url('images/fabrication.jpg');
}

.manufacturing-image {
    background-image: url('images/manufacturing.jpg');
}

.engineering-image {
    background-image: url('images/engineering.jpg');
}

/* Project photographs */

.project-1-image {
    background-image: url('images/project-1.jpg');
}

.project-2-image {
    background-image: url('images/project-2.jpg');
}

.project-3-image {
    background-image: url('images/project-3.jpg');
}

.project-4-image {
    background-image: url('images/project-4.jpg');
}
