/*
Theme Name: SS Gold Buyers
Theme URI: https://ssgoldbuyers.com
Author: SS Gold Buyers
Author URI: https://ssgoldbuyers.com
Description: A custom, SEO-optimized, bilingual (English/Marathi) WordPress theme built for SS Gold Buyers — a gold, silver & diamond buying business in Pune, Maharashtra. Fully responsive, fast-loading, and compatible with the latest WordPress version.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssgoldbuyers
Tags: business, custom-colors, custom-logo, custom-menu, featured-images, responsive-layout, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root{
  /* Palette — an Indian jewellery-shop richness: deep jewel-tone ground, struck gold, and
     gemstone accents (emerald / sapphire / ruby / amber) drawn from what the shop actually sells */
  --ssg-bg:            #2A0E1F;
  --ssg-bg-alt:        #3A1329;
  --ssg-panel:         #FBF1DD;
  --ssg-panel-2:       #F6E7C9;
  --ssg-gold:          #D4A017;
  --ssg-gold-bright:   #F4C948;
  --ssg-maroon:        #B4243A;
  --ssg-emerald:       #1E8A63;
  --ssg-sapphire:      #2E5FA3;
  --ssg-ruby:          #C62E4E;
  --ssg-amber:         #E08A1E;
  --ssg-text-light:    #F6EEDD;
  --ssg-text-light-70: rgba(246,238,221,0.75);
  --ssg-text-dark:     #2B1710;
  --ssg-text-dark-70:  rgba(43,23,16,0.72);
  --ssg-line:          rgba(244,201,72,0.32);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Poppins', -apple-system, Helvetica, Arial, sans-serif;
  --font-mr:      'Noto Sans Devanagari', 'Poppins', sans-serif;

  --radius: 2px;
  --container: 1180px;
  --gap: clamp(1.5rem, 3vw, 3rem);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ssg-bg);
  color: var(--ssg-text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="mr"] body, body.lang-mr{ font-family: var(--font-mr); }

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ssg-gold-bright);
  letter-spacing: .01em;
}
html[lang="mr"] h1, html[lang="mr"] h2, html[lang="mr"] h3, html[lang="mr"] h4{
  font-family: var(--font-mr); font-weight: 700;
}
p{ margin: 0 0 1em; }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ssg-gold);
  font-weight: 600;
  margin-bottom: .9em;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: var(--ssg-gold);
  display: inline-block;
}

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--ssg-gold-bright);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--ssg-gold); color: var(--ssg-text-dark);
  padding: .75em 1.25em; z-index: 999; font-weight: 600;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .9em 1.7em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-gold{
  background: linear-gradient(180deg, var(--ssg-gold-bright), var(--ssg-gold));
  color: var(--ssg-text-dark);
}
.btn-gold:hover{ transform: translateY(-2px); }
.btn-outline{
  border-color: var(--ssg-gold);
  color: var(--ssg-gold-bright);
  background: transparent;
}
.btn-outline:hover{ background: rgba(201,162,39,0.1); transform: translateY(-2px); }
.btn-whatsapp{
  background: #25D366;
  color: #0b1e12;
}
.btn-whatsapp:hover{ transform: translateY(-2px); }

/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,17,13,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ssg-line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}
.site-branding{ display: flex; align-items: center; gap: .75rem; }
.site-branding img{ max-height: 46px; width: auto; }
.site-title{
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ssg-gold-bright);
  margin: 0;
  line-height: 1.1;
}
.site-title a{ color: inherit; }
.site-description{
  font-size: .72rem;
  color: var(--ssg-text-light-70);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-nav{ display: flex; align-items: center; gap: 2rem; }
.primary-nav ul{ display: flex; gap: 1.75rem; }
.primary-nav a{
  font-size: .93rem; font-weight: 500;
  padding: .3em 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item a{
  color: var(--ssg-gold-bright);
  border-color: var(--ssg-gold);
}

.header-cta{ display: flex; align-items: center; gap: .75rem; }
.lang-toggle{
  display: inline-flex;
  border: 1px solid var(--ssg-line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button{
  background: transparent;
  border: none;
  color: var(--ssg-text-light-70);
  padding: .4em .9em;
  font-size: .8rem;
  font-weight: 600;
}
.lang-toggle button.active{
  background: var(--ssg-gold);
  color: var(--ssg-text-dark);
}

.menu-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--ssg-line);
  color: var(--ssg-gold-bright);
  padding: .5em .7em;
  border-radius: var(--radius);
}

/* ==========================================================================
   5. HERO — signature element: hallmark "purity" badge
   ========================================================================== */
.hero{
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ssg-line);
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(244,201,72,0.22), transparent 60%),
    radial-gradient(700px 420px at 8% 105%, rgba(46,95,163,0.22), transparent 60%),
    radial-gradient(600px 360px at 60% 40%, rgba(198,46,78,0.10), transparent 65%),
    linear-gradient(160deg, var(--ssg-bg) 0%, var(--ssg-bg-alt) 100%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: var(--gap);
}
.hero h1{
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: .35em;
}
.hero .lede{
  font-size: 1.1rem;
  color: var(--ssg-text-light-70);
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-trust{
  display: flex; gap: clamp(1rem, 3vw, 2.2rem); flex-wrap: wrap;
  border-top: 1px solid var(--ssg-line);
  padding-top: 1.4rem;
}
.hero-trust .stat b{
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; color: var(--ssg-gold-bright);
}
.hero-trust .stat span{ font-size: .78rem; color: var(--ssg-text-light-70); }
.hero-trust .stat:nth-child(2) b{ color: var(--ssg-sapphire); filter: brightness(1.4); }
.hero-trust .stat:nth-child(3) b{ color: var(--ssg-emerald); filter: brightness(1.5); }

.badge-wrap{ display: flex; justify-content: center; }
.hallmark{
  width: min(320px, 80%);
  filter: drop-shadow(0 0 34px rgba(46,95,163,0.28)) drop-shadow(0 0 18px rgba(244,201,72,0.18));
}
.hallmark .ring-outer{ stroke: var(--ssg-sapphire); opacity: .55; }
.hallmark .ring-gold{ stroke: var(--ssg-gold-bright); }
.hallmark text{ fill: var(--ssg-gold-bright); font-family: var(--font-display); }
.hallmark .sub{ fill: var(--ssg-text-light-70); font-family: var(--font-body); }

/* ==========================================================================
   6. SECTIONS — general
   ========================================================================== */
section{ padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head{ max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-on-panel{ background: var(--ssg-panel); color: var(--ssg-text-dark); }
.section-on-panel h2, .section-on-panel h3{ color: var(--ssg-maroon); }
.section-on-panel .eyebrow{ color: var(--ssg-maroon); }
.section-on-panel .eyebrow::before{ background: var(--ssg-maroon); }
.section-on-panel p{ color: var(--ssg-text-dark-70); }

/* Services grid */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card{
  background: var(--ssg-bg-alt);
  border: 1px solid var(--ssg-line);
  border-top: 3px solid var(--ssg-gold);
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover{ transform: translateY(-4px); }
.service-card .icon{ width: 42px; height: 42px; margin-bottom: 1rem; color: var(--ssg-gold); }
.service-card h3{ font-size: 1.2rem; margin-bottom: .4em; }
.service-card p{ color: var(--ssg-text-light-70); font-size: .95rem; margin: 0; }

/* Gemstone accents — one per card, matched to what's advertised (gold / silver / diamond) */
.service-card:nth-child(1){ border-top-color: var(--ssg-amber); }
.service-card:nth-child(1) .icon{ color: var(--ssg-amber); }
.service-card:nth-child(1):hover{ border-color: var(--ssg-amber); }
.service-card:nth-child(2){ border-top-color: var(--ssg-sapphire); }
.service-card:nth-child(2) .icon{ color: var(--ssg-sapphire); }
.service-card:nth-child(2):hover{ border-color: var(--ssg-sapphire); }
.service-card:nth-child(3){ border-top-color: var(--ssg-emerald); }
.service-card:nth-child(3) .icon{ color: var(--ssg-emerald); }
.service-card:nth-child(3):hover{ border-color: var(--ssg-emerald); }

/* Process steps — numbered because it's a literal 3-step procedure */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.step{ position: relative; padding-left: 3.2rem; }
.step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.2rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ssg-maroon);
  opacity: .7;
}
.step:nth-child(1)::before{ color: var(--ssg-amber); }
.step:nth-child(2)::before{ color: var(--ssg-sapphire); }
.step:nth-child(3)::before{ color: var(--ssg-emerald); }
.step h3{ font-size: 1.05rem; margin-bottom: .35em; }
.step p{ font-size: .93rem; }

/* Rates ticker strip */
.rate-strip{
  background: linear-gradient(90deg, var(--ssg-ruby), var(--ssg-maroon) 55%, var(--ssg-ruby));
  color: var(--ssg-text-light);
  padding-block: .8rem;
  text-align: center;
  font-size: .88rem;
  letter-spacing: .03em;
}
.rate-strip strong{ color: var(--ssg-gold-bright); }

/* Reviews */
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card{
  background: var(--ssg-panel-2);
  border-left: 3px solid var(--ssg-gold);
  padding: 1.6rem;
  border-radius: var(--radius);
}
.review-card:nth-child(1){ border-left-color: var(--ssg-amber); }
.review-card:nth-child(2){ border-left-color: var(--ssg-sapphire); }
.review-card:nth-child(3){ border-left-color: var(--ssg-ruby); }
.review-card .stars{ color: var(--ssg-amber); letter-spacing: .1em; margin-bottom: .5em; }
.review-card p{ font-size: .95rem; color: var(--ssg-text-dark-70); }
.review-card .who{ font-weight: 600; color: var(--ssg-text-dark); font-size: .9rem; }
.review-note{ font-size: .78rem; color: var(--ssg-text-dark-70); margin-top: 1rem; }

/* Contact / CTA band */
.contact-band{
  background: linear-gradient(180deg, var(--ssg-bg-alt), var(--ssg-bg));
  border-top: 1px solid var(--ssg-line);
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.contact-list li{
  display: flex; gap: .8rem; align-items: flex-start;
  padding-block: .7rem;
  border-bottom: 1px solid var(--ssg-line);
  font-size: .96rem;
}
.contact-list li b{ display:block; color: var(--ssg-gold-bright); font-size:.78rem; letter-spacing:.05em; text-transform:uppercase; }
.map-embed{ border: 1px solid var(--ssg-line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe{ width: 100%; height: 300px; border: 0; display: block; }

/* Simple contact form */
.contact-form{ display: grid; gap: 1rem; }
.contact-form input, .contact-form textarea{
  width: 100%;
  background: var(--ssg-bg-alt);
  border: 1px solid var(--ssg-line);
  color: var(--ssg-text-light);
  padding: .85em 1em;
  border-radius: var(--radius);
}
.contact-form textarea{ min-height: 120px; resize: vertical; }
.contact-form label{ font-size: .8rem; color: var(--ssg-text-light-70); margin-bottom: .3em; display:block; }

/* ==========================================================================
   7. BLOG / PAGE / SINGLE CONTENT
   ========================================================================== */
.page-hero{
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--ssg-line);
  background: var(--ssg-bg-alt);
}
.page-hero h1{ font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .2em; }
.breadcrumbs{ font-size: .82rem; color: var(--ssg-text-light-70); }
.breadcrumbs a{ color: var(--ssg-gold-bright); }

.entry-content{
  max-width: 74ch;
  font-size: 1.02rem;
}
.entry-content h2{ margin-top: 1.6em; }
.entry-content ul, .entry-content ol{ margin: 0 0 1em 1.3em; list-style: revert; }
.entry-content img{ border-radius: var(--radius); margin-block: 1rem; }
.entry-content blockquote{
  border-left: 3px solid var(--ssg-gold);
  margin: 1.5em 0; padding: .2em 0 .2em 1.2em;
  color: var(--ssg-text-light-70); font-style: italic;
}

.post-meta{ font-size: .85rem; color: var(--ssg-text-light-70); margin-bottom: 1.5rem; display:flex; gap:1rem; flex-wrap:wrap; }
.post-thumb{ margin-bottom: 2rem; border-radius: var(--radius); overflow:hidden; }

.pagination{ display: flex; gap: .6rem; margin-top: 2.5rem; }
.pagination a, .pagination span{
  padding: .5em .9em; border: 1px solid var(--ssg-line); border-radius: var(--radius); font-size: .85rem;
}
.pagination .current{ background: var(--ssg-gold); color: var(--ssg-text-dark); }

.comments-area{ margin-top: 3rem; border-top: 1px solid var(--ssg-line); padding-top: 2rem; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer{
  background: var(--ssg-bg-alt);
  border-top: 1px solid var(--ssg-line);
  padding-block: 3.5rem 1.5rem;
  font-size: .92rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4{ color: var(--ssg-gold-bright); font-size: 1rem; margin-bottom: .8em; }
.footer-grid ul li{ margin-bottom: .55em; }
.footer-grid a{ color: var(--ssg-text-light-70); }
.footer-grid a:hover{ color: var(--ssg-gold-bright); }
.footer-bottom{
  border-top: 1px solid var(--ssg-line);
  padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  color: var(--ssg-text-light-70);
  font-size: .82rem;
}
.social-links{ display: flex; gap: .8rem; }
.social-links a{
  width: 34px; height: 34px; border: 1px solid var(--ssg-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover{ border-color: var(--ssg-gold); color: var(--ssg-gold-bright); }

/* Floating WhatsApp button */
.whatsapp-float{
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #0b1e12;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.whatsapp-float svg{ width: 28px; height: 28px; }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 992px){
  .hero-grid{ grid-template-columns: 1fr; }
  .badge-wrap{ order: -1; margin-bottom: 1.5rem; }
  .hallmark{ width: 220px; }
  .services-grid, .steps, .reviews-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .primary-nav{
    position: fixed; inset: 64px 0 0 0;
    background: var(--ssg-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open{ transform: translateX(0); }
  .primary-nav ul{ flex-direction: column; gap: 1.2rem; width: 100%; }
  .primary-nav a{ font-size: 1.1rem; }
  .menu-toggle{ display: inline-flex; }
  .header-cta .btn-outline-text{ display: none; }
  .services-grid, .steps, .reviews-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .hero-trust{ gap: 1.4rem; }
}

@media (max-width: 480px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .site-title{ font-size: 1.1rem; }
}
