/* ==========================================================================
   DENYERPRO-SKELETON.CSS  ·  "Editorial"  ·  black / white / orange
   Shared by every Denyer.pro project. 

   CORE
     1. Tokens        re-skin a project by overriding these, not the rules
     2. Reset & base
     3. Typography    h1-h6 (+ .h1-.h6), .lead, lists, quotes, code
     4. Layout        .container*, .row, .col-*
     5. Utilities     text, spacing, flex, visibility, .glow
     6. Components    buttons, forms, alerts, card, badge, copy-link, tables
     7. Page furniture header, logo, link strip, footer

   DOMAIN-SPECIFIC (optional, last section of this file)
     8. SHOOT CALENDAR  month/sunday rows, status + job-type cells, date column
   ========================================================================== */


/* 1. TOKENS
   ========================================================================== */
:root {
    color-scheme: dark;

    /* Brand: orange is the single accent colour */
    --brand: #f36f37;
    --brand-dim: #cc5522;
    --accent: #fd7e00;           /* hover tone */
    --accent-dim: #d46b01; 
    --on-brand: #000000;         /* text on orange (about 7:1; white would be about 3:1) */

    /* Surfaces */
    --bg: #000000;
    --bg-glow: rgba(129, 129, 129, 0.35);
    --bg-raised: #1a1a1a;        /* cards, file button, raised areas */
    --hover-overlay: rgba(255, 255, 255, .075);

    /* Thematic Colour */
    --theme-green-dark: #2a4a30;
    --theme-teal-dark: #23554a;
    --theme-cyan-dark: #144145;
    --theme-red-dark: #59201b;

    /* Lines */
    --border: #2a2a2a;

    /* Text */
    --text: #d8d8d8;
    --text-strong: #ffffff;
    --text-muted: #adb5bd;
    --text-dim: #8d8d8d;

    /* Links */
    --link: #ff9a62;
    --link-hover: #ffb48a;

    /* Semantic actions (secondary buttons only; the CTA is always orange) */
    --success: #198754;
    --success-hover: #157347;
    --danger: #dc3545;
    --danger-hover: #bb2d3b;

    /* Call-to-action glow (.btn-primary, .glow) */
    --glow: rgba(243, 111, 55, .55);
    --glow-strong: rgba(243, 111, 55, .75);

    /* Alerts */
    --alert-success-bg: #051b11;  --alert-success-text: #75b798;  --alert-success-border: #0f5132;
    --alert-danger-bg: #2c0b0e;   --alert-danger-text: #ea868f;   --alert-danger-border: #842029;
    --alert-info-bg: #032830;     --alert-info-text: #6edff6;     --alert-info-border: #087990;
    --alert-warning-bg: #332701;  --alert-warning-text: #ffda6a;  --alert-warning-border: #997404;

    /* Type */
    --font-sans: "Avenir LT Std", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --tracking: .14em;           /* letter-spacing for uppercase labels / buttons */

    /* Layout */
    --container-max: 1900px;
    --gutter: 1.5rem;
    --radius: 0.1rem;                 /* Editorial = square. Set e.g. .375rem to soften a project */
}


/* 2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { 
    background-color: var(--bg);
    -webkit-text-size-adjust: 100%; 
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
    background: radial-gradient( ellipse 80% 10% at 50% 0%, var(--bg-glow), transparent 100% ), var(--bg);
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); text-decoration: dotted;}

hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--border); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }


/* 3. TYPOGRAPHY
   h1-h3  light display type
   h4     small uppercase orange SECTION LABEL (use it to title panels / forms)
   h5-h6  plain sub-headings
   .h1-.h6 give any element (e.g. a <p>) the same look as the heading
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin: 0 0 .5rem;
    line-height: 1.2;
    color: var(--text-strong);
}

h1, h2, h3, .h1, .h2, .h3 { font-weight: 300; letter-spacing: -.01em; }

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.5rem; }

h4, .h4 {
    padding-bottom: .25rem;
    margin-bottom: 1rem;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

h5, .h5 { font-size: 1.1rem; font-weight: 500; color: var(--accent); font-style: italic;}
h6, .h6 { font-size: 1rem; font-weight: 500; color : var(--accent); font-style: italic;}

p { margin: 0 0 1rem; }

strong, b { font-weight: bolder; }

small, .small { font-size: .875em; }

/* Large intro paragraph: use for the first paragraph under the logo */
.lead {
    max-width: 34rem;
    margin-inline: auto;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-weight: 300;
    line-height: 1.35;
    color: var(--text-strong);
    text-wrap: balance;
}

mark {
    padding: .05em .25em;
    color: var(--on-brand);
    background-color: var(--accent);
}

abbr[title] { text-decoration: underline dotted; cursor: help; }

ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
ul ul, ul ol, ol ul, ol ol { margin-bottom: 0; }
ul { list-style-type: square; }
li::marker { color: var(--brand); }
.list-unstyled { padding-left: 0; list-style: none; }

dl { margin: 0 0 1rem; }
dt { font-weight: 700; color: var(--text-strong); }
dd { margin: 0 0 .5rem; }

blockquote {
    margin: 0 0 1rem;
    padding: .25rem 0 .25rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-strong);
    border-left: 3px solid var(--accent);
}
blockquote > :last-child { margin-bottom: 0; }

code, pre, kbd { font-family: var(--font-mono); font-size: .875em; }
code { color: var(--accent); }

pre {
    margin: 0 0 1rem;
    padding: 1rem;
    overflow-x: auto;
    color: var(--text-strong);
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
pre code { color: inherit; }

kbd {
    padding: .1em .45em;
    color: var(--text-strong);
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: var(--radius);
}


/* 4. LAYOUT: container + 12-column grid (subset of Bootstrap)
   ========================================================================== */
.container,
.container-narrow {
    width: 100%;
    margin-inline: auto;
    padding-inline: calc(var(--gutter) * .5);
}

.container { max-width: var(--container-max); }
.container-narrow { max-width: 50rem; }                  /* public / read-only views */
.container-flush { max-width: none; padding-inline: 0; } /* strips width + padding (use instead of inline style) */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(var(--gutter) * -.5);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-inline: calc(var(--gutter) * .5);
}

.col { flex: 1 0 0%; }

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}


/* 5. UTILITIES
   ========================================================================== */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.fw-bold { font-weight: 700 !important; }
.nowrap { white-space: nowrap; }

.center-block { display: block; margin-inline: auto; }
.mx-auto { margin-inline: auto !important; }
.w-100 { width: 100% !important; }

.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Orange call-to-action glow for anything that is not a button */
.glow { box-shadow: 0 0 1.25rem var(--glow); }


/* 6. COMPONENTS
   ========================================================================== */

/* ---- Buttons: square, uppercase, outlined.
        ONLY .btn-primary (the call to action) glows. One per view. ---- */
.btn {
    display: inline-block;
    padding: .5rem 1.1rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: var(--tracking);
    text-transform: uppercase;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    color: var(--text-strong);
    background-color: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s;
}

.btn:hover { color: var(--text-strong); }

.btn:disabled,
.btn.disabled { opacity: .65; pointer-events: none; }

.btn-sm { padding: .25rem .6rem; font-size: .75rem; }

.btn-primary,
.btn-brand {
    color: var(--on-brand);
    background-color: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 1.25rem var(--glow);
    transition: background-color .5s, border-color .5s, color .5s, box-shadow .2s;
}

.btn-primary:hover, .btn-primary:focus-visible,
.btn-brand:hover, .btn-brand:focus-visible {
    color: var(--bg);
    background-color: var(--accent);
    box-shadow: 0 0 2rem var(--glow-strong);

}

.btn-success { border-color: var(--success); }
.btn-success:hover { background-color: var(--success); border-color: var(--success); }

.btn-danger { border-color: var(--danger); }
.btn-danger:hover { background-color: var(--danger); border-color: var(--danger); }

.btn-outline:hover { background-color: var(--bg-raised); border-color: var(--text-muted); }

/* Button row: first item left, last item right; wraps (left-aligned) on narrow screens */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Utilities */
.justify-start { justify-content: flex-start !important; }
.justify-end   { justify-content: flex-end !important; }
.ms-auto { margin-inline-start: auto !important; }  /* push this item to the end */
.me-auto { margin-inline-end: auto !important; }    /* push the others to the end */

/* ---- Forms: underline-only fields ---- */
.form-label {
    display: inline-block;
    margin-bottom: .25rem;
    font-size: .8rem;
    letter-spacing: var(--tracking);
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font: inherit;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-strong);
    background-color: var(--bg-raised);
    border: 0;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 0 1.25rem var(--glow);
}

.form-select {
    padding-right: 1.75rem;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fd7e00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right .25rem center / 16px 12px;
    background-color: var(--bg-raised);
}
.form-select option { color: var(--text-muted); }

textarea.form-control { min-height: 6rem; resize: vertical; }

.form-control::placeholder { color: var(--text-muted); opacity: .7; }

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 2rem var(--glow-strong);
    outline: 0;
}

.form-control::file-selector-button {
    margin: 0 .75rem 0 0;
    padding: .375rem .75rem;
    font: inherit;
    font-size: .85rem;
    color: var(--text-strong);
    background-color: var(--rule);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s, color .15s, background-color .15s;
}

input[type="file"].form-control { font-size: 1rem; overflow: hidden; }

.form-control::file-selector-button:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Drag-and-drop target (JS toggles .dragover) */
[data-dropzone] {
    padding: 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, background-color .15s;
}

[data-dropzone].dragover {
    border-color: var(--accent);
    background-color: var(--bg-raised);
}

/* ---- Alerts: square with a left bar ---- */
.alert {
    padding: 1rem 1rem 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 0 solid transparent;
    border-left-width: 3px;
    border-radius: var(--radius);
}

/* ---- Icons: wireframe SVG symbols via <use>. Orange by default, sized by the surrounding text. ---- */
.icon {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    margin-right: .4em;
    vertical-align: -.2em;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

/* .glow on an SVG: follow the line, not the bounding box (box-shadow would draw a square) */
svg.glow {
    box-shadow: none;
    filter: drop-shadow(0 0 .4em var(--glow-strong)) drop-shadow(0 0 .1em var(--glow));
}

.alert-success { color: var(--alert-success-text); background-color: var(--alert-success-bg); border-color: var(--alert-success-border); }
.alert-danger  { color: var(--alert-danger-text);  background-color: var(--alert-danger-bg);  border-color: var(--alert-danger-border); }
.alert-info    { color: var(--alert-info-text);    background-color: var(--alert-info-bg);    border-color: var(--alert-info-border); }
.alert-warning { color: var(--alert-warning-text); background-color: var(--alert-warning-bg); border-color: var(--alert-warning-border); }
.alert .icon { color: inherit; }

/* ---- Card ---- */
.card {
    padding: 1rem;
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card > :last-child { margin-bottom: 0; }

/* ---- Badge ---- */
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    vertical-align: baseline;
    color: var(--on-brand);
    background-color: var(--accent);
    border-radius: var(--radius);
}

/* ---- Copy-to-clipboard: <button class="copy-link" data-copy="VALUE"> ---- */
.copy-link {
    padding: 0;
    font: inherit;
    color: var(--text);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color .3s ease;
}
.copy-link:hover { color: var(--link-hover); text-decoration: underline; }
.copy-link.copied { color: var(--alert-success-text); transition: color .3s ease; }
.copy-icon { transition: color .3s ease; }
.copy-link.copied .icon { color: inherit; }

/* ---- Tables: brand header = small orange caps over an orange rule ---- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text);
    vertical-align: top;
    border-collapse: collapse;
}

.table th,
.table td { padding: .5rem; }

.table thead th {
    text-align: inherit;
    vertical-align: bottom;
    font-size: .90rem;
    font-weight: 700;
    letter-spacing: var(--tracking);
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Solid orange fill for any element (".orange" kept as an alias) */
.bg-brand { background-color: var(--brand); color: var(--on-brand); }
.bg-accent { background-color: var(--accent); color: var(--on-brand); }

.table-bordered th,
.table-bordered td { border: 1px solid var(--border); }

.table-condensed th, .table-condensed td,
.table-sm th, .table-sm td { padding: .25rem .5rem; }

/* Hover overlay that works on top of any cell colour */
.table-hover tbody tr:hover > * { box-shadow: inset 0 0 0 9999px var(--hover-overlay); }


/* 7. PAGE FURNITURE
   ========================================================================== */
.site-header { margin-bottom: 1.5rem; text-align: center; padding-top: 1em; }

/* Inline link strip, e.g. a year switcher. Current item gets .current */
.link-strip { margin-bottom: 1rem; }
.link-strip a.current {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-strong);
}

/* CSS-only logo: <a class="logo"><strong>DENYER</strong>.PRO</a>
   The trailing square is drawn by ::after and scales with font-size. */
.logo {
    display: inline-block;
    margin: .5rem 0 1rem;
    font-size: 2.75em;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    color: var(--text-strong);
}
.logo:hover { color: var(--text-strong); }
.logo strong { font-weight: 800; }
.logo::after {
    content: "";
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-left: .2em;
    background-color: var(--brand);
}
.logo-sm { font-size: 1em; margin: 0; }
.logo-sm strong { font-weight: 700; }

.site-footer {
    margin-top: 3rem;
    padding: 1rem 3rem;
    text-align: center;
    font-size: .75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   8. DOMAIN-SPECIFIC: SHOOT CALENDAR                                 [START]
   --------------------------------------------------------------------------
   Used only by the shoot-dates calendar table. Not needed by other projects.
   To split out later, move everything between START and END into its own file
   (e.g. denyerpro-calendar.css) and load it after this one. Nothing in the
   core sections above depends on this block.

   Classes : tr.monthStart, tr.sundayRow, .DateCol / .col-date, .dateLink,
             .smallDate, td.danger / td.warning / td.info (availability),
             td.studio / td.comp / td.showcase / td.wedding (job type),
             .yearLinks (legacy alias of the core .link-strip)
   Tokens  : declared in the :root block below
   ========================================================================== */

:root {
    --bg-band: #222;          /* month row background */
    --rule: #444;             /* heavy dividers (month break, sunday underline) */
    --month-break: 15px;         /* thick top border on first row of a month */

    /* Availability status (table cells) */
    --status-danger-bg: #000000; /* X  - unavailable */
    --status-danger-text: var(--text-dim);
    --status-info-bg: #223c27;   /* Booked */
    --status-warning-bg: #4f3f20;/* ?  - tentative */

    /* Job type (table cells) */
    --type-studio: var(--theme-green-dark);
    --type-comp: var(--theme-teal-dark);
    --type-showcase: var(--theme-cyan-dark);
    --type-wedding: var(--theme-red-dark);
}

/* Row banding */
tr.monthStart {
    background-color: var(--bg-band);
    border-top: var(--month-break) solid var(--rule);
}
tr.sundayRow { border-bottom: 3px solid var(--rule); }

/* Column helpers */
.DateCol, .col-date { width: 16.5em; }
.dateLink { color: inherit; text-decoration: none; }
.dateLink:hover { color: inherit; }
.smallDate { font-size: .8em; }

/* Availability cells.
   The shoot-dates PHP puts BOTH the status class and the job-type class on every
   cell of a row, and the job-type rules below come later, so they win over
   danger/info. td.warning ("?" = tentative) must beat the job type, hence !important. */
td.danger { background-color: var(--status-danger-bg); color: var(--status-danger-text); }
td.warning { background-color: var(--status-warning-bg) !important; }
td.info { background-color: var(--status-info-bg); }

/* Job-type cells */
td.studio { background-color: var(--type-studio); }
td.comp { background-color: var(--type-comp); }
td.showcase { background-color: var(--type-showcase); }
td.wedding { background-color: var(--type-wedding); }

