/*
Theme Name: Cham Silk Theme
Theme URI: https://example.com/
Author: Cham Silk
Description: Custom single-page theme for Cham Silk website.
Version: 1.0
*/


  :root {
    --gold: #C9A84C;
    --gold-light: #E8CC7A;
    --deep: #0D0907;
    --burgundy: #5C1A1A;
    --cream: #F5EDD8;
    --silk: #E8D5A3;
    --moss: #2C3520;
    --text: #1A1208;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--deep);
    color: var(--cream);
    font-family: 'Cinzel', serif;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, rgba(13,9,7,0.95), transparent);
  }
  .nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
  }
  .nav-links a:hover { opacity: 1; color: var(--gold); }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    display: flex; flex-direction: column; justify-content: center;
    padding: 10rem 5rem 6rem 6rem;
    position: relative; z-index: 2;
  }

  .hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
  }

  .hero-title em {
    font-style: italic;
    color: var(--gold-light);
  }

  .hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--silk);
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
    margin-bottom: 3rem;
  }

  .hero-cta {
    display: flex; gap: 1.5rem; align-items: center;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
  }

  .btn-primary {
    padding: 1rem 2.5rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.4s, color 0.4s;
  }
  .btn-primary:hover { background: var(--gold); color: var(--deep); }

  .btn-ghost {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  .btn-ghost:hover { opacity: 1; }

  .hero-right {
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1.5s 0.2s forwards;
  }

  .hero-pattern {
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(201,168,76,0.07) 8px,
        rgba(201,168,76,0.07) 9px
      ),
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(201,168,76,0.05) 8px,
        rgba(201,168,76,0.05) 9px
      );
  }

  .hero-silk-visual {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }

  .silk-mandala {
    width: 420px; height: 420px;
    position: relative;
    animation: rotateSlow 60s linear infinite;
  }

  .silk-mandala svg {
    width: 100%; height: 100%;
  }

  .hero-stat-band {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex;
    border-top: 1px solid rgba(201,168,76,0.2);
    background: rgba(13,9,7,0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
  }

  .stat-item {
    flex: 1;
    padding: 1.8rem;
    border-right: 1px solid rgba(201,168,76,0.15);
    text-align: center;
  }
  .stat-item:last-child { border-right: none; }
  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
  }
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-top: 0.3rem;
  }

  /* ── MARQUEE ── */
  .marquee-band {
    background: var(--gold);
    color: var(--deep);
    overflow: hidden;
    padding: 0.9rem 0;
    white-space: nowrap;
  }
  .marquee-inner {
    display: inline-flex;
    animation: marquee 20s linear infinite;
  }
  .marquee-inner span {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin: 0 3rem;
  }

  /* ── STORY SECTION ── */
  #story {
    padding: 8rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8rem;
    position: relative;
  }

  #story::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }

  .story-left {
    position: sticky;
    top: 10rem;
    height: fit-content;
  }

  .section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .section-label::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
  }

  .section-title em {
    font-style: italic;
    color: var(--gold-light);
  }

  .story-right { display: flex; flex-direction: column; gap: 3rem; }

  .story-card {
    padding: 2.5rem;
    border: 1px solid rgba(201,168,76,0.15);
    position: relative;
    transition: border-color 0.4s;
  }

  .story-card:hover { border-color: rgba(201,168,76,0.5); }

  .story-card::before {
    content: attr(data-num);
    position: absolute;
    top: -1.5rem; left: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.08;
    line-height: 1;
  }

  .story-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .story-card-text {
    font-size: 1rem;
    line-height: 1.9;
    opacity: 0.8;
    font-weight: 300;
  }

  /* ── CRAFT SECTION ── */
  #craft {
    padding: 8rem 6rem;
    background: #0A0806;
    position: relative;
    overflow: hidden;
  }

  .craft-header {
    text-align: center;
    margin-bottom: 6rem;
  }

  .craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .craft-cell {
    padding: 4rem 3rem;
    background: rgba(201,168,76,0.03);
    border: 1px solid rgba(201,168,76,0.1);
    transition: background 0.4s;
    text-align: center;
  }

  .craft-cell:hover { background: rgba(201,168,76,0.08); }

  .craft-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    opacity: 0.6;
  }

  .craft-cell-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--gold-light);
  }

  .craft-cell-text {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.65;
  }

  /* ── PRODUCTS ── */
  #products {
    padding: 8rem 6rem;
    position: relative;
  }

  .products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .product-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s;
  }

  .product-card:hover { transform: translateY(-8px); }

  .product-visual {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(92,26,26,0.3), rgba(44,53,32,0.3));
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
  }

  .product-visual::before {
    content: '';
    position: absolute; inset: 0;
    background:
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 12px,
        rgba(201,168,76,0.06) 12px,
        rgba(201,168,76,0.06) 13px
      ),
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 12px,
        rgba(201,168,76,0.06) 12px,
        rgba(201,168,76,0.06) 13px
      );
  }

  .product-visual svg {
    opacity: 0.5;
    z-index: 1;
  }

  .product-badge {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: var(--gold);
    color: var(--deep);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
  }

  .product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
  }

  .product-desc {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.55;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
  }

  .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold);
  }

  .product-buy {
    background: none;
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .product-buy:hover { background: var(--gold); color: var(--deep); }

  /* ── MISSION ── */
  #mission {
    padding: 8rem 6rem;
    background: linear-gradient(135deg, var(--burgundy) 0%, #1a0a0a 50%, var(--moss) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  #mission::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at center, rgba(201,168,76,0.1) 0%, transparent 70%);
  }

  .mission-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative; z-index: 1;
    color: var(--silk);
  }

  .mission-pillars {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative; z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(201,168,76,0.2);
  }

  .pillar {
    flex: 1;
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(201,168,76,0.2);
  }
  .pillar:last-child { border-right: none; }

  .pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
  }

  .pillar-title {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
  }

  .pillar-text {
    font-size: 0.82rem;
    line-height: 1.7;
    opacity: 0.65;
  }

  /* ── CONTACT ── */
  #contact {
    padding: 8rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    position: relative;
  }

  #contact::before {
    content: '';
    position: absolute; top: 0; left: 6rem; right: 6rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }

  .contact-info { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; }

  .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201,168,76,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-size: 0.9rem;
  }

  .contact-detail-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
  }

  .contact-detail-value {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.75;
  }

  .contact-detail-value a {
    color: inherit;
    text-decoration: none;
  }
  .contact-detail-value a:hover { color: var(--gold); }

  .locations-grid { display: flex; flex-direction: column; gap: 1.5rem; }

  .location-card {
    padding: 1.8rem 2rem;
    border: 1px solid rgba(201,168,76,0.15);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: border-color 0.3s;
  }
  .location-card:hover { border-color: rgba(201,168,76,0.4); }

  .location-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 0.5rem;
    flex-shrink: 0;
  }

  .location-name {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
  }

  .location-address {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
  }

  /* ── FOOTER ── */
  footer {
    background: #060504;
    padding: 3rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(201,168,76,0.1);
  }

  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--gold);
  }

  .footer-copy {
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 0.1em;
  }

  .footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.5;
  }

  /* ── SCROLL DECORATION ── */
  .ornament {
    text-align: center;
    padding: 2rem;
    color: var(--gold);
    opacity: 0.3;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    .nav-links { gap: 1.5rem; }
    #hero { grid-template-columns: 1fr; }
    .hero-left { padding: 8rem 2.5rem 4rem; }
    .hero-right { display: none; }
    #story, #contact { grid-template-columns: 1fr; gap: 4rem; padding: 5rem 2.5rem; }
    .story-left { position: static; }
    #craft, #products, #mission { padding: 5rem 2.5rem; }
    .craft-grid, .product-grid { grid-template-columns: 1fr; }
    .mission-pillars { flex-direction: column; }
    .pillar { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.2); }
    footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem; }
    .hero-stat-band { flex-wrap: wrap; }
    .products-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  }

/* ===== IMPROVED MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .hero-left {
    padding: 7rem 1.5rem 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .silk-mandala {
    width: 260px;
    height: 260px;
  }

  #story,
  #craft,
  #products,
  #mission,
  #contact {
    padding: 4rem 1.5rem;
  }

  .story-card {
    padding: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-visual img,
  .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-name {
    font-size: 1.4rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .craft-cell {
    padding: 2rem 1.5rem;
  }

  #contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .location-card {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}


/* MOBILE NAVBAR */
.menu-toggle{
  display:none;
  font-size:1.8rem;
  color:var(--gold);
  cursor:pointer;
}

@media (max-width:768px){

  nav{
    padding:1rem 1.5rem;
    flex-wrap:wrap;
  }

  .menu-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:#0D0907;
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:2rem 0;
    display:none;
  }

  .nav-links.active{
    display:flex;
  }

}


/* ===== Luxury Sticky Navbar ===== */
nav.scrolled{
  background:#0D0907;
  box-shadow:0 4px 20px rgba(0,0,0,0.5);
  transition:all .4s ease;
}



/* ===== Smooth Mobile Menu Animation ===== */
.nav-links{
  transition:max-height .4s ease;
}

.nav-links.mobile{
  max-height:0;
  overflow:hidden;
}

.nav-links.mobile.active{
  max-height:400px;
}


