
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* =========================================
   1. GLOBAL VARIABLES
========================================= */

:root {
    --ink: #111111;
    --paper: #faf9f6;
    --white: #ffffff;
    --gold: #c6a56b;
    --red: #9f2633;
    --muted: #777777;
    --line: #e9e5dc;

    --font-body: 'DM Sans', Arial, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --container-width: 1400px;
}

/* =========================================
   2. RESET AND BASE STYLES
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
}

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

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* =========================================
   3. WEBSITE HEADER
========================================= */

.site-header {
    min-height: 90px;
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: var(--ink);
    color: var(--white);

    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid #292929;
}

/* =========================================
   BELLAMY LOGO – WHITE BACKGROUND
========================================= */

.brand-logo {
    width: 290px;
    height: 180px;
    padding: 10px 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 5px;

    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
}

/* Keep the header properly aligned */

/* =====================================
   BELLAMY HEADER LOGO
===================================== */

.site-header {
    min-height: 90px;
    padding: 10px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: #111;
    color: #fff;

    position: sticky;
    top: 0;
    z-index: 100;
}

/* White logo background */

.brand-logo {
    width: 155px;
    height: 68px;
    padding: 5px 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fff;
    border-radius: 4px;

    overflow: hidden;
    flex-shrink: 0;
}

/* Logo image */

.brand-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    max-width: 100%;
    max-height: 100%;
}

/* Navigation alignment */

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
}

/* Tablet */

@media (max-width: 850px) {
    .site-header {
        min-height: 80px;
        padding: 8px 5%;
    }

    .brand-logo {
        width: 135px;
        height: 60px;
    }
}

/* Mobile */

@media (max-width: 560px) {
    .site-header {
        min-height: 72px;
        padding: 7px 5%;
    }

    .brand-logo {
        width: 115px;
        height: 52px;
        padding: 4px 6px;
    }
}

/* Navigation */

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
    font-weight: 600;
}

.nav a {
    color: var(--white);
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--gold);
}

.nav-cta,
.btn {
    display: inline-block;
    padding: 12px 20px;

    background: var(--gold);
    color: var(--ink) !important;

    font-weight: 700;
    border: none;
    cursor: pointer;

    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover,
.btn:hover {
    background: #d8bb88;
    transform: translateY(-2px);
}

/* Mobile navigation button */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 27px;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
========================================= */

.hero {
    min-height: 590px;
    padding: 80px 8%;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.86),
            rgba(0, 0, 0, 0.30)
        ),
        url('../images/hero.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    font: 600 clamp(42px, 6vw, 76px)/1.08 var(--font-heading);
    margin: 18px 0;
}

.hero p {
    max-width: 600px;
    color: #eeeeee;
    font-size: 17px;
}

.btn-outline {
    display: inline-block;
    padding: 11px 19px;
    margin-left: 10px;

    border: 1px solid var(--gold);
    color: var(--white);

    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--ink);
}

/* =========================================
   5. GENERAL SECTIONS
========================================= */

.section {
    padding: 75px 8%;
}

.section.dark {
    background: #151515;
    color: var(--white);
}

.section-head {
    max-width: 700px;
    margin-bottom: 35px;
}

.section h2,
.page-hero h1 {
    font: 600 clamp(32px, 4vw, 48px)/1.2 var(--font-heading);
    margin: 8px 0 15px;
}

.section p {
    color: var(--muted);
}

.section.dark p {
    color: #cccccc;
}

/* =========================================
   6. SERVICE CARDS
========================================= */

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

.card {
    padding: 27px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.card h3 {
    font: 600 23px var(--font-heading);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
}

.number {
    color: var(--red);
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================
   7. INNER PAGE HERO
========================================= */

.page-hero {
    padding: 75px 8%;
    background: #171717;
    color: var(--white);
}

.page-hero p {
    max-width: 680px;
    color: #dddddd;
}

/* =========================================
   8. ABOUT / SPLIT SECTION
========================================= */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.photo-placeholder {
    min-height: 350px;

    display: grid;
    place-items: center;

    padding: 25px;

    background: linear-gradient(135deg, #26211c, #786044);
    color: var(--white);
    text-align: center;
}

/* =========================================
   9. GALLERY
========================================= */

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

.media-card {
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--ink);
}

.media-card .caption {
    padding: 14px;
    font-size: 14px;
}

/* =========================================
   10. FORMS
========================================= */

.form-wrap {
    max-width: 850px;
    margin: 0 auto;

    padding: 35px;

    background: var(--white);
    border: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;

    border: 1px solid #d8d3c9;
    background: var(--white);

    font: inherit;
    border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 13px;
    color: var(--muted);
}

/* =========================================
   11. ALERT MESSAGES
========================================= */

.alert {
    padding: 13px 16px;
    margin: 15px 0;

    background: #e8f4eb;
    color: #20552e;
}

.alert.error {
    background: #fae9e9;
    color: #8b2222;
}

/* =========================================
   12. WEBSITE FOOTER
========================================= */

.footer {
    padding: 50px 8% 25px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;

    background: #101010;
    color: var(--white);
}

.footer > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
}

.footer p {
    color: #bbbbbb;
}

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

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

/* Footer logo on white background */

.footer-logo {
    width: 180px;
    height: 65px;
    padding: 7px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid #333333;
    padding-top: 20px;
    font-size: 12px;
}

/* =========================================
   13. ADMIN DASHBOARD
========================================= */

.admin-body {
    background: #f3f1ec;
}

.admin-top {
    padding: 18px 4%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: var(--ink);
    color: var(--white);
}

.admin-top nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
}

.admin-top nav a:hover {
    color: var(--gold);
}

/* Admin logo */

.admin-logo {
    width: 160px;
    height: 58px;
    padding: 6px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
}

.admin-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 5%;
}

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

.stat {
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--line);
}

.stat strong {
    font: 600 34px var(--font-heading);
}

.panel {
    padding: 25px;
    margin: 20px 0;

    background: var(--white);
    border: 1px solid var(--line);
    overflow-x: auto;
}

/* =========================================
   14. ADMIN TABLES
========================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table th {
    background: #f7f5f0;
}

.inline-form {
    display: inline-flex;
    gap: 6px;
}

.small-btn {
    padding: 7px 10px;
    background: #171717;
    color: var(--white);
    border: 0;
    cursor: pointer;
}

.danger {
    background: #922b35;
}

.admin-form {
    max-width: 700px;
}

.admin-form .field {
    margin-bottom: 15px;
}

.muted {
    color: var(--muted);
}

/* =========================================
   15. TABLET RESPONSIVENESS
========================================= */

@media (max-width: 850px) {

    .site-header {
        padding: 12px 5%;
    }

    .brand-logo {
        width: 165px;
        height: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 22px 6%;

        background: #111111;

        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav.open {
        display: flex;
    }

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

    .split {
        grid-template-columns: 1fr;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   16. MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 560px) {

    .site-header {
        min-height: 75px;
        padding: 10px 5%;
    }

    .brand-logo {
        width: 145px;
        height: 54px;
        padding: 5px 9px;
    }

    .hero {
        min-height: 520px;
        padding: 65px 7%;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 15px;
    }

    .cards,
    .gallery,
    .form-grid,
    .footer,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 55px 7%;
    }

    .page-hero {
        padding: 55px 7%;
    }

    .form-wrap {
        padding: 20px;
    }

    .btn-outline {
        margin: 12px 0 0;
    }

    .copyright {
        grid-column: auto;
    }

    .footer-logo {
        width: 155px;
        height: 58px;
    }

    .admin-main {
        padding: 25px 4%;
    }

    .admin-logo {
        width: 145px;
        height: 54px;
    }
}
