/*
Theme Name: Jia Chen Lighting
Theme URI: https://jiachenlighting.com
Author: Jia Chen Lighting
Description: Custom luxury theme
Version: 1.0.0
Text Domain: jiachen-lighting
*/

/* ============================================================
       DESIGN TOKENS
       ============================================================ */
    :root {
      /* Surfaces */
      --bg-deep: #0a0907;
      --bg-elevated: #14110d;
      --bg-card: #1a1611;

      /* Gold accents */
      --gold-primary: #c9a875;
      --gold-bright: #e8c98c;
      --gold-muted: #8a7548;
      --gold-dim: #5a4a2e;

      /* Text */
      --text-primary: #ede4d2;
      --text-secondary: #a89880;
      --text-muted: #6b6052;

      /* Lines */
      --border: #2a241c;
      --border-strong: #3a3128;

      /* Type */
      --font-display: 'Cormorant Garamond', 'Georgia', serif;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

      /* Scale */
      --container: 1280px;
      --gutter: clamp(1.25rem, 3vw, 2.5rem);
      --section-py: clamp(5rem, 10vw, 9rem);

      /* Motion */
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* ============================================================
       RESET + BASE
       ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      font-weight: 300;
      line-height: 1.6;
      color: var(--text-primary);
      background: var(--bg-deep);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

    h1, h2, h3, h4 {
      font-family: var(--font-display);
      font-weight: 400;
      line-height: 1.15;
      letter-spacing: -0.01em;
    }

    .container {
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }

    /* ============================================================
       UTILITY
       ============================================================ */
    .eyebrow {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold-primary);
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
    }
    .eyebrow::before {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--gold-primary);
    }
    .display-xl {
      font-size: clamp(2.75rem, 6.5vw, 5.5rem);
      font-weight: 400;
      letter-spacing: -0.02em;
    }
    .display-lg {
      font-size: clamp(2.25rem, 5vw, 4rem);
    }
    .display-md {
      font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    }
    .lede {
      font-size: clamp(1.05rem, 1.4vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 60ch;
      line-height: 1.7;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem 2rem;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      border: 1px solid var(--gold-primary);
      color: var(--gold-primary);
      transition: all 0.4s var(--ease);
      background: transparent;
    }
    .btn:hover {
      background: var(--gold-primary);
      color: var(--bg-deep);
    }
    .btn-primary {
      background: var(--gold-primary);
      color: var(--bg-deep);
    }
    .btn-primary:hover {
      background: var(--gold-bright);
      border-color: var(--gold-bright);
    }

    /* ============================================================
       NAV
       ============================================================ */
    .nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 1.5rem 0;
      background: rgba(10, 9, 7, 0.7);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid transparent;
      transition: border-color 0.3s, padding 0.3s;
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-logo {
      font-family: var(--font-display);
      font-size: 1.4rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      color: var(--text-primary);
    }
    .nav-logo .mark {
      color: var(--gold-primary);
      font-style: italic;
    }
    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-secondary);
      transition: color 0.3s;
    }
    .nav-links a:hover { color: var(--gold-primary); }
    .nav-cta {
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold-primary);
      padding: 0.6rem 1.4rem;
      border: 1px solid var(--gold-primary);
      transition: all 0.3s;
    }
    .nav-cta:hover { background: var(--gold-primary); color: var(--bg-deep); }

    @media (max-width: 860px) {
      .nav-links { display: none; }
    }

    /* ============================================================
       HERO
       ============================================================ */
    .hero {
      min-height: 100vh;
      position: relative;
      display: flex;
      align-items: center;
      padding: 8rem 0 5rem;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(10, 9, 7, 0.92) 0%, rgba(10, 9, 7, 0.65) 50%, rgba(10, 9, 7, 0.4) 100%),
        radial-gradient(ellipse at 75% 50%, rgba(201, 168, 117, 0.15) 0%, transparent 60%),
        url('assets/images/hero-installed.jpg');
      background-size: cover;
      background-position: right center;
    }
    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 900px;
      animation: rise 1.2s var(--ease) both;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .hero h1 {
      margin: 1.5rem 0 2rem;
    }
    .hero h1 .accent {
      color: var(--gold-primary);
      font-style: italic;
      font-weight: 300;
    }
    .hero-meta {
      display: flex;
      gap: 3rem;
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
    }

    /* Direct Contact Strip — visible at first glance */
    .hero-contact-strip {
      display: flex;
      gap: 1.25rem;
      margin-top: 1.5rem;
      flex-wrap: wrap;
    }
    .hero-contact-item {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.85rem 1.25rem;
      background: rgba(201, 168, 117, 0.08);
      border: 1px solid rgba(201, 168, 117, 0.25);
      border-radius: 6px;
      text-decoration: none;
      color: inherit;
      transition: all 0.3s var(--ease);
      min-width: 240px;
    }
    .hero-contact-item:hover {
      background: rgba(201, 168, 117, 0.15);
      border-color: var(--gold-primary);
      transform: translateY(-2px);
      color: inherit;
    }
    .hero-contact-icon {
      width: 22px;
      height: 22px;
      color: var(--gold-primary);
      flex-shrink: 0;
    }
    .hero-contact-content {
      display: flex;
      flex-direction: column;
      line-height: 1.3;
    }
    .hero-contact-label {
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-muted);
    }
    .hero-contact-value {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--gold-primary);
      letter-spacing: 0.01em;
    }
    @media (max-width: 600px) {
      .hero-contact-item { min-width: 100%; }
      .hero-contact-strip { flex-direction: column; gap: 0.75rem; }
    }
    .hero-meta-item {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }
    .hero-meta-num {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 300;
      color: var(--gold-primary);
      line-height: 1;
    }
    .hero-meta-label {
      font-size: 0.7rem;
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    /* ============================================================
       SECTION: HERITAGE
       ============================================================ */
    .heritage {
      padding: var(--section-py) 0;
      background: var(--bg-elevated);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .heritage-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: clamp(3rem, 6vw, 6rem);
      align-items: center;
    }
    .heritage-figure {
      font-family: var(--font-display);
      font-size: clamp(8rem, 18vw, 16rem);
      font-weight: 300;
      line-height: 0.9;
      color: var(--gold-primary);
      letter-spacing: -0.04em;
    }
    .heritage-figure-label {
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-top: 1.5rem;
    }
    .heritage-quote {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.4;
      color: var(--text-primary);
      padding-left: 1.5rem;
      border-left: 2px solid var(--gold-primary);
      margin-bottom: 2rem;
    }
    @media (max-width: 760px) {
      .heritage-grid { grid-template-columns: 1fr; }
      .heritage-figure { text-align: left; }
    }

    /* ============================================================
       SECTION: CAPABILITIES
       ============================================================ */
    .capabilities {
      padding: var(--section-py) 0;
    }
    .section-head {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 5rem;
    }
    .section-head .eyebrow {
      margin-bottom: 1.25rem;
      justify-content: center;
    }
    .section-head .eyebrow::after {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--gold-primary);
    }
    .section-head .lede {
      margin: 1.5rem auto 0;
    }
    .caps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }
    .cap {
      background: var(--bg-deep);
      padding: 3rem 2rem;
      transition: background 0.4s;
    }
    .cap:hover { background: var(--bg-card); }
    .cap-num {
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--gold-primary);
      letter-spacing: 0.2em;
      margin-bottom: 1.5rem;
    }
    .cap h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    .cap p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.65;
    }

    /* ============================================================
       SECTION: COLLECTIONS
       ============================================================ */
    .collections {
      padding: var(--section-py) 0;
      background: var(--bg-elevated);
      border-top: 1px solid var(--border);
    }
    .coll-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }
    .coll {
      position: relative;
      aspect-ratio: 3 / 4;
      overflow: hidden;
      background: var(--bg-card);
      cursor: pointer;
      group: true;
    }
    .coll-img {
      position: absolute;
      inset: 0;
      background-color: var(--bg-card);
      background-size: cover;
      background-position: center;
      transition: transform 0.8s var(--ease);
    }
    .coll-img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 30%, rgba(10, 9, 7, 0.6) 65%, rgba(10, 9, 7, 0.92) 100%);
    }
    .coll:hover .coll-img { transform: scale(1.05); }
    .coll-svg {
      width: 60%;
      height: 60%;
      opacity: 0.45;
      color: var(--gold-primary);
    }
    .coll-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
      z-index: 2;
    }
    .coll-num {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      color: var(--gold-primary);
      margin-bottom: 0.5rem;
    }
    .coll-title {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }
    .coll-desc {
      color: var(--text-secondary);
      font-size: 0.9rem;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.5s var(--ease), opacity 0.5s;
    }
    .coll:hover .coll-desc {
      max-height: 100px;
      opacity: 1;
    }
    /* IMAGE SWAP NOTE: Replace .coll-img background with real product image.
       Recommended: 800×1067 (3:4), JPEG/WebP, ≤200 KB. */

    /* ============================================================
       SECTION: PROJECTS
       ============================================================ */
    .projects { padding: var(--section-py) 0; }
    .proj {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 0;
      margin-bottom: 4rem;
      border: 1px solid var(--border);
    }
    .proj-img {
      aspect-ratio: 16 / 10;
      background-color: var(--bg-card);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .proj-img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(10,9,7,0.35) 0%, rgba(10,9,7,0.15) 100%);
    }
    .proj-img-label {
      font-family: var(--font-display);
      font-size: 0.9rem;
      font-style: italic;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }
    .proj-body {
      padding: 3rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: var(--bg-elevated);
    }
    .proj-meta {
      display: flex;
      gap: 2rem;
      margin-bottom: 1.5rem;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold-primary);
    }
    .proj h3 { font-size: 2rem; margin-bottom: 1rem; }
    .proj p { color: var(--text-secondary); }
    @media (max-width: 760px) {
      .proj { grid-template-columns: 1fr; }
    }
    /* IMAGE SWAP NOTE: Replace .proj-img background with real installation photo. */

    /* ============================================================
       SECTION: PROCESS
       ============================================================ */
    .process {
      padding: var(--section-py) 0;
      background: var(--bg-elevated);
      border-top: 1px solid var(--border);
    }
    .process-timeline {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0;
      position: relative;
    }
    .process-timeline::before {
      content: '';
      position: absolute;
      top: 18px;
      left: 9%;
      right: 9%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
    }
    .step {
      text-align: center;
      padding: 0 0.5rem;
      position: relative;
    }
    .step-dot {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-elevated);
      border: 1px solid var(--gold-primary);
      margin: 0 auto 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 0.85rem;
      color: var(--gold-primary);
      position: relative;
      z-index: 2;
    }
    .step h4 {
      font-size: 1.15rem;
      margin-bottom: 0.75rem;
    }
    .step p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.55;
    }
    @media (max-width: 760px) {
      .process-timeline { grid-template-columns: 1fr; gap: 2.5rem; }
      .process-timeline::before { display: none; }
    }

    /* ============================================================
       SECTION: QUALITY
       ============================================================ */
    .quality { padding: var(--section-py) 0; }
    .quality-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      margin-top: 4rem;
    }
    .cert {
      padding: 2.5rem 1.5rem;
      text-align: center;
      border: 1px solid var(--border);
      background: var(--bg-card);
      transition: border-color 0.3s, transform 0.3s;
    }
    .cert:hover { border-color: var(--gold-primary); transform: translateY(-4px); }
    .cert-mark {
      font-family: var(--font-display);
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--gold-primary);
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }
    .cert-name {
      font-size: 0.78rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-secondary);
    }
    

    /* ============================================================
       SECTION: CONTACT
       ============================================================ */
    .contact {
      padding: var(--section-py) 0;
      background: var(--bg-elevated);
      border-top: 1px solid var(--border);
    }
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: clamp(3rem, 6vw, 5rem);
    }
    .contact-info h2 { margin: 1.5rem 0 2rem; }
    .contact-block {
      margin-bottom: 2.5rem;
    }
    .contact-block-label {
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold-primary);
      margin-bottom: 0.75rem;
    }
    .contact-block-value {
      font-size: 1rem;
      color: var(--text-primary);
      line-height: 1.7;
    }
    .contact-block-value a:hover { color: var(--gold-primary); }

    .form {
      background: var(--bg-deep);
      border: 1px solid var(--border);
      padding: clamp(2rem, 4vw, 3rem);
    }
    .form h3 {
      font-size: 1.75rem;
      margin-bottom: 0.5rem;
    }
    .form-intro {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-bottom: 2rem;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }
    .form-field { margin-bottom: 1.5rem; }
    .form-field label {
      display: block;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
    }
    .form-field input,
    .form-field select,
    .form-field textarea {
      width: 100%;
      padding: 0.85rem 0;
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--border-strong);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 0.95rem;
      transition: border-color 0.3s;
    }
    .form-field textarea {
      resize: vertical;
      min-height: 100px;
    }
    .form-field input:focus,
    .form-field select:focus,
    .form-field textarea:focus {
      outline: 0;
      border-bottom-color: var(--gold-primary);
    }
    .form-field select option { background: var(--bg-deep); }
    @media (max-width: 760px) {
      .contact-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; gap: 0; }
    }

    /* ============================================================
       FOOTER
       ============================================================ */
    footer {
      padding: 4rem 0 2rem;
      background: var(--bg-deep);
      border-top: 1px solid var(--border);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }
    .footer-brand .nav-logo {
      font-size: 1.6rem;
      margin-bottom: 1rem;
      display: inline-block;
    }
    .footer-brand p {
      color: var(--text-secondary);
      font-size: 0.9rem;
      max-width: 320px;
    }
    .footer-col h5 {
      font-family: var(--font-body);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold-primary);
      margin-bottom: 1.25rem;
    }
    .footer-col ul { list-style: none; }
    .footer-col li {
      margin-bottom: 0.75rem;
    }
    .footer-col a {
      color: var(--text-secondary);
      font-size: 0.9rem;
      transition: color 0.3s;
    }
    .footer-col a:hover { color: var(--gold-primary); }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-bottom p {
      color: var(--text-muted);
      font-size: 0.82rem;
    }
    @media (max-width: 760px) {
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
    }

    /* ============================================================
       FLOATING WHATSAPP BUTTON
       ============================================================ */
    .wa-float {
      position: fixed;
      right: 1.5rem;
      bottom: 1.5rem;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: #25D366;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
      z-index: 999;
      transition: transform 0.3s var(--ease), box-shadow 0.3s;
      text-decoration: none;
    }
    .wa-float:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
      color: #fff;
    }
    .wa-float svg {
      width: 34px;
      height: 34px;
    }
    .wa-float-label {
      position: absolute;
      right: 76px;
      top: 50%;
      transform: translateY(-50%);
      background: var(--bg-card);
      color: var(--text-primary);
      padding: 0.5rem 1rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      white-space: nowrap;
      font-size: 0.85rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .wa-float:hover .wa-float-label {
      opacity: 1;
    }
    @media (max-width: 600px) {
      .wa-float { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
      .wa-float svg { width: 28px; height: 28px; }
      .wa-float-label { display: none; }
    }

    /* ============================================================
       ACCESSIBILITY
       ============================================================ */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
      html { scroll-behavior: auto; }
    }
    :focus-visible {
      outline: 2px solid var(--gold-primary);
      outline-offset: 4px;
    }
