/*
Theme Name: Sundrani Jewels
Theme URI: https://sundranijewels.com
Author: Hashtagweb.in
Author URI: https://hashtagweb.in
Description: A handmade-minimalist WordPress theme for Sunindrani Jewels — silver, brass and gold-plated jewellery handcrafted in Jaipur. Full WooCommerce support, custom front page, jali-lattice signature motif, and hand-drawn jewellery line art throughout.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sundrani-jewels
Tags: e-commerce, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   Palette   : ink #3B2E23 · cream #F6EDD9 · ivory #FBF6EC
               gold #C29A5B · terracotta #C2704B · maroon #7A2634
   Display   : "Cormorant Garamond" (serif, restrained large sizes)
   Body      : "Jost" (geometric sans)
   Signature : jali lattice motif — used as divider, texture & gallery grid
   ========================================================= */

:root{
  --ink:#3B2E23;
  --emerald:#6B3D2B;
  --emerald-deep:#4F2A1C;
  --gold:#C29A5B;
  --gold-light:#E0C088;
  --ivory:#FBF6EC;
  --ivory-soft:#FFFDF7;
  --cream:#F6EDD9;
  --maroon:#7A2634;
  --line: rgba(194,154,91,.3);
  --text-on-dark: rgba(255,253,247,.88);
  --text-on-dark-soft: rgba(255,253,247,.6);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 2px;
  --container: 1200px;
  --speed: .5s;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--font-body);
  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; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--ink);
  letter-spacing:.005em;
}
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }
.screen-reader-text{
  position:absolute!important; clip:rect(1px,1px,1px,1px);
  width:1px; height:1px; overflow:hidden; word-wrap:normal!important;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--gold); outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}

.container{ max-width:var(--container); margin:0 auto; padding:0 32px; }
@media (max-width:640px){ .container{ padding:0 22px; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:12px;
  font-family:var(--font-body); font-size:12.5px; letter-spacing:.28em;
  text-transform:uppercase; color:var(--gold); font-weight:500; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:28px; height:1px; background:var(--gold); }
.section{ padding:112px 0; position:relative; }
@media (max-width:780px){ .section{ padding:76px 0; } }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(32px,4vw,46px); }
.section-head p{ color:#6b6255; font-size:17px; }
.section--dark .section-head p{ color:var(--text-on-dark-soft); }

/* jali lattice — signature texture, used as SVG data-uri background */
.jali-bg{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C29A5B' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M28 0 L56 28 L28 56 L0 28 Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size:56px 56px;
}

/* =========================================================
   1. HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:500;
  background:rgba(79,42,28,.96);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  transition:background var(--speed);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:92px;
}
.site-branding{ display:flex; align-items:center; gap:14px; }
.site-branding .brand-mark{
  width:38px; height:38px; flex:none;
}
.site-branding a{ display:flex; align-items:center; gap:14px; }
.site-title{
  font-family:var(--font-display); font-weight:600; font-size:23px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--ivory); margin:0;
}
.site-title span{ display:block; font-family:var(--font-body); font-size:9.5px; letter-spacing:.32em; color:var(--gold-light); font-weight:400; margin-top:3px; }

.main-navigation{ display:flex; align-items:center; gap:40px; }
.main-navigation ul{ display:flex; gap:36px; }
.main-navigation a{
  font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-on-dark); position:relative; padding:6px 0;
}
.main-navigation a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background:var(--gold); transition:right var(--speed);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after{ right:0; }
.header-cta{
  border:1px solid var(--gold); color:var(--gold-light)!important;
  padding:11px 24px; font-size:12px!important; letter-spacing:.16em!important;
}
.header-cta:hover{ background:var(--gold); color:var(--ink)!important; }
.header-cta::after{ display:none; }

.menu-toggle{
  display:none; background:none; border:0; width:26px; height:20px; position:relative; flex:none;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; position:absolute; left:0; width:100%; height:1px; background:var(--ivory); transition:var(--speed);
}
.menu-toggle span{ top:9px; }
.menu-toggle span::before{ top:-8px; }
.menu-toggle span::after{ top:8px; }
.menu-toggle.is-active span{ background:transparent; }
.menu-toggle.is-active span::before{ transform:rotate(45deg); top:0; }
.menu-toggle.is-active span::after{ transform:rotate(-45deg); top:0; }

@media (max-width:900px){
  .menu-toggle{ display:block; }
  .main-navigation{
    position:fixed; inset:92px 0 0 0; background:var(--emerald-deep);
    flex-direction:column; align-items:flex-start; padding:40px 32px;
    transform:translateX(100%); transition:transform var(--speed);
  }
  .main-navigation.is-open{ transform:translateX(0); }
  .main-navigation ul{ flex-direction:column; gap:26px; width:100%; }
  .main-navigation a{ font-size:16px; }
  .header-cta{ margin-top:8px; }
}

/* =========================================================
   2. BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:500;
  padding:16px 32px; border:1px solid transparent; border-radius:var(--radius);
  transition:all .3s ease;
}
.btn-primary{ background:var(--gold); color:var(--ink); }
.btn-primary:hover{ background:var(--gold-light); }
.btn-outline{ border-color:var(--gold); color:var(--gold); }
.btn-outline:hover{ background:var(--gold); color:var(--ink); }
.btn-outline.on-dark{ border-color:var(--gold-light); color:var(--gold-light); }
.btn-ghost{ color:var(--maroon); border-bottom:1px solid var(--maroon); padding:2px 0; border-radius:0; letter-spacing:.1em; font-size:12.5px; }

/* =========================================================
   3. HERO
   ========================================================= */
.hero{
  background:var(--emerald); color:var(--ivory); position:relative; overflow:hidden;
  padding:150px 0 110px;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E0C088' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M60 0 L120 60 L60 120 L0 60 Z'/%3E%3Cpath d='M60 20 L100 60 L60 100 L20 60 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:120px 120px;
  opacity:.9;
}
.hero .container{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center; }
@media (max-width:940px){ .hero .container{ grid-template-columns:1fr; } .hero{ padding:120px 0 80px; } }
.hero-eyebrow{ color:var(--gold-light); }
.hero-eyebrow::before{ background:var(--gold-light); }
.hero h1{
  font-size:clamp(46px,6.4vw,84px); color:var(--ivory); font-weight:500;
}
.hero h1 em{ font-style:italic; color:var(--gold-light); }
.hero-lede{ font-size:19px; max-width:480px; color:var(--text-on-dark); margin-bottom:36px; }
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:56px; }
.hero-stats{ display:flex; gap:0; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:28px; }
.hero-stats div{ padding-right:36px; margin-right:36px; border-right:1px solid var(--line); }
.hero-stats div:last-child{ border-right:0; }
.hero-stats strong{ display:block; font-family:var(--font-display); font-size:30px; color:var(--gold-light); font-weight:600; }
.hero-stats span{ font-size:12px; letter-spacing:.08em; color:var(--text-on-dark-soft); text-transform:uppercase; }

.hero-art{ position:relative; aspect-ratio:4/5; }
.hero-art svg{ width:100%; height:100%; }

/* =========================================================
   4. MARQUEE STRIP
   ========================================================= */
.trust-strip{ background:var(--ivory-soft); border-bottom:1px solid var(--line); overflow:hidden; }
.trust-strip .track{
  display:flex; gap:64px; padding:22px 0; white-space:nowrap;
  animation:marquee 32s linear infinite;
  font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--emerald); font-weight:500;
}
.trust-strip .track span{ display:inline-flex; align-items:center; gap:64px; }
.trust-strip .track span::after{ content:"◆"; color:var(--gold); font-size:9px; margin-left:64px; }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* =========================================================
   5. ABOUT
   ========================================================= */
.about{ background:var(--cream); }
.about .container{ display:grid; grid-template-columns:.85fr 1.15fr; gap:80px; align-items:center; }
@media (max-width:900px){ .about .container{ grid-template-columns:1fr; gap:48px; } }
.about-visual{ position:relative; }
.about-visual .frame{
  border:1px solid var(--line); padding:22px; position:relative;
}
.about-visual svg{ width:100%; height:auto; }
.about-visual .badge{
  position:absolute; right:-24px; bottom:-24px; width:118px; height:118px;
  background:var(--maroon); color:var(--ivory); border-radius:50%;
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-family:var(--font-display); font-size:13px; line-height:1.3; letter-spacing:.03em; padding:10px;
}
@media (max-width:520px){ .about-visual .badge{ width:92px; height:92px; font-size:11px; right:-12px; bottom:-12px; } }
.about-copy p{ color:#54493c; font-size:17px; }
.pillars{ display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:36px; }
.pillar h4{ font-size:19px; margin-bottom:6px; }
.pillar h4 i{ display:inline-block; width:9px; height:9px; background:var(--gold); margin-right:10px; transform:rotate(45deg); }
.pillar p{ font-size:14.5px; color:#6f6759; margin:0; }

/* =========================================================
   6. COLLECTIONS
   ========================================================= */
.collections{ background:var(--emerald-deep); color:var(--ivory); }
.collections .section-head p{ color:var(--text-on-dark-soft); }
.collection-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:940px){ .collection-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .collection-grid{ grid-template-columns:1fr; } }
.collection-card{
  background:var(--emerald); padding:44px 30px; position:relative; overflow:hidden;
  transition:background var(--speed);
}
.collection-card:hover{ background:var(--ink); }
.collection-card .icon{ width:52px; height:52px; margin-bottom:28px; color:var(--gold-light); }
.collection-card h3{ color:var(--ivory); font-size:23px; margin-bottom:10px; }
.collection-card p{ font-size:14.5px; color:var(--text-on-dark-soft); margin-bottom:22px; min-height:66px; }
.collection-card .cta{ font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-light); border-bottom:1px solid var(--gold); padding-bottom:4px; }
.collection-card .num{
  position:absolute; top:20px; right:26px; font-family:var(--font-display);
  font-size:14px; color:var(--text-on-dark-soft);
}

/* =========================================================
   7. WHY US
   ========================================================= */
.why-us{ background:var(--ivory-soft); }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:8px; }
@media (max-width:820px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .why-grid{ grid-template-columns:1fr; } }
.why-item{ background:var(--ivory-soft); padding:40px 32px; }
.why-item .icon{ width:36px; height:36px; color:var(--maroon); margin-bottom:20px; }
.why-item h4{ font-size:19px; margin-bottom:8px; }
.why-item p{ font-size:14.5px; color:#6f6759; margin:0; }

/* =========================================================
   8. TESTIMONIALS
   ========================================================= */
.testimonials{ background:var(--ivory); }
.t-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
@media (max-width:900px){ .t-grid{ grid-template-columns:1fr; } }
.t-card{ border:1px solid var(--line); padding:36px 32px; position:relative; background:var(--ivory-soft); }
.t-card .mark{ font-family:var(--font-display); font-size:56px; color:var(--gold); line-height:1; margin-bottom:8px; display:block; }
.t-card p{ font-style:italic; color:#54493c; font-size:16px; }
.t-card footer{ margin-top:20px; font-size:13px; letter-spacing:.04em; }
.t-card footer strong{ display:block; font-family:var(--font-display); font-size:17px; font-style:normal; color:var(--ink); }
.t-card footer span{ color:var(--gold); text-transform:uppercase; font-size:11px; letter-spacing:.14em; }

/* =========================================================
   9. JALI GALLERY  (signature section)
   ========================================================= */
.jali-gallery{ background:var(--emerald); color:var(--ivory); position:relative; }
.jali-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
@media (max-width:820px){ .jali-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:520px){ .jali-grid{ grid-template-columns:repeat(2,1fr); } }
.jali-cell{
  aspect-ratio:1; background:var(--emerald-deep); display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.jali-cell svg{ width:46%; height:46%; color:var(--gold-light); opacity:.55; transition:transform .5s ease, opacity .5s ease, color .5s ease; }
.jali-cell:hover svg{ transform:scale(1.18); opacity:1; color:var(--ivory); }
.jali-cell:nth-child(4n)::after,
.jali-cell:nth-child(7n)::after{
  content:""; position:absolute; inset:0; background:var(--gold); opacity:.08;
}
.jali-cell .label{
  position:absolute; bottom:10px; left:0; right:0; text-align:center;
  font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-on-dark-soft);
  opacity:0; transition:opacity .3s;
}
.jali-cell:hover .label{ opacity:1; }

/* =========================================================
   10. CONTACT
   ========================================================= */
.contact{ background:var(--cream); }
.contact .container{ display:grid; grid-template-columns:1fr 1fr; gap:80px; }
@media (max-width:900px){ .contact .container{ grid-template-columns:1fr; gap:56px; } }
.contact-form .row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:520px){ .contact-form .row{ grid-template-columns:1fr; } }
.contact-form label{ display:block; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--emerald); margin-bottom:8px; }
.contact-form input, .contact-form select, .contact-form textarea{
  width:100%; border:1px solid #cabf9f; background:var(--ivory); padding:14px 16px;
  font-family:var(--font-body); font-size:15px; color:var(--ink); margin-bottom:20px; border-radius:var(--radius);
}
.contact-form textarea{ min-height:120px; resize:vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{ border-color:var(--gold); outline:none; }
.contact-details h3{ font-size:24px; margin-bottom:18px; }
.contact-block{ margin-bottom:26px; }
.contact-block h5{ font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin:0 0 8px; font-family:var(--font-body); font-weight:600; }
.contact-block p{ margin:0; color:#54493c; }
.map-placeholder{
  margin-top:10px; border:1px solid var(--line); background:var(--ivory);
  height:220px; overflow:hidden; display:block;
}
.map-placeholder iframe{ display:block; width:100%; height:100%; border:0; }
.form-success{ background:var(--gold-light); border:1px solid var(--gold); padding:16px 18px; margin-bottom:20px; font-size:14.5px; color:var(--ink); }

/* =========================================================
   11. FOOTER
   ========================================================= */
.site-footer{ background:var(--ink); color:var(--text-on-dark-soft); padding:80px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:56px; margin-bottom:64px; }
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr; gap:40px; } }
.footer-brand .site-title{ color:var(--ivory); }
.footer-brand p{ max-width:340px; margin-top:18px; font-size:14.5px; }
.footer-col h5{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-light); margin-bottom:20px; }
.footer-col ul li{ margin-bottom:12px; font-size:14.5px; }
.footer-col a:hover{ color:var(--gold-light); }
.footer-bottom{
  border-top:1px solid rgba(255,253,247,.12); padding-top:26px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px;
}

.whatsapp-fab{
  position:fixed; right:26px; bottom:26px; z-index:400;
  width:56px; height:56px; border-radius:50%; background:var(--maroon); color:var(--ivory);
  display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,.25);
  transition:transform .3s;
}
.whatsapp-fab:hover{ transform:translateY(-3px); }
.whatsapp-fab svg{ width:26px; height:26px; }

/* =========================================================
   12. WOOCOMMERCE
   ========================================================= */
.woocommerce{ background:var(--ivory); }
.woocommerce-page .site-main{ padding:64px 0 100px; }
.woocommerce ul.products{ display:grid!important; grid-template-columns:repeat(4,1fr); gap:36px 28px; list-style:none; margin:0; padding:0; }
@media (max-width:980px){ .woocommerce ul.products{ grid-template-columns:repeat(2,1fr)!important; } }
@media (max-width:560px){ .woocommerce ul.products{ grid-template-columns:1fr!important; } }
.woocommerce ul.products li.product{
  background:var(--ivory-soft); border:1px solid var(--line); padding:0; position:relative; transition:box-shadow .3s;
}
.woocommerce ul.products li.product:hover{ box-shadow:0 18px 40px rgba(59,46,35,.12); }
.woocommerce ul.products li.product img{ width:100%; aspect-ratio:1; object-fit:cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--font-display); font-size:19px; padding:18px 20px 4px; color:var(--ink);
}
.woocommerce ul.products li.product .price{ padding:0 20px 20px; color:var(--maroon); font-weight:500; font-size:15px; }
.woocommerce ul.products li.product .price del{ color:#9a9384; opacity:.7; }
.woocommerce ul.products li.product .button{
  margin:0 20px 22px; display:inline-block; border:1px solid var(--gold); color:var(--gold)!important;
  font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; padding:11px 20px; border-radius:var(--radius); background:transparent;
}
.woocommerce ul.products li.product .button:hover{ background:var(--gold); color:var(--ink)!important; }
.woocommerce ul.products li.product .onsale{
  position:absolute; top:14px; left:14px; background:var(--maroon); color:var(--ivory);
  font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; padding:5px 10px; border-radius:0; min-height:0; min-width:0; line-height:1;
}
.woocommerce div.product .product_title{ font-size:clamp(28px,4vw,40px); }
.woocommerce div.product p.price{ color:var(--maroon); font-size:22px; }
.woocommerce div.product .woocommerce-product-gallery{ border:1px solid var(--line); }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
  background:var(--gold); color:var(--ink); border-radius:var(--radius); letter-spacing:.1em; text-transform:uppercase; font-size:12.5px; padding:14px 26px; border:1px solid var(--gold);
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover{ background:var(--emerald); color:var(--ivory); border-color:var(--emerald); }
.woocommerce nav.woocommerce-pagination ul li{ border-color:var(--line)!important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{ color:var(--ink)!important; }
.woocommerce span.onsale{ box-shadow:none; }
.woocommerce-breadcrumb{ font-size:13px; color:#8a8272; margin-bottom:28px; }
.woocommerce-breadcrumb a{ color:var(--emerald); }

/* Generic page/post content */
.page-hero{ background:var(--emerald); color:var(--ivory); padding:150px 0 60px; text-align:center; }
.page-hero h1{ color:var(--ivory); font-size:clamp(38px,5vw,58px); }
.entry-content{ padding:64px 0 100px; }
.entry-content .container{ max-width:820px; font-size:17px; color:#54493c; }
.entry-content h2{ margin-top:1.4em; }
