/* =============================================================================
   TENANT: NiMar Auction - nimar.weauction.nl
   Embryo auction, Romania - live & online

   DESIGN CONCEPT - "Golden hour"
   Taken from the NiMar logo and the "Embryo's from class damlines" banner:
   jumping horses in sunset haze, a sweeping orange band, refined serif capitals
   with wide letter-spacing, and a soft peach ground.

     NiMar orange   #EE7719   horse silhouette, swoosh       -> highlights, ornaments
     Burnt orange   #B85200   darkened for AA with white     -> buttons, links, active states
     Espresso       #2B1A10   the dark tones of the banner   -> top bar, footer, hero shade
     Warm black     #1A0F08   the "NiMar" wordmark           -> text
     Peach          #FFDCC8   logo background                -> tints, section washes
     Cream          #FFF9F5   page background, so white cards float like the banner's light

     Display  Cormorant Garamond - the banner's elegant serif; lining figures for prices
     Body     Montserrat - clean geometric sans; small tracked capitals echo
              "LIVE & ONLINE - ROMANIA" on the banner

   Contrast (WCAG AA): white on #B85200 4.95:1, warm black on cream 18:1,
   muted #6B5A4E on cream 6.3:1, NiMar orange #EE7719 on espresso 5.8:1
   (footer headings), #F59A4A on espresso 7.6:1 (footer/top-bar hover).
   NiMar orange is never used for text or button fills on light backgrounds.

   STRUCTURE
   Part 1 - design tokens (the standard tenant variables).
   Part 2 - signature details. This sheet is loaded unlayered, so it wins over the
            portal's Tailwind layers. Rules target the portal's component tags
            (app-header, app-hero, ...) and its own named utilities
            (.bg-gradient-hero, .bg-gradient-accent, .shadow-card). If the portal
            markup changes, Part 2 simply stops matching and Part 1 still applies.
   ============================================================================= */


/* ---------------------------------------------------------------------------
   PART 1 - DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* TYPOGRAPHY */
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* ELEVATION - warm espresso shadow instead of neutral grey */
  --shadow-card: 0 4px 14px rgb(43 26 16 / 0.07), 0 1px 2px rgb(43 26 16 / 0.05);

  /* BASE COLORS - cream page, white cards */
  --background: #FFF9F5;
  --foreground: #1A0F08;

  /* SURFACES */
  --card: #FFFFFF;
  --card-foreground: #1A0F08;

  /* POPOVER SURFACES */
  --popover: #FFFFFF;
  --popover-foreground: #1A0F08;

  /* BRAND COLORS - espresso frames the page */
  --primary: #2B1A10;
  --primary-foreground: #FFFFFF;

  /* SECONDARY SURFACES - peach wash */
  --secondary: #FFEDE2;
  --secondary-foreground: #2B1A10;

  /* MUTED UI */
  --muted: #F7EEE7;
  --muted-foreground: #6B5A4E;

  /* ACCENT COLORS */
  --accent: #B85200;
  --accent-foreground: #FFFFFF;
  --accent-soft: #EE7719;            /* NiMar brand orange */
  --accent-strong: #8F3E05;          /* 7.3:1 with white */

  /* ALTERNATIVE ACCENT - burnt sienna from the banner haze */
  --accent-alt: #7A3A12;
  --accent-alt-foreground: #FFFFFF;

  /* FUNCTIONAL FEEDBACK COLORS - crimson kept well apart from the orange accent */
  --destructive: #B3261E;
  --destructive-foreground: #FFFFFF;
  --success: #1E7A45;
  --success-foreground: #FFFFFF;
  --info: #1F6FB2;
  --info-foreground: #FFFFFF;
  --warning: #E8A317;
  --warning-foreground: #2B1A10;

  /* FORM AND FOCUS COLORS */
  --border: #EEDFD4;
  --input: #E6D3C6;
  --ring: var(--accent);

  /* AUCTION STATUS COLORS */
  --status-live: var(--destructive);
  --status-active: var(--success);
  --status-upcoming: var(--info);

  /* SHAPE */
  --radius: 0.625rem;

  /* NiMar extras used by Part 2 */
  --nimar-orange: #EE7719;
  --nimar-orange-light: #F59A4A;
  --nimar-peach: #FFDCC8;
  --nimar-swoosh: linear-gradient(90deg, transparent, var(--nimar-orange) 18%, var(--accent) 82%, transparent);

  accent-color: var(--accent);        /* native checkboxes, radios, range inputs */
}


/* ---------------------------------------------------------------------------
   PART 2 - SIGNATURE DETAILS
   --------------------------------------------------------------------------- */

/* Base ----------------------------------------------------------------------- */
::selection {
  background: var(--nimar-peach);
  color: var(--foreground);
}

/* Cormorant has a small x-height: size-adjust it to sit level with Montserrat,
   and use lining figures so prices and dates line up. */
h1, h2, h3, h4,
.font-display {
  font-size-adjust: 0.47;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.005em;
}

/* Portal utilities, re-tuned to the warm palette */
.shadow-card {
  box-shadow: var(--shadow-card);
}
.shadow-card-hover {
  box-shadow: 0 10px 30px rgb(43 26 16 / 0.12);
}
.bg-gradient-accent {
  background: linear-gradient(135deg, #C25A06 0%, var(--accent) 45%, var(--accent-strong) 100%);
}
.shadow-accent {
  box-shadow: 0 6px 20px rgb(184 82 0 / 0.28);
}
a.bg-gradient-accent,
button.bg-gradient-accent {
  letter-spacing: 0.04em;
}

/* Header --------------------------------------------------------------------- */
/* Top bar: espresso with the orange swoosh running along its lower edge */
app-header > header > div:first-child {
  background-image: var(--nimar-swoosh);
  background-size: 100% 2px;
  background-position: bottom;
  background-repeat: no-repeat;
}
app-header > header > div:first-child a:not([href="/live"]):hover,
app-header > header > div:first-child a:not([href="/live"]):focus-visible {
  color: var(--nimar-orange-light);
}

/* Main navigation: wide-tracked capitals with an orange underline on hover/active */
app-header nav[aria-label="Main navigation"] a {
  position: relative;
  letter-spacing: 0.12em;
}
app-header nav[aria-label="Main navigation"] a::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nimar-orange), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
app-header nav[aria-label="Main navigation"] a:hover::after,
app-header nav[aria-label="Main navigation"] a[class~="text-[var(--accent)]"]::after {
  transform: scaleX(1);
}

/* Hero ----------------------------------------------------------------------- */
/* Frame the hero photo slightly above centre: keeps the riders' heads in view on wide
   screens and lets the photo's own bottom band fall away under our swoosh. */
app-hero > section {
  background-position: 50% 28%;
}
/* Golden-hour overlay: sunlit glow top right, settling into espresso at the bottom */
app-hero .bg-gradient-hero {
  background:
    radial-gradient(ellipse 70% 90% at 78% 10%, rgb(238 119 25 / 0.30), transparent 60%),
    linear-gradient(180deg, rgb(26 15 8 / 0.40) 0%, rgb(43 26 16 / 0.55) 55%, rgb(26 15 8 / 0.85) 100%);
}
app-hero h1 {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgb(26 15 8 / 0.55);
}
/* Subtitle as tracked capitals, like "LIVE & ONLINE - ROMANIA" on the banner */
app-hero h1 + p {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nimar-peach);
  text-shadow: 0 1px 12px rgb(26 15 8 / 0.6);
}
/* The orange band sweeping up to the right, as at the foot of the banner */
app-hero > section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23EE7719' stop-opacity='.15'/%3E%3Cstop offset='.45' stop-color='%23EE7719'/%3E%3Cstop offset='1' stop-color='%23B85200'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 52 C420 50 900 34 1440 6 L1440 20 C900 44 420 60 0 64 Z' fill='url(%23g)'/%3E%3Cpath d='M0 64 C420 60 900 44 1440 20 L1440 64 Z' fill='%23FFF9F5'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

/* Section headings ----------------------------------------------------------- */
/* Short orange swoosh under every home-page section title */
app-home h2::after,
app-how-to-bid h2::after,
app-contact-persons h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--nimar-swoosh);
}
/* "Auctions" is left-aligned, so its swoosh starts at the left */
app-home > section.container h2::after {
  margin-left: 0;
  background: linear-gradient(90deg, var(--nimar-orange), var(--accent) 60%, transparent);
}
/* Section subtitles as small tracked capitals */
app-home > section.container h2 + p,
app-how-to-bid h2 + p {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Peach-washed sections fade gently instead of a flat tint */
/* (mirrored, so the two consecutive sections meet without a seam) */
app-how-to-bid > section {
  background: linear-gradient(180deg, #FFF6F0 0%, #FFEEE4 100%);
}
app-contact-persons > section {
  background: linear-gradient(180deg, #FFEEE4 0%, #FFF6F0 100%);
}

/* How to bid ----------------------------------------------------------------- */
app-how-to-bid .shadow-card {
  box-shadow: inset 0 3px 0 var(--nimar-orange), var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
app-how-to-bid .shadow-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 3px 0 var(--nimar-orange), 0 12px 28px rgb(43 26 16 / 0.12);
}
/* Step numbers: sunset-orange medallions with a peach halo */
app-how-to-bid .shadow-card > div:first-child {
  background: linear-gradient(140deg, #D96A12 0%, var(--accent) 50%, var(--accent-strong) 100%);
  box-shadow: 0 0 0 6px var(--secondary), 0 8px 18px rgb(184 82 0 / 0.30);
}

/* Auction timeline ----------------------------------------------------------- */
app-auction-timeline .text-3xl {
  font-family: var(--font-display);
  font-size-adjust: 0.47;
  font-variant-numeric: lining-nums;
  color: var(--accent);
}
app-auction-timeline-card article {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
app-auction-timeline-card article:hover {
  border-color: rgb(238 119 25 / 0.45);
  box-shadow: 0 10px 28px rgb(43 26 16 / 0.10);
}
app-auction-timeline-card h3 {
  font-weight: 700;
}

/* Contact persons ------------------------------------------------------------ */
app-contact-persons img {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--nimar-orange);
}

/* Footer --------------------------------------------------------------------- */
/* Espresso with the last light of the sunset glowing in from the top right */
app-footer > footer {
  border-top: 0;
  background-image:
    var(--nimar-swoosh),
    radial-gradient(ellipse 55% 140% at 88% 0%, rgb(238 119 25 / 0.16), transparent 65%);
  background-size: 100% 2px, 100% 100%;
  background-position: top, center;
  background-repeat: no-repeat;
}
/* Column headings in NiMar orange (5.8:1 on espresso), tracked capitals */
app-footer h4 {
  font-size-adjust: none;
  color: var(--nimar-orange);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
app-footer lucide-icon {
  color: var(--nimar-orange);
}
app-footer a:hover,
app-footer a:focus-visible,
app-footer button:hover,
app-footer button:focus-visible {
  color: var(--nimar-orange-light);
}

/* Motion --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  app-header nav[aria-label="Main navigation"] a::after,
  app-how-to-bid .shadow-card,
  app-auction-timeline-card article {
    transition: none;
  }
  app-how-to-bid .shadow-card:hover {
    transform: none;
  }
}
