/* ==========================================================================
   EJ Furniture Designs & More — shared stylesheet
   Both pages load this file. All design tokens live here, in one place.
   Change a color or a font once and every page updates.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color */
    --ink:        #16130f;   /* headers, footers, primary text — warm black */
    --ink-soft:   #2a241d;   /* raised surfaces on dark backgrounds */
    --amber:      #e0a516;   /* accent for text and small elements (readable on white) */
    --amber-lift: #ffd24a;   /* accent for large blocks and dark backgrounds */
    --paper:      #fdfcfa;   /* page background */
    --surface:    #ffffff;   /* cards, form fields */
    --walnut:     #7a5c3f;   /* secondary accent, wood tone */
    --muted:      #6b635a;   /* secondary text */
    --line:       #e7e1d8;   /* hairlines and field borders */

    /* Type */
    --font-display: "Bitter", Georgia, "Times New Roman", serif;
    --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Scale */
    --step-0:  1rem;
    --step-1:  1.2rem;
    --step-2:  1.5rem;
    --step-3:  1.95rem;
    --step-4:  2.6rem;

    /* Space and shape */
    --radius:      10px;
    --radius-sm:   7px;
    --shell:       1120px;   /* max content width */
    --measure:     62ch;     /* max line length for body copy */
    --shadow:      0 10px 34px rgba(22, 19, 15, 0.09);
    --shadow-soft: 0 4px 14px rgba(22, 19, 15, 0.06);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

/* Visible keyboard focus everywhere */
:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link for keyboard and screen-reader users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--amber-lift);
    color: var(--ink);
    padding: 10px 16px;
    font-weight: 600;
    z-index: 100;
}
.skip-link:focus { left: 0; }

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 20px;
}

/* --------------------------------------------------------------------------
   3. Section rhythm
   -------------------------------------------------------------------------- */
.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px 24px;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--ink);
}

.section-head p {
    color: var(--muted);
    margin: 0;
    font-size: 0.94rem;
}

.lead {
    font-size: var(--step-1);
    color: var(--muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink);
    color: #fff;
}

.site-header__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand__mark {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 8px;
    background: var(--amber-lift);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.2;
}

.brand__domain {
    font-size: 0.76rem;
    color: #b8b0a5;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
}

.site-nav a:hover { background: var(--ink-soft); }

.site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--amber-lift);
}

.site-nav a.nav-cta {
    background: var(--amber-lift);
    color: var(--ink);
    font-weight: 600;
    margin-left: 6px;
}

.site-nav a.nav-cta:hover { background: #ffdd70; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #4a4139;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--solid {
    background: var(--ink);
    color: #fff;
}
.btn--solid:hover { background: var(--ink-soft); }

.btn--amber {
    background: var(--amber-lift);
    color: var(--ink);
}
.btn--amber:hover { background: #ffdd70; }

.btn--outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: 64px 56px; }

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--walnut);
    border-left: 3px solid var(--amber);
    padding-left: 10px;
    margin-bottom: 18px;
}

.hero h1 { margin-bottom: 16px; max-width: 15ch; }

.hero__note {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--muted);
}

/* Contact card in the hero */
.hero-card {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
}

.hero-card h2 {
    font-size: var(--step-2);
    margin-bottom: 6px;
}

.hero-card p {
    color: #c4bcb1;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.hero-card .btn { width: 100%; }
.hero-card .btn + .btn { margin-top: 10px; }

.hero-card__meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #3a332b;
    font-size: 0.84rem;
    color: #a89f93;
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 24px;
}

.service {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
}

.service__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    color: var(--walnut);
}

.service__icon svg { width: 100%; height: 100%; }

.service h3 { margin-bottom: 8px; }

.service p {
    color: var(--muted);
    font-size: 0.94rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   8. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.piece { margin: 0; }

.piece__frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #efe8dd;
    box-shadow: var(--shadow-soft);
}

.piece__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder shown until a real photo is dropped in. Delete .piece__empty
   once you replace it with an <img>. */
.piece__empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    background:
        repeating-linear-gradient(
            108deg,
            #eee5d8 0px, #eee5d8 9px,
            #e6dbca 9px, #e6dbca 12px
        );
    color: var(--walnut);
    font-size: 0.82rem;
    font-weight: 600;
}

.piece figcaption {
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
}

.piece__detail {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.87rem;
    color: var(--muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   9. Booking
   -------------------------------------------------------------------------- */
.booking {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

/* --------------------------------------------------------------------------
   10. Contact form
   -------------------------------------------------------------------------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-soft);
}

.contact-form { display: grid; gap: 18px; }

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

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

.field > span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.field input,
.field textarea,
.field select {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: #a49b90; }

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(224, 165, 22, 0.15);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.form-foot .btn { padding-inline: 28px; }

.form-note {
    font-size: 0.87rem;
    color: var(--muted);
    margin: 0;
}

/* Honeypot field — hidden from people, catches spam bots */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Two-column contact layout
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 36px;
    align-items: start;
}

.info-card {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 24px;
}

.info-card h3 {
    color: #fff;
    margin-bottom: 18px;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.info-list dt,
.info-list__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--amber-lift);
    margin-bottom: 3px;
}

.info-list a {
    color: #fff;
    text-decoration-color: #6d6255;
    text-underline-offset: 3px;
}
.info-list a:hover { text-decoration-color: var(--amber-lift); }

.info-list span { color: #c4bcb1; font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #fff;
    margin-top: 40px;
    padding-block: 32px;
}

.site-footer__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-footer__name {
    font-family: var(--font-display);
    font-weight: 600;
}

.site-footer__meta {
    font-size: 0.84rem;
    color: #a89f93;
    margin-top: 4px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid #4a4139;
    border-radius: var(--radius-sm);
}

.socials a:hover {
    background: var(--amber-lift);
    color: var(--ink);
    border-color: var(--amber-lift);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    :root { --step-4: 2.1rem; --step-3: 1.7rem; }

    .hero__inner,
    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 { max-width: none; }

    /* Collapse the nav into a panel that the toggle button opens.
       The .is-open rule is what makes the button actually work. */
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--ink);
        padding: 12px 20px 18px;
        border-top: 1px solid #3a332b;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    }

    .site-nav.is-open { display: flex; }

    .site-nav a { padding: 12px 14px; }
    .site-nav a.nav-cta { margin-left: 0; margin-top: 4px; }

    .nav-toggle { display: block; }
}

@media (max-width: 620px) {
    .section { padding-block: 44px; }
    .hero { padding-block: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   14. Motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
