/*
Theme Name: rym.dsgn
Theme URI: https://rym.design
Author: rym.dsgn
Description: Dark, pattern-led theme for rym.dsgn shadow lamps. Gallery of pieces, custom order form that emails you and keeps every inquiry in the dashboard, and WooCommerce-ready for a future shop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rym-dsgn
*/
  :root {
    box-sizing: border-box;
    --bg: #141019;
    --bg-panel: #1D1723;
    --bg-panel-2: #241C2C;
    --line: #362C3E;
    --amber: #E8A857;
    --amber-dim: #B8834A;
    --copper: #C97B4F;
    --text: #F1EAE0;
    --text-dim: #A79CAE;
    --text-faint: #6E637A;
    --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  * { box-sizing: border-box; }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; }
  img, svg { max-width: 100%; }

  /* ---------- background texture ---------- */
  .grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
    background-image: radial-gradient(circle at 20% 15%, rgba(232,168,87,0.10), transparent 45%),
                       radial-gradient(circle at 85% 75%, rgba(201,123,79,0.08), transparent 40%);
  }

  /* ---------- nav ---------- */
  header.nav {
    position: sticky; top: 0; top: env(safe-area-inset-top, 0px);
    z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px clamp(20px, 5vw, 56px);
    background: rgba(20,16,25,0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-family: var(--sans); font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
    color: var(--text); text-decoration: none; display: inline-flex; align-items: center;
  }
  .brand-logo { height: 40px; width: auto; display: block; }
  .brand-logo-footer { height: 34px; opacity: 0.9; }
  nav.links button.hidden-init { display: none; }

  nav.links { display: flex; gap: clamp(18px, 3vw, 34px); align-items: center; }
  nav.links button {
    background: none; border: none; color: var(--text-dim); font-family: var(--sans);
    font-size: 15px; font-weight: 500; cursor: pointer; padding: 6px 0; position: relative;
  }
  nav.links button.active { color: var(--text); }
  nav.links button.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--amber);
  }
  nav.links button.cta {
    color: var(--bg); background: var(--amber); padding: 9px 18px; border-radius: 4px; font-weight: 600;
  }

  main { position: relative; z-index: 1; }
  section { padding: 0 clamp(20px, 5vw, 56px); }

  /* ---------- hero (full-bleed banner, text overlaid) ---------- */
  .hero {
    position: relative;
    width: 100vw; left: 50%; margin-left: -50vw;
    min-height: min(92vh, 820px);
    display: flex; align-items: flex-end;
    overflow: hidden;
    padding: 0;
  }
  .hero-slider {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: var(--bg-panel);
  }
  .hero-slider img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.4s ease;
  }
  .hero-slider img.active { opacity: 1; }
  .hero-overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
      linear-gradient(180deg, rgba(20,16,25,0.15) 0%, rgba(20,16,25,0.1) 35%, rgba(20,16,25,0.72) 82%, rgba(20,16,25,0.88) 100%),
      linear-gradient(90deg, rgba(20,16,25,0.55) 0%, rgba(20,16,25,0.15) 48%, rgba(20,16,25,0) 70%);
  }
  .hero-slider-dots {
    position: absolute; right: clamp(20px, 5vw, 56px); bottom: 28px; z-index: 3;
    display: flex; gap: 8px;
  }
  .hero-slider-dots button {
    width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
    background: rgba(241,234,224,0.4); cursor: pointer; transition: background .2s ease, transform .2s ease;
  }
  .hero-slider-dots button.active { background: var(--amber); transform: scale(1.3); }

  .hero-copy {
    position: relative; z-index: 2;
    padding: 0 clamp(20px, 5vw, 56px) clamp(44px, 9vh, 92px);
    max-width: 760px;
  }
  .hero-copy h1 {
    font-family: var(--sans); font-weight: 800; font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em;
    margin: 0 0 22px; letter-spacing: -0.01em; color: var(--text);
  }
  .hero-copy h1 em { color: var(--amber); font-style: normal; }
  .hero-copy p.lede {
    font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 46ch; margin: 0 0 34px;
  }
  .hero-copy .actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 4px;
    font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: transform .15s ease;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--amber); color: #1A1410; }
  .btn-ghost { background: rgba(20,16,25,0.35); color: var(--text); border-color: rgba(241,234,224,0.35); backdrop-filter: blur(4px); }

  /* ---------- section headers ---------- */
  .section-head { max-width: 60ch; margin: 0 0 40px; }
  .eyebrow { font-size: 14px; color: var(--copper); font-weight: 600; margin: 0 0 8px; }
  .section-head h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; letter-spacing: -0.01em; }
  .section-head p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin: 0; }

  .work { padding-top: 110px; padding-bottom: 40px; }

  /* responsive gallery */
  .gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;
  }
  .piece {
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .piece-art { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #171220; position: relative; overflow: hidden; }
  .piece-art svg { width: 62%; }
  .piece-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
  .piece-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
  .piece-art.has-video:hover video, .piece-art.has-video.is-active video { opacity: 1; }
  .piece-art.has-video:hover img, .piece-art.has-video.is-active img { opacity: 0; }
  .piece-art.has-video::after {
    content: '◎ hover to see structure'; position: absolute; left: 10px; bottom: 10px; z-index: 2;
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; color: rgba(241,234,224,0.75);
    background: rgba(20,16,25,0.55); padding: 4px 8px; border-radius: 3px; pointer-events: none;
    opacity: 1; transition: opacity .25s ease;
  }
  .piece-art.has-video:hover::after, .piece-art.has-video.is-active::after { opacity: 0; }
  .piece-info { padding: 16px 18px 18px; }
  .piece-info h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin: 0 0 4px; letter-spacing: -0.005em; }
  .piece-info p { margin: 0; font-size: 13.5px; color: var(--text-faint); }

  .placeholder-note {
    margin-top: 26px; font-size: 14px; color: var(--text-faint); font-style: normal;
  }

  /* ---------- about ---------- */
  .about { padding-top: 110px; padding-bottom: 40px; }
  .about-head { max-width: 68ch; margin-bottom: 40px; }
  .about h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 20px; letter-spacing: -0.01em; }
  .about p { color: var(--text-dim); font-size: 16.5px; line-height: 1.7; margin: 0; }
  .about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat {
    border: 1px solid var(--line); border-radius: 8px; padding: 20px 16px;
    background: var(--bg-panel); display: flex; flex-direction: column; gap: 10px;
    min-width: 0;
  }
  .stat-icon { width: 40px; height: 40px; }
  .stat .num { font-family: var(--sans); font-weight: 800; font-size: 30px; line-height: 1; }
  .stat .label { font-size: 13.5px; color: var(--text-faint); line-height: 1.5; }

  /* ---------- process ---------- */
  .process { padding-top: 110px; padding-bottom: 120px; }
  .steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps::before {
    content: ''; position: absolute; top: 44px; left: calc(12.5% + 6px); right: calc(12.5% + 6px);
    height: 0; border-top: 1px dashed var(--line); z-index: 0;
  }
  .step {
    position: relative; z-index: 1; background: var(--bg-panel); border: 1px solid var(--line);
    border-radius: 8px; padding: 26px 20px 24px;
  }
  .step-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 50%; margin-bottom: 16px;
  }
  .step-icon svg { width: 26px; height: 26px; }
  .step-num { display: block; font-size: 12px; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 6px; font-weight: 600; }
  .step h4 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--amber); }
  .step p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.55; }

  /* ---------- story ---------- */
  .story { padding-top: 40px; padding-bottom: 130px; }
  .story-inner {
    max-width: 780px; margin: 0 auto; text-align: center; padding: 56px clamp(24px, 5vw, 64px);
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px;
  }
  .story-inner .eyebrow { }
  .story-inner h2 { font-family: var(--sans); font-weight: 800; font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 20px; letter-spacing: -0.01em; }
  .story-inner p { color: var(--text-dim); font-size: 16px; line-height: 1.75; margin: 0 auto 16px; max-width: 62ch; }
  .story-link {
    display: inline-block; margin-top: 14px; color: var(--amber); font-size: 14.5px; font-weight: 600;
    text-decoration: none; border-bottom: 1px solid var(--amber-dim); padding-bottom: 2px;
  }
  .story-link:hover { border-color: var(--amber); }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--line); padding: 40px clamp(20px, 5vw, 56px);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  }
  footer .brand { font-size: 20px; }
  footer .foot-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--text-dim); }
  footer .foot-links a:hover { color: var(--amber); }
  footer .copy { width: 100%; font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

  /* ---------- order page ---------- */
  .order-hero { padding-top: 80px; padding-bottom: 40px; max-width: 70ch; }
  .order-hero .eyebrow { }
  .order-hero h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(36px, 5vw, 54px); margin: 0 0 16px; letter-spacing: -0.015em; }
  .order-hero p { color: var(--text-dim); font-size: 17px; line-height: 1.65; max-width: 58ch; }

  .category-tabs { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 28px; }
  .category-tab {
    background: var(--bg-panel); border: 1px solid var(--line); color: var(--text-dim);
    font-family: var(--sans); font-size: 14.5px; font-weight: 600; padding: 9px 18px;
    border-radius: 999px; cursor: pointer;
  }
  .category-tab.active { background: var(--amber); color: var(--bg); border-color: var(--amber); }

  .axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 60px; }
  .axis { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
  .axis h4 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--copper); }
  .axis p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

  .order-form-wrap { padding-bottom: 120px; display: grid; grid-template-columns: 1fr; gap: 0; }
  form.order-form {
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 8px;
    padding: clamp(24px, 4vw, 44px); max-width: 780px;
  }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
  .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
  .field label { font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
  .field input, .field select, .field textarea {
    background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 5px; color: var(--text);
    font-family: var(--sans); font-size: 15px; padding: 11px 13px; outline: none;
  }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
  .field textarea { resize: vertical; min-height: 110px; }
  .order-form .submit-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
  .order-form button[type="submit"] { border: none; }
  .form-note { font-size: 13px; color: var(--text-faint); }
  .confirm {
    display: none; margin-top: 22px; padding: 16px 18px; border-radius: 6px;
    background: rgba(232,168,87,0.1); border: 1px solid var(--amber-dim); font-size: 14.5px; color: var(--text);
  }
  .confirm.show { display: block; }
  .choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
  .choice-pill {
    background: var(--bg-panel-2); border: 1px solid var(--line); color: var(--text-dim);
    font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 9px 16px;
    border-radius: 999px; cursor: pointer; transition: all .15s ease; user-select: none;
  }
  .choice-pill:hover { border-color: var(--amber-dim); color: var(--text); }
  .choice-pill.selected { background: var(--amber); color: var(--bg); border-color: var(--amber); }
  .choice-pill.error { border-color: #d9634a; }
  .structure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px,1fr)); gap: 8px; }
  .structure-tile {
    background: var(--bg-panel-2); border: 1px solid var(--line); color: var(--text-dim);
    font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 10px 8px;
    border-radius: 5px; cursor: pointer; text-align: center; transition: all .15s ease; user-select: none;
  }
  .structure-tile:hover { border-color: var(--amber-dim); color: var(--text); }
  .structure-tile.selected { background: var(--amber); color: var(--bg); border-color: var(--amber); }
  .field-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.5; }
  .field-sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
  .field-sub.is-hidden { display: none; }
  .field-section-title {
    font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--copper); margin: 30px 0 14px; padding-top: 22px; border-top: 1px solid var(--line);
  }


  /* ---------- focus visibility ---------- */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--amber); outline-offset: 2px;
  }

  /* ---------- mobile nav ---------- */
  .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 5px; color: var(--text); padding: 8px 10px; }

  @media (max-width: 880px) {
    .hero { min-height: min(78vh, 620px); }
    .hero-copy { padding-bottom: 36px; max-width: 100%; }
    .hero-copy p.lede { max-width: 100%; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .axes { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr; }
    nav.links .nav-text { display: none; }
  }
  @media (max-width: 560px) {
    .gallery { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .axes { grid-template-columns: 1fr; }
  }

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

/* ---------- WordPress additions ---------- */
nav.links a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; }
nav.links a:hover, nav.links .current-menu-item > a { color: var(--text); }
nav.links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 34px); align-items: center; }
nav.links a.cta { color: var(--bg); background: var(--amber); padding: 9px 18px; border-radius: 4px; font-weight: 600; }
.page-wrap { padding: 80px clamp(20px, 5vw, 56px) 120px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-wrap h1 { font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.015em; margin: 0 0 24px; }
.entry-content { color: var(--text-dim); font-size: 16.5px; line-height: 1.7; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); }
.entry-content a { color: var(--amber); }
.entry-content img { height: auto; border-radius: 6px; }
.entry-content input, .entry-content select, .entry-content textarea {
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-family: var(--sans); padding: 10px 12px;
}
.post-list article { border-bottom: 1px solid var(--line); padding: 24px 0; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.form-error { margin-top: 22px; padding: 16px 18px; border-radius: 6px; background: rgba(217,99,74,0.1); border: 1px solid #d9634a; font-size: 14.5px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
/* WooCommerce, for when a shop is added */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--amber) !important; color: #1A1410 !important; border-radius: 4px; font-family: var(--sans); font-weight: 600; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce div.product .product_title { color: var(--text); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--amber); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--bg-panel); color: var(--text); border-top-color: var(--amber); }
.woocommerce table.shop_table { border-color: var(--line); }
