/*
Astrologer Ram — plugin stylesheet
Enqueued only on the plugin's own pages (Home, About, Services, Testimonials, Contact).
*/


:root{
  --bg:#170D0A;
  --bg-alt:#211311;
  --surface:#2B1714;
  --surface-2:#341C17;
  --gold:#C9962E;
  --gold-bright:#E8B84B;
  --sindoor:#9C3B34;
  --sindoor-bright:#C24C41;
  --ivory:#F3E6D0;
  --muted:#B08A66;
  --hairline: rgba(201,150,46,0.22);
  --radius: 2px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ivory);
  font-family:'Karla', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(156,59,52,0.16), transparent 60%),
    radial-gradient(ellipse 700px 600px at 100% 20%, rgba(201,150,46,0.09), transparent 55%);
  pointer-events:none;
  z-index:0;
}
h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:450;
  letter-spacing:0.005em;
  color:var(--ivory);
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}
.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
.eyebrow{
  font-family:'Karla', sans-serif;
  font-size:12.5px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{
  content:"";
  width:16px; height:1px;
  background:var(--gold);
  display:inline-block;
}
.diamond-rule{
  display:flex; align-items:center; justify-content:center; gap:14px;
  margin: 64px 0;
  opacity:0.6;
}
.diamond-rule::before,.diamond-rule::after{
  content:"";
  height:1px; flex:1;
  background:linear-gradient(90deg, transparent, var(--hairline));
}
.diamond-rule::after{background:linear-gradient(90deg, var(--hairline), transparent);}
.diamond-rule span{
  width:7px; height:7px;
  border:1px solid var(--gold);
  transform:rotate(45deg);
  flex-shrink:0;
}

/* ===== NAV ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(23,13,10,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hairline);
}
.site-header nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 32px;
  max-width:1120px; margin:0 auto;
  position:relative;
}
.brand{
  font-family:'Fraunces', serif;
  font-size:20px;
  letter-spacing:0.02em;
  display:flex; align-items:center; gap:10px;
}
.brand .mark{
  width:22px; height:22px;
  border:1px solid var(--gold);
  transform:rotate(45deg);
  position:relative;
  flex-shrink:0;
}
.brand .mark::after{
  content:"";
  position:absolute; inset:5px;
  border:1px solid var(--sindoor-bright);
}
.primary-menu{
  display:flex; gap:36px;
}
.primary-menu li{list-style:none;}
.primary-menu li a{
  font-size:13.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--muted);
  transition:color .25s ease;
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item a,
.primary-menu li.current_page_item a{color:var(--gold-bright);}
.nav-cta{
  font-size:13px; letter-spacing:0.06em; text-transform:uppercase;
  border:1px solid var(--gold); color:var(--gold-bright) !important;
  padding:9px 18px; flex-shrink:0;
}
.nav-cta:hover{background:var(--gold); color:var(--bg) !important;}
.nav-toggle{
  display:none;
  width:32px; height:24px;
  border:none; background:none; cursor:pointer;
  flex-direction:column; justify-content:space-between;
}
.nav-toggle span{
  display:block; height:1px; width:100%;
  background:var(--gold-bright);
}

/* ===== HERO (front page) ===== */
.hero{position:relative; z-index:1; padding:96px 0 60px;}
.hero .wrap{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero h1{font-size:clamp(38px, 5vw, 60px); line-height:1.08; margin:22px 0 24px; font-weight:450;}
.hero h1 em{font-style:italic; color:var(--gold-bright);}
.hero p.lede{font-size:17px; color:var(--muted); max-width:46ch; margin-bottom:34px;}
.btn-row{display:flex; gap:16px; flex-wrap:wrap;}
.btn{display:inline-block; padding:14px 26px; font-size:13.5px; letter-spacing:0.08em; text-transform:uppercase; border:1px solid var(--gold); transition:all .25s ease; cursor:pointer; font-family:'Karla',sans-serif;}
.btn-solid{background:var(--gold); color:var(--bg); font-weight:600;}
.btn-solid:hover{background:var(--gold-bright); border-color:var(--gold-bright);}
.btn-ghost{color:var(--ivory); background:none;}
.btn-ghost:hover{border-color:var(--ivory);}
.hero-note{margin-top:36px; font-size:13px; color:var(--muted); display:flex; gap:20px; flex-wrap:wrap;}
.hero-note span{display:flex; align-items:center; gap:8px;}
.hero-note b{color:var(--gold-bright); font-weight:600;}

/* Kundli chart */
.kundli-box{position:relative; aspect-ratio:1/1; max-width:460px; margin:0 auto;}
.kundli-box svg{width:100%; height:100%;}
.house{fill:var(--sindoor); opacity:0.05; animation:pulseHouse 9.6s ease-in-out infinite; transition:opacity .3s ease;}
.house:hover{opacity:0.4 !important;}
.house:nth-child(1){animation-delay:0s;} .house:nth-child(2){animation-delay:.8s;}
.house:nth-child(3){animation-delay:1.6s;} .house:nth-child(4){animation-delay:2.4s;}
.house:nth-child(5){animation-delay:3.2s;} .house:nth-child(6){animation-delay:4.0s;}
.house:nth-child(7){animation-delay:4.8s;} .house:nth-child(8){animation-delay:5.6s;}
.house:nth-child(9){animation-delay:6.4s;} .house:nth-child(10){animation-delay:7.2s;}
.house:nth-child(11){animation-delay:8.0s;} .house:nth-child(12){animation-delay:8.8s;}
@keyframes pulseHouse{0%{opacity:0.05;} 8%{opacity:0.55;} 22%{opacity:0.05;} 100%{opacity:0.05;}}
.kundli-lines{stroke:var(--gold); stroke-width:1.4; fill:none; opacity:0.75;}
.kundli-outer{stroke:var(--gold-bright); stroke-width:2; fill:none;}
.kundli-num{font-family:'Fraunces', serif; font-size:15px; fill:var(--muted); opacity:0.8;}
.kundli-center{font-family:'Fraunces', serif; font-style:italic; font-size:22px; fill:var(--gold-bright);}
.kundli-orbit{fill:none; stroke:var(--hairline); stroke-width:1;}
.kundli-dot{fill:var(--gold-bright); animation:orbit 22s linear infinite; transform-origin:300px 300px;}
@keyframes orbit{ to{ transform:rotate(360deg);} }
@media (prefers-reduced-motion: reduce){ .house, .kundli-dot{animation:none !important;} }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero{position:relative; z-index:1; padding:76px 0 40px; border-bottom:1px solid var(--hairline);}
.page-hero h1{font-size:clamp(32px,4.2vw,48px); margin-top:16px; font-weight:450;}
.page-hero p{color:var(--muted); margin-top:16px; max-width:56ch; font-size:16px;}

/* ===== SECTIONS GENERIC ===== */
section{position:relative; z-index:1; padding:20px 0;}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head h2{font-size:clamp(28px,3.4vw,40px); margin-top:16px; font-weight:450;}
.section-head p{color:var(--muted); margin-top:16px; font-size:16px;}

/* ===== ABOUT ===== */
.about{display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:start; padding:40px 0 20px;}
.about-portrait{
  aspect-ratio:4/5; background:linear-gradient(155deg, var(--surface), var(--bg-alt));
  border:1px solid var(--hairline); position:relative; overflow:hidden;
}
.about-portrait::before{
  content:"राम"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif; font-size:96px; color:var(--gold); opacity:0.12;
}
.about-portrait::after{content:""; position:absolute; left:24px; top:24px; right:24px; bottom:24px; border:1px solid var(--hairline);}
.about-text p{color:var(--muted); margin-bottom:18px; font-size:16px;}
.about-text p.lead{color:var(--ivory); font-size:19px; font-family:'Fraunces', serif; font-weight:450; line-height:1.5;}
.credentials{display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:32px; padding-top:32px; border-top:1px solid var(--hairline);}
.credentials div b{display:block; font-family:'Fraunces', serif; font-size:26px; color:var(--gold-bright); font-weight:450; margin-bottom:4px;}
.credentials div span{font-size:13px; color:var(--muted); letter-spacing:0.03em;}

/* ===== SERVICES ===== */
.services-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--hairline); border:1px solid var(--hairline);}
.services-grid.detailed{grid-template-columns:repeat(2, 1fr);}
.service-card{background:var(--bg); padding:36px 30px; transition:background .3s ease;}
.service-card:hover{background:var(--bg-alt);}
.service-glyph{width:38px; height:38px; margin-bottom:22px;}
.service-card h3{font-size:19px; font-weight:450; margin-bottom:10px;}
.service-card p{font-size:14.5px; color:var(--muted);}
.service-card ul{margin-top:16px; display:flex; flex-direction:column; gap:8px;}
.service-card ul li{font-size:13.5px; color:var(--muted); padding-left:16px; position:relative;}
.service-card ul li::before{content:"—"; position:absolute; left:0; color:var(--gold);}

/* ===== PROCESS ===== */
.process{display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline);}
.process-step{padding:32px 28px; border-right:1px solid var(--hairline);}
.process-step:last-child{border-right:none;}
.process-step .idx{font-family:'Fraunces', serif; font-style:italic; color:var(--sindoor-bright); font-size:15px; margin-bottom:14px; display:block;}
.process-step h4{font-size:17px; margin-bottom:8px; font-weight:450;}
.process-step p{font-size:14px; color:var(--muted);}

/* ===== TESTIMONIALS ===== */
.testimonials{display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
.testi-card{padding:30px 26px; background:var(--bg-alt); border:1px solid var(--hairline); position:relative;}
.testi-card::before{content:"\201C"; font-family:'Fraunces', serif; font-size:52px; color:var(--gold); opacity:0.4; line-height:1; display:block; margin-bottom:4px;}
.testi-card p{font-size:15px; color:var(--ivory); margin-bottom:20px;}
.testi-name{font-size:13px; color:var(--muted); letter-spacing:0.04em; text-transform:uppercase;}

/* ===== CONTACT ===== */
.contact{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start;}
.contact-info p{color:var(--muted); margin:18px 0 28px; max-width:40ch;}
.info-row{display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--hairline); font-size:14.5px;}
.info-row:last-child{border-bottom:1px solid var(--hairline);}
.info-row b{color:var(--ivory); min-width:120px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; font-size:12px; padding-top:2px;}
.info-row span{color:var(--muted);}

form.ram-form{display:flex; flex-direction:column; gap:20px;}
.field{display:flex; flex-direction:column; gap:8px;}
.field label{font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold);}
.field input, .field select, .field textarea{
  background:var(--surface); border:1px solid var(--hairline); color:var(--ivory);
  padding:13px 14px; font-family:'Karla', sans-serif; font-size:14.5px; border-radius:var(--radius); width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--gold);}
.field textarea{resize:vertical; min-height:100px;}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.submit-note{font-size:12.5px; color:var(--muted); margin-top:-6px;}
.form-notice{padding:14px 16px; font-size:14px; border:1px solid var(--hairline); margin-bottom:4px;}
.form-notice.success{color:var(--gold-bright); border-color:var(--gold);}
.form-notice.error{color:var(--sindoor-bright); border-color:var(--sindoor);}
.form-notice[hidden]{display:none;}

/* ===== FOOTER ===== */
.site-footer{border-top:1px solid var(--hairline); padding:52px 0 32px; margin-top:60px;}
.footer-top{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px; padding-bottom:36px;}
.footer-tagline{max-width:34ch; color:var(--muted); font-size:14px; margin-top:14px;}
.footer-links{display:flex; gap:56px; flex-wrap:wrap;}
.footer-col h5{font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); margin-bottom:16px;}
.footer-col a{display:block; font-size:14px; color:var(--muted); margin-bottom:10px;}
.footer-col a:hover{color:var(--gold-bright);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--hairline); font-size:12.5px; color:var(--muted); flex-wrap:wrap; gap:12px;}

/* ===== RESPONSIVE ===== */
@media (max-width:920px){
  .nav-toggle{display:flex;}
  .primary-menu{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--bg-alt); border-bottom:1px solid var(--hairline);
    flex-direction:column; gap:0; padding:8px 32px;
  }
  .primary-menu.is-open{display:flex;}
  .primary-menu li{padding:14px 0; border-bottom:1px solid var(--hairline);}
  .primary-menu li:last-child{border-bottom:none;}
  .hero .wrap{grid-template-columns:1fr; gap:48px;}
  .kundli-box{order:-1; max-width:340px;}
  .about{grid-template-columns:1fr;}
  .about-portrait{max-width:280px;}
  .services-grid{grid-template-columns:1fr 1fr;}
  .services-grid.detailed{grid-template-columns:1fr;}
  .process{grid-template-columns:1fr 1fr;}
  .process-step{border-bottom:1px solid var(--hairline);}
  .testimonials{grid-template-columns:1fr;}
  .contact{grid-template-columns:1fr;}
  .two-col{grid-template-columns:1fr;}
}
@media (max-width:600px){
  .wrap{padding:0 20px;}
  .services-grid{grid-template-columns:1fr;}
  .process{grid-template-columns:1fr;}
  .footer-top{flex-direction:column;}
}
