
/* =========================================
   CAERFFILLI RETAIL PARK
   Colour palette and global settings
========================================= */

:root {
    --green: #579167;
    --green-dark: #315d3d;
    --green-light: #eaf1eb;
    --green-pale: #f4f7f3;
    --ink: #222b24;
    --muted: #687269;
    --border: #dce4dc;
    --white: #ffffff;
    --off-white: #fbfcfa;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--off-white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}

body,
button,
input,
select {
    font-family: var(--sans);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-size: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================
   HEADER AND NAVIGATION
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 82px;
    padding: 14px 6%;
    background: rgba(251, 252, 250, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.main-navigation a {
    color: #48534a;
    font-size: 13px;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--green);
}

.menu-toggle {
    display: none;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--green-dark);
    cursor: pointer;
}


/* =========================================
   TYPOGRAPHY AND REUSABLE SECTIONS
========================================= */

.section {
    padding: 100px 8%;
}

.section-muted {
    background: var(--green-pale);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--green-dark);
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.7px;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

h3 {
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.4;
}

.section-heading > p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.section p {
    color: var(--muted);
}

.text-link {
    display: inline-block;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--green);
    padding-bottom: 4px;
}

.text-link:hover {
    color: var(--green);
}


/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    background: var(--white);
    color: var(--green-dark);
}

.button-light:hover {
    background: var(--green-light);
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--white);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.button-green {
    background: var(--green-dark);
    color: var(--white);
}

.button-green:hover {
    background: var(--green);
}

.button-outline-green {
    border-color: var(--green);
    color: var(--green-dark);
}

.button-outline-green:hover {
    background: var(--green-light);
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px;
    padding: 90px 9%;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(131, 176, 136, 0.55), transparent 45%),
        linear-gradient(125deg, #24482f 0%, #416f4a 53%, #6e9872 100%);
}

/*
To add a Roblox screenshot, replace the background above with:
background:
    linear-gradient(rgba(18, 42, 24, 0.68), rgba(18, 42, 24, 0.45)),
    url("../crp-images/your-screenshot.jpg") center / cover no-repeat;
*/

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(16, 38, 22, 0.45),
        rgba(16, 38, 22, 0.05)
    );
}

.hero-content {
    position: relative;
    max-width: 750px;
}

.hero .eyebrow {
    color: #d8e8d8;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(42px, 6.3vw, 76px);
    line-height: 1.06;
}

.hero-content > p:not(.hero-note) {
    max-width: 580px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

.hero-actions,
.community-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .hero-note {
    max-width: 500px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}


/* =========================================
   INTRODUCTION
========================================= */

.introduction {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 70px;
}

.introduction .section-heading {
    margin: 0;
    text-align: left;
}

.introduction-content p {
    margin-bottom: 20px;
}


/* =========================================
   CARDS AND GRIDS
========================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.content-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    border-color: #b8cdb9;
    box-shadow: 0 12px 30px rgba(37, 68, 43, 0.06);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.card-number {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--green);
    font-family: var(--serif);
    font-size: 27px;
}

.content-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
}


/* =========================================
   NEWS
========================================= */

.news-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-category {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 4px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.news-date {
    margin: 19px 0 7px;
    font-size: 12px;
}


/* =========================================
   GALLERY
========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #cbd9cc;
    border-radius: 9px;
    background:
        radial-gradient(ellipse at 70% 25%, rgba(255, 255, 255, 0.65), transparent 42%),
        linear-gradient(145deg, #dbe8dc, #b7d0ba);
}

.gallery-placeholder:nth-child(2) {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.7), transparent 42%),
        linear-gradient(145deg, #e5ecdf, #c1d5c0);
}

.gallery-placeholder:nth-child(3) {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.6), transparent 40%),
        linear-gradient(145deg, #c9ddca, #a8c5ac);
}

.gallery-placeholder > span {
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: 32px;
}

.gallery-placeholder p {
    margin: 8px 0 0;
    color: var(--green-dark);
    font-size: 13px;
}


/* =========================================
   COMMUNITY
========================================= */

.community-section {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    align-items: center;
    gap: 60px;
    background: var(--white);
}

.community-copy {
    max-width: 680px;
}

.community-copy > p {
    max-width: 600px;
    margin-bottom: 27px;
}

.community-mark {
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--green-pale);
}

.community-mark img {
    width: min(100%, 220px);
    max-height: 220px;
    object-fit: contain;
}


/* =========================================
   TENANT DIRECTORY
========================================= */

.tenant-tools {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto 28px;
}

.tenant-tools input,
.tenant-tools select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
}

.tenant-tools input:focus,
.tenant-tools select:focus {
    border-color: var(--green);
    outline: 2px solid rgba(87, 145, 103, 0.15);
}

.tenant-label {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.tenant-status {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f0f2ee;
    color: #6a756b;
    font-size: 11px;
}

.empty-message {
    margin: 25px 0 0;
    text-align: center;
}


/* =========================================
   MANAGEMENT STRUCTURE
========================================= */

.management-chart {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.management-role {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.management-role p {
    margin-bottom: 7px;
    font-size: 14px;
}

.management-role p:last-child {
    margin-bottom: 0;
}

.management-top {
    max-width: 420px;
    margin: 0 auto;
    border-top: 4px solid var(--green);
    box-shadow: 0 8px 25px rgba(37, 68, 43, 0.05);
}

.role-level {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.management-connector {
    width: 1px;
    height: 35px;
    margin: 0 auto;
    background: #b7cbb9;
}

.management-branches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.supporting-branches {
    margin-top: 20px;
}

.supporting-branches .management-role {
    background: var(--green-pale);
}


/* =========================================
   VISITOR INFORMATION
========================================= */

.visitor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visitor-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: 20px;
}

.visitor-contact {
    margin-top: 45px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    text-align: center;
}

.visitor-contact h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 45px 8% 28px;
    border-top: 1px solid var(--border);
    background: #f1f5f0;
    text-align: center;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: 24px;
}

.site-footer p {
    color: var(--muted);
    font-size: 13px;
}

.site-footer p a {
    color: var(--green-dark);
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--green-dark);
    font-size: 13px;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}


/* =========================================
   RESPONSIVE LAYOUT
========================================= */

@media (max-width: 1100px) {
    .site-header {
        padding-right: 4%;
        padding-left: 4%;
    }

    .main-navigation {
        gap: 8px 13px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .section {
        padding: 80px 6%;
    }

    .visitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .site-header {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        display: inline-block;
        font-size: 21px;
    }

    .main-navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 10px 0 7px;
        border-top: 1px solid var(--border);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation a {
        padding: 9px 3px;
        font-size: 14px;
    }

    .hero {
        min-height: 510px;
        padding: 75px 7%;
    }

    .introduction,
    .community-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .introduction .section-heading {
        max-width: 600px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-placeholder:first-child {
        grid-column: 1 / -1;
    }

    .community-mark {
        min-height: 190px;
    }

    .community-mark img {
        max-height: 160px;
    }
}

@media (max-width: 520px) {
    .section {
        padding: 65px 6%;
    }

    .hero {
        min-height: 480px;
        padding: 65px 6%;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .hero-content > p:not(.hero-note) {
        font-size: 15px;
    }

    .hero-actions,
    .community-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .community-actions .button {
        width: 100%;
    }

    .card-grid,
    .gallery-grid,
    .management-branches,
    .visitor-grid {
        grid-template-columns: 1fr;
    }

    .gallery-placeholder:first-child {
        grid-column: auto;
    }

    .gallery-placeholder {
        min-height: 210px;
    }

    .tenant-tools {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 23px;
    }

    .management-role {
        padding: 22px;
    }

    .site-footer {
        padding-right: 6%;
        padding-left: 6%;
    }
}


/* =========================================
   ACCESSIBILITY: REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
