/* =========================================
   Base styles – colours, fonts, layout
   ========================================= */

:root {
    --bg: #f7f7f5;
    --bg-alt: #ffffff;
    --text: #111111;
    --muted: #666666;
    --border: #dddddd;
    --accent: #222222;

    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container-width: 1120px;
    --gutter: 1.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* =========================================
   Header – logo + menu
   ========================================= */

.site-header {
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-alt);
}

.site-header__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 2rem;
}

.site-logo {
    display: inline-flex;
    flex-direction: column;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-logo__title {
    font-weight: 600;
}

.site-logo__subtitle {
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-nav a {
    position: relative;
    padding-bottom: 0.1rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.2s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* =========================================
   Main area
   ========================================= */

.site-main {
    padding-bottom: 0; /* home is full-screen-ish */
}

/* =========================================
   HOME PAGE – HERO SLIDER
   ========================================= */

.hero {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    min-height: calc(100vh - 80px); /* roughly full height minus header */
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 3rem;
    padding: 3rem 0;
}

/* Left side text */

.hero__intro {
    align-self: center;
}

.hero__kicker {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 2.7vw, 2.4rem);
    line-height: 1.2;
    font-weight: 500;
}

.hero__subtitle {
    margin: 0;
    max-width: 22rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Slider container */

.hero-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-slider__viewport {
    flex: 1;
    overflow: hidden; /* so the peeking slides show nicely */
}

.hero-slider__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Individual slide */

.hero-slide {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-alt);
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.96);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Active (center) slide */

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Slide image area */

.hero-slide__image {
    position: relative;
    padding-top: 60%; /* controls height / aspect ratio */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* CHANGE THESE URLs TO YOUR REAL PROJECT IMAGES */
.hero-slide__image--1 {
    background-image: url('https://via.placeholder.com/1200x800?text=Project+1');
}

.hero-slide__image--2 {
    background-image: url('https://via.placeholder.com/1200x800?text=Project+2');
}

.hero-slide__image--3 {
    background-image: url('https://via.placeholder.com/1200x800?text=Project+3');
}

/* Slide caption area */

.hero-slide__caption {
    padding: 1.1rem 1.25rem 1.25rem;
}

.hero-slide__meta {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--muted);
}

.hero-slide__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.hero-slide__text {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-slide__link {
    font-size: 0.85rem;
    color: var(--text);
}

.hero-slide__link:hover {
    text-decoration: underline;
}

/* Slider arrows */

.hero-slider__arrow {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.9rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-slider__arrow:hover {
    color: var(--text);
    transform: translateY(-1px);
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    border-top: 1px solid var(--border);
    background-color: var(--bg-alt);
}

.site-footer__inner {
    padding: 1.75rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.site-footer__info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer__contact a {
    display: inline-block;
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}

/* =========================================
   Responsive adjustments (tablet & mobile)
   ========================================= */

@media (max-width: 980px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.5rem 0 3rem;
    }

    .hero__intro {
        margin-bottom: 1.5rem;
    }

    .hero-slider {
        align-items: stretch;
    }

    .hero-slide {
        flex-basis: 80%;
        max-width: 80%;
    }
}

@media (max-width: 640px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 0.85rem 1.5rem;
    }

    .hero__inner {
        padding: 2rem 0 2.5rem;
    }

    .hero-slider__arrow {
        font-size: 1.6rem;
    }

    .hero-slide {
        flex-basis: 90%;
        max-width: 90%;
    }

    .hero-slide__caption {
        padding-inline: 1rem;
    }
}
