/*
Theme Name: Himanchal Trading
Theme URI: https://himanchaltrading.com
Author: Sapkota Technologies
Author URI: https://sapkotatechnologies.com
Description: Custom theme for Himanchal Trading Pvt. Ltd. — Nepal-based distributor for the Japanese beauty brands SENRA, NARIS and DHC.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: himanchaltrading
*/

/* ==========================================================================
   HIMANCHAL TRADING — design system
   Concept: a physical bridge between Japan and Nepal. Washi-paper warmth,
   ai-zome indigo structure, a single hanko-seal red used only where the
   client must act. Two authentically Japanese-designed typefaces carry the
   whole site instead of a Western serif+sans default pairing.
   ========================================================================== */


:root{
  /* --- color --- */
  --paper:        #F6F3EC;   /* washi cream — base ground */
  --paper-deep:   #EEE8DB;   /* deeper cream — alternating sections */
  --ink:          #221E19;   /* warm near-black — headlines, body */
  --ink-soft:     #5B5348;   /* secondary text */
  --indigo:       #2C3F52;   /* ai-zome indigo — structure, links, dark sections */
  --indigo-deep:  #1C2A37;   /* deepest indigo — footer, hero overlays */
  --seal:         #9B3B2C;   /* hanko-seal red — the one accent that asks for action */
  --seal-deep:    #7E2F22;
  --stone:        #CBC1AC;   /* hairline rule / border */
  --stone-soft:   #DED6C4;
  --gold:         #A9824A;   /* used only on the DHC brand mark (olive/oil heritage) */
  --sage:         #7C8A6E;   /* used only on the NARIS brand mark */
  --plum:         #8C5A63;   /* used only on the SENRA brand mark */
  --white:        #FFFFFF;

  /* --- type --- */
  --display: 'Shippori Mincho', serif;
  --body:    'Zen Kaku Gothic New', sans-serif;

  /* --- layout --- */
  --container: 1240px;
  --text-measure: 640px;
  --gutter: clamp(24px, 5vw, 72px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; }
h2{ font-size: clamp(2rem, 3.6vw, 3rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
p{ margin: 0; }

.measure{ max-width: var(--text-measure); }

/* --- focus & motion --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* --- shell --- */
.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ padding-block: clamp(64px, 10vw, 128px); }
.section--deep{ background: var(--paper-deep); }
.section--indigo{ background: var(--indigo-deep); color: var(--paper); }
.section--indigo h2, .section--indigo h3{ color: var(--paper); }
.section--indigo .ink-soft{ color: #C9C2B2; }
.rule{ border: none; border-top: 1px solid var(--stone); margin: 0; }

.ink-soft{ color: var(--ink-soft); }
.label{
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--indigo);
  font-weight: 500;
}
.section--indigo .label{ color: #9FB2C2; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,243,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
}
.nav-mark{
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-mark span{ color: var(--seal); }
.nav-links{
  display: flex; gap: clamp(18px, 2.4vw, 34px);
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a{ position: relative; padding-block: 4px; }
.nav-links a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--seal); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ transform: scaleX(1); }
.nav-links a[aria-current="page"]{ color: var(--seal); }
.nav-right{ display: flex; align-items: center; gap: 20px; }
.nav-cta{
  border: 1px solid var(--ink); padding: 10px 20px; font-size: 0.85rem; font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--ink); color: var(--paper); }
.nav-toggle{ display: none; background: none; border: none; font-size: 1.3rem; line-height: 1; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a{ color: var(--seal); }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after{ transform: scaleX(1); }

@media (max-width: 900px){
  .nav-links{
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--stone);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links a{ display: block; padding-block: 12px; }
  .nav-right .nav-cta{ display: none; }
  .nav-toggle{ display: block; }
  .site-header.is-open .nav-links{ display: flex; }
  .site-header.is-open .nav-right .nav-cta{ display: inline-flex; margin-top: 4px; }
}

/* placeholder note shown above forms until Gravity Forms is wired in */
.form-note{
  font-size: 0.82rem; color: var(--ink-soft);
  border: 1px dashed var(--stone); padding: 12px 16px; margin-top: 40px;
}
.section--indigo .form-note{ border-color: rgba(246,243,236,0.35); color: #C9C2B2; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary{ background: var(--seal); color: var(--white); }
.btn-primary:hover{ background: var(--seal-deep); }
.btn-outline{ border-color: currentColor; }
.btn-outline:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--indigo .btn-outline{ border-color: var(--paper); }
.section--indigo .btn-outline:hover{ background: var(--paper); color: var(--indigo-deep); }
.btn-ghost{ padding: 0; border-bottom: 1px solid var(--stone); border-radius: 0; }
.btn-ghost:hover{ border-color: var(--seal); color: var(--seal); }
.btn-row{ display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  background: var(--indigo-deep);
  color: var(--paper);
  overflow: hidden;
}
.hero-photo{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(28,42,55,0.15) 0%, rgba(28,42,55,0.75) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 34px);
}
.hero-photo-tag{
  position: absolute; top: 24px; right: 24px;
  font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(246,243,236,0.55);
  border: 1px solid rgba(246,243,236,0.3); padding: 6px 10px;
}
.hero-inner{ position: relative; padding-block: 72px 64px; }
.hero .label{ color: #B9C6D1; margin-bottom: 22px; display: block; }
.hero h1{ max-width: 15ch; }
.hero .sub{ max-width: 46ch; margin-top: 26px; font-size: 1.08rem; color: #DAD3C3; }
.hero .btn-row{ margin-top: 38px; }
.hero-foot{
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(246,243,236,0.2);
  font-size: 0.82rem; letter-spacing: 0.05em; color: #9FA9B2;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-foot span:not(:last-child)::after{ content: "·"; margin-left: 10px; color: #5A6874; }
.hero--page{ min-height: 52vh; }

/* image placeholder block (stand-in for client photography) */
.photo{
  position: relative;
  background: linear-gradient(155deg, var(--stone-soft), var(--paper-deep));
  aspect-ratio: 4/5;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--stone);
}
.photo::before{
  content: "";
  position: absolute; inset: 0;
  /*background: repeating-linear-gradient(135deg, rgba(44,63,82,0.05) 0 2px, transparent 2px 30px);*/
}
.photo-tag{
  position: relative; margin: 16px; font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--ink-soft); background: rgba(246,243,236,0.85); padding: 6px 10px;
}
.photo--wide{ aspect-ratio: 16/9; }
.photo--square{ aspect-ratio: 1/1; }

/* ==========================================================================
   Reusable layout patterns
   ========================================================================== */
.split{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}


#keep-top{
    align-items: start;

}

.split.reverse .split-media{ order: 2; }
@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: 0; }
}
.eyebrow-row{ display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow-row .rule-short{ width: 36px; height: 1px; background: var(--seal); }

.intro-head{ display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
@media (max-width: 700px){ .intro-head{ grid-template-columns: 1fr; } }

/* brand cards */
.brand-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--stone); border: 1px solid var(--stone); margin-top: 56px;
}
@media (max-width: 860px){ .brand-grid{ grid-template-columns: 1fr; } }
.brand-card{
  background: var(--paper); padding: 40px 34px 34px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .25s ease;
}
.brand-card:hover{ background: var(--white); }
.brand-mark{
  font-family: var(--display); font-size: 1.9rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-card--senra .brand-mark{ color: var(--plum); }
.brand-card--naris .brand-mark{ color: var(--sage); }
.brand-card--dhc   .brand-mark{ color: var(--gold); }
.brand-tagline{ font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.brand-card .photo{ aspect-ratio: 5/4; margin-top: 4px; }
.brand-card p.desc{ font-size: 0.95rem; color: var(--ink-soft); }
.brand-card .btn-ghost{ margin-top: auto; align-self: flex-start; }

/* values / feature list */
.feature-list{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 48px;
}
@media (max-width: 700px){ .feature-list{ grid-template-columns: 1fr; } }
.feature{ padding-top: 22px; border-top: 1px solid var(--stone); }
.section--indigo .feature{ border-top-color: rgba(246,243,236,0.25); }
.feature h3{ margin-bottom: 10px; }
.feature p{ color: var(--ink-soft); font-size: 0.96rem; }
.section--indigo .feature p{ color: #C9C2B2; }

/* journey / bridge diagram */
.bridge{
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: start;
}
.bridge-node{ text-align: center; padding-inline: 8px; position: relative; }
.bridge-node .dot{
  width: 11px; height: 11px; border-radius: 50%; background: var(--seal);
  margin: 0 auto 18px;
}
.bridge-node h4{ font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.bridge-node p{ font-size: 0.85rem; color: var(--ink-soft); }
.bridge-line{
  position: absolute; top: 5px; left: 50%; width: 100%; height: 1px; background: var(--stone);
}
.bridge-node:last-child .bridge-line{ display: none; }
@media (max-width: 760px){
  .bridge{ grid-template-columns: 1fr; gap: 34px; text-align: left; }
  .bridge-node{ text-align: left; padding-left: 26px; }
  .bridge-node .dot{ margin: 0; position: absolute; left: 0; top: 5px; }
  .bridge-line{ display: none; }
}

/* numbered service rows (legitimate sequence) */
.service-rows{ margin-top: 48px; border-top: 1px solid var(--stone); }
.service-row{
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  padding-block: 30px; border-bottom: 1px solid var(--stone);
}
.service-row .num{ font-family: var(--display); font-size: 1.1rem; color: var(--seal); }
.service-row h3{ margin-bottom: 8px; }
.service-row p{ color: var(--ink-soft); max-width: 60ch; }

/* offer / partner cards */
.offer-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; margin-top: 48px;
}
@media (max-width: 700px){ .offer-grid{ grid-template-columns: 1fr; } }

/* looking-for chips */
.chip-row{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip{ border: 1px solid var(--stone); padding: 10px 18px; font-size: 0.88rem; }
.section--indigo .chip{ border-color: rgba(246,243,236,0.3); }

/* CTA band */
.cta-band{ text-align: center; }
.cta-band h2{ max-width: 20ch; margin-inline: auto; }
.cta-band .sub{ max-width: 52ch; margin: 20px auto 0; color: #C9C2B2; }
.cta-band .btn-row{ justify-content: center; margin-top: 34px; }

/* discover strip */
.discover-strip{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  padding-block: 40px; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone);
}
.discover-strip .marks{ display: flex; gap: 36px; font-family: var(--display); font-size: 1.3rem; }

/* forms */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.field input, .field textarea{
  font-family: var(--body); font-size: 0.96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--stone);
  padding: 13px 14px;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus{ border-color: var(--indigo); outline: none; }
.section--indigo .field input, .section--indigo .field textarea{ background: rgba(246,243,236,0.06); border-color: rgba(246,243,236,0.3); color: var(--paper); }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

/* pull quote / philosophy line */
.pull{
  font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--indigo); line-height: 1.5; max-width: 22ch;
}

/* footer */
.site-footer{ background: var(--indigo-deep); color: var(--paper); padding-block: 72px 32px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-mark{ font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.footer-tag{ color: #A9B4BD; font-size: 0.92rem; max-width: 26ch; }
.footer-col h4{ font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.1em; color: #8695A0; margin-bottom: 16px; font-weight: 500; }
.footer-col li{ margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover{ color: var(--paper); text-decoration: underline; }
.footer-col p{ font-size: 0.92rem; color: #C9C2B2; }
.footer-bottom{
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(246,243,236,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: #8695A0;
}
.social-row{ display: flex; gap: 16px; }

/* page hero small variant title */
.page-title-row{ display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* brand detail page */
.brand-hero{
  padding-block: clamp(56px, 8vw, 96px) 0;
}
.brand-detail-head{ display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.brand-detail-mark{ font-family: var(--display); font-size: 2.6rem; font-weight: 700; }



/* Adding Photos  */

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/*Dynamic Logo in header*/


.nav-brand{
  display: flex; align-items: center;
  flex-shrink: 0;
}
.custom-logo-link{
  display: inline-flex; align-items: center;
  line-height: 0;
}
.custom-logo{
  display: block;
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 220px;
}
@media (max-width: 900px){
  .custom-logo{ max-height: 38px; max-width: 170px; }
}









/* ==========================================================================
   Dropdown sub-menus
   ========================================================================== */
.nav-links, .nav-links ul{ list-style: none; margin: 0; padding: 0; }

/* caret button (added by nav.js) */
.submenu-toggle{
  background: none; border: none; padding: 4px; margin: 0;
  color: inherit; cursor: pointer; line-height: 0;
}
.submenu-toggle::before{
  content: ""; display: block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-links li.is-open > .submenu-toggle::before{ transform: translateY(1px) rotate(-135deg); }

/* --- desktop: hover dropdown, width fits content --- */
@media (min-width: 901px){
  .nav-links > li{ position: relative; display: flex; align-items: center; gap: 4px; }

  .nav-links .sub-menu{
    position: absolute; top: 100%; left: -18px; z-index: 50;
    width: max-content; min-width: 180px;
    margin-top: 14px; padding: 10px 0;
    background: var(--paper);
    border: 1px solid var(--stone);
    box-shadow: 0 12px 28px rgba(34,30,25,0.08);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  /* invisible bridge so the menu doesn't close while the cursor crosses the gap */
  .nav-links .sub-menu::before{
    content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px;
  }
  .nav-links li:hover > .sub-menu,
  .nav-links li:focus-within > .sub-menu,
  .nav-links li.is-open > .sub-menu{
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-links li:hover > .submenu-toggle::before{ transform: translateY(1px) rotate(-135deg); }

  .nav-links .sub-menu a{
    display: block; padding: 8px 18px;
    white-space: nowrap; font-weight: 400;
  }
  .nav-links .sub-menu a::after{ display: none; }
  .nav-links .sub-menu a:hover,
  .nav-links .sub-menu .current-menu-item > a{ color: var(--seal); background: var(--paper-deep); }
}

/* --- mobile: accordion inside the hamburger panel --- */
@media (max-width: 900px){
  .nav-links{ max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav-links > li{ display: flex; flex-wrap: wrap; align-items: center; }
  .nav-links > li > a{ flex: 1; }
  .nav-links .submenu-toggle{ padding: 14px; margin-right: -14px; }

  .nav-links .sub-menu{
    display: none; flex-basis: 100%;
    padding: 0 0 8px 16px;
    border-left: 1px solid var(--stone);
  }
  .nav-links li.is-open > .sub-menu{ display: block; }
  .nav-links .sub-menu a{ padding-block: 10px; font-weight: 400; }
}


