
:root {
    color-scheme: dark;
    --bg: #0c0c0c;
    --fg: #f5f3ef;
    --muted: #aaa;
    --line: #333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.6 Arial, sans-serif;
}

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

/* Header and Navigation */

header,
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 25px 6%;
    border-bottom: 1px solid var(--line);
}

.brand {
    font: 23px Georgia, serif;
    letter-spacing: 3px;
    text-align: center;
    white-space: nowrap;
}

.brand small {
    display: block;
    font: 10px Arial, sans-serif;
    letter-spacing: 8px;
    padding-left: 8px;
    margin-top: 9px;
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a,
footer > a:last-child {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
}

nav a:hover {
    color: white;
}

/* General Page Styling */

main {
    min-height: 65vh;
}

section {
    padding: 60px 6%;
    max-width: 1500px;
    margin: auto;
}

h1,
h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 24px;
}

h1 {
    font-size: clamp(38px, 6vw, 76px);
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
}

h3 {
    font-weight: 400;
}

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

/* Homepage Hero */

.hero {
    min-height: min(680px, 76vh);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #171717;
    max-width: none;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000b, #0002);
}

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

.hero h1 {
    letter-spacing: 2px;
    margin: 18px 0 8px;
}

.hero .uk {
    font-size: 21px;
    letter-spacing: 12px;
    padding-left: 12px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ddd;
}

/* Buttons */

.button,
button {
    display: inline-block;
    padding: 13px 22px;
    background: #f5f3ef;
    color: #111;
    border: 1px solid #f5f3ef;
    font: 11px Arial, sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
}

.secondary {
    background: transparent;
    color: var(--fg);
    border-color: #555;
}

.danger {
    color: #ffb2b2;
    background: transparent;
    border-color: #773a3a;
}

/* Photography Gallery */

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

.photo {
    background: none;
    border: 0;
    text-align: left;
    padding: 0;
    color: var(--fg);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.photo img {
    width: 100%;
    height: clamp(180px, 25vw, 370px);
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
}

.photo:hover img {
    opacity: 0.85;
}

/* Layout and Sections */

.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.center {
    text-align: center;
}

.panel {
    background: #151515;
    border: 1px solid #303030;
    padding: 24px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Admin Dashboard */

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

.stat {
    font-size: 30px;
}

.stat small {
    display: block;
    font-size: 12px;
    color: #aaa;
}

/* Forms */

form {
    display: grid;
    gap: 12px;
    max-width: 650px;
}

input,
select,
textarea {
    width: 100%;
    background: #171717;
    border: 1px solid #555;
    padding: 12px;
    color: var(--fg);
    font: inherit;
}

label {
    font-size: 13px;
    color: #bbb;
}

label input,
label select,
label textarea {
    display: block;
    margin-top: 5px;
}

input[type="checkbox"] {
    width: auto;
    display: inline-block;
}

/* Portfolio Filters */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.filters .selected {
    background: white;
    color: #111;
}

.message {
    min-height: 24px;
    color: #ddd;
}

/* Admin Photo Management */

.admin-photo {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
}

.admin-photo img {
    width: 130px;
    height: 130px;
    object-fit: cover;
}

.admin-photo form {
    max-width: none;
}

/* Customer Enquiries */

.enquiry {
    overflow-wrap: anywhere;
}

.enquiry p {
    white-space: pre-wrap;
}

.enquiry select {
    max-width: 180px;
}

/* Footer */

footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: #aaa;
    font-size: 12px;
}

footer .brand {
    font-size: 16px;
    color: white;
}

footer span a {
    text-decoration: underline;
}

/* Full Screen Photo Preview */

dialog {
    background: #111;
    color: white;
    border: 1px solid #555;
    width: min(90vw, 1000px);
    padding: 20px;
}

dialog img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

dialog button {
    float: right;
}

dialog::backdrop {
    background: #000c;
}

.empty {
    padding: 35px;
    border: 1px dashed #555;
    color: #aaa;
}

.links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.links a {
    text-decoration: underline;
}

/* Floating WhatsApp Button */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 140px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 30px;
    background: #25d366;
    color: #092716;
    font-weight: bold;
    box-shadow: 0 4px 20px #0005;
}

.whatsapp-float svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    background: #55e58b;
}

/* Responsive Tablet and Mobile */

@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        gap: 15px;
    }

    section {
        padding: 40px 5%;
    }

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

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

    .hero {
        min-height: 500px;
    }

    .hero-content {
        width: 100%;
    }

    .admin-photo {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 6px;
    }

    .panel {
        padding: 15px;
    }

    footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Mobile WhatsApp Button */

@media (max-width: 550px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 12px;
        right: 14px;
        bottom: 140px;
    }
}
