
/* =========================================================
   CalQube — Birth Star Calculator
   Premium Celestial Theme
   Lavender • Royal Purple • Champagne Gold
   ========================================================= */

:root {
  --ink: #25213a;
  --muted: #77738a;
  --plum: #51406f;
  --plum-deep: #35284f;
  --lavender: #eee9f7;
  --lavender-soft: #f7f4fb;
  --gold: #c79b52;
  --gold-light: #ead7b5;
  --paper: #fffdfb;
  --line: #e9e3ee;
  --danger: #a33d4b;
  --shadow: 0 18px 55px rgba(49, 37, 73, .09);
  --radius-lg: 26px;
  --radius-md: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(225, 211, 242, .62), transparent 27rem),
    radial-gradient(circle at 94% 15%, rgba(246, 226, 195, .42), transparent 25rem),
    #faf8fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--plum);
}

/* HEADER */

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 253, 251, .82);
  border: 1px solid rgba(233, 227, 238, .9);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(49, 37, 73, .045);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--plum-deep);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -1.2px;
}

.brand span {
  color: var(--gold);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  color: #625c70;
  font-size: .9rem;
  font-weight: 650;
  transition: color .2s ease;
}

.site-header nav a:hover {
  color: var(--gold);
}

/* PAGE LAYOUT */

.page-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 2px 18px;
  color: #91899c;
  font-size: .84rem;
}

.breadcrumbs a {
  color: var(--plum);
  font-weight: 700;
}

/* HERO SECTION */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(42px, 7vw, 78px) clamp(24px, 7vw, 76px);
  margin-bottom: 28px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, rgba(235, 209, 157, .24), transparent 14rem),
    radial-gradient(circle at 15% 100%, rgba(174, 146, 207, .28), transparent 19rem),
    linear-gradient(125deg, #302541 0%, #4b3a64 55%, #65517b 100%);
  box-shadow: 0 24px 60px rgba(52, 39, 73, .18);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 330px;
  height: 330px;
  right: -90px;
  top: -135px;
  box-shadow:
    0 0 0 28px rgba(255,255,255,.025),
    0 0 0 58px rgba(255,255,255,.02);
}

.hero::after {
  width: 190px;
  height: 190px;
  right: 75px;
  bottom: -135px;
}

.eyebrow,
.section-kicker {
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 13px 0 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 19px;
  color: #342744;
  background: linear-gradient(135deg, #f0dfbd, #d9b77d);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,.13);
  transition: transform .2s ease, box-shadow .2s ease;
}

.text-link:hover {
  color: #342744;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.17);
}

/* CARDS */

.calculator-card,
.content-card,
.closing-card {
  margin: 24px 0;
  padding: clamp(24px, 4.5vw, 42px);
  background: rgba(255, 253, 251, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calculator-card {
  border-top: 4px solid var(--gold);
}

.calculator-card .section-kicker,
.content-card .section-kicker,
.closing-card .section-kicker {
  color: var(--gold);
}

h2 {
  margin: 7px 0 12px;
  color: var(--plum-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.65px;
  line-height: 1.2;
}

h3 {
  color: var(--plum-deep);
}

.muted,
.small-note {
  color: var(--muted);
  font-size: .94rem;
}

.calculator-card > p {
  max-width: 720px;
}

/* FORM */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #40384f;
  font-size: .91rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ded6e8;
  border-radius: 13px;
  outline: none;
  font: inherit;
  font-size: .96rem;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input::placeholder {
  color: #aaa4b2;
}

.field input:focus,
.field select:focus {
  border-color: #8c73ae;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(140, 115, 174, .13);
}

.field small {
  color: #8a8493;
  font-size: .78rem;
  font-weight: 450;
  line-height: 1.5;
}

/* CALCULATE BUTTON */

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 27px;
  color: #fff;
  background: linear-gradient(120deg, #594574, #392b52);
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(65, 48, 88, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(65, 48, 88, .26);
}

.primary-button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(199, 155, 82, .6);
  outline-offset: 3px;
}

.form-note {
  margin: 13px 0 0;
  color: #918b98;
  font-size: .79rem;
}

.error-message {
  margin: 18px 0 0;
  padding: 12px 15px;
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #f3cdd2;
  border-radius: 12px;
  font-size: .9rem;
}

[hidden] {
  display: none !important;
}

/* RESULT PANEL */

.result-panel {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 213, 177, .22), transparent 16rem),
    linear-gradient(135deg, #f6f1fa, #fffaf2);
  border: 1px solid #e5d9ec;
  border-radius: 21px;
  animation: resultIn .45s ease both;
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-topline {
  color: #9b7945;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .17em;
}

.result-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
}

.result-label {
  color: #7f758d;
  font-size: .87rem;
  font-weight: 700;
}

.result-main h3 {
  margin: 2px 0 0;
  color: #3d2d55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
}

.result-subtitle {
  margin: 7px 0 0;
  color: #8c8297;
}

.result-pada {
  display: grid;
  place-items: center;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  color: #fff;
  background: linear-gradient(145deg, #6b5685, #3b2d53);
  border: 4px solid #e8d8b8;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(62, 46, 83, .18);
}

.result-pada span {
  align-self: end;
  color: #e9d8b7;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.result-pada strong {
  align-self: start;
  margin-top: -5px;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #e7deec;
  border: 1px solid #e7deec;
  border-radius: 14px;
}

.result-details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  background: rgba(255,255,255,.82);
}

.result-details span {
  color: #8a8292;
  font-size: .77rem;
}

.result-details strong {
  color: #443456;
  font-size: .98rem;
}

.result-description {
  margin: 19px 0 0;
  color: #5d5368;
}

.result-caveat {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #786d7e;
  background: rgba(255,255,255,.62);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: .78rem;
  line-height: 1.65;
}

/* CONTENT SECTIONS */

.content-card p {
  color: #686174;
}

.content-card > p:last-child {
  margin-bottom: 0;
}

.content-card h2 {
  margin-bottom: 15px;
}

.steps-list {
  display: grid;
  gap: 13px;
  padding-left: 22px;
  color: #696174;
}

.steps-list li {
  padding-left: 5px;
}

.steps-list li::marker {
  color: var(--gold);
  font-weight: 800;
}

.steps-list strong {
  color: #443653;
}

/* TABLES */

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .91rem;
}

thead {
  background: #f0ebf6;
}

th {
  padding: 14px 17px;
  color: #4b3b62;
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .025em;
}

td {
  padding: 12px 17px;
  color: #655d70;
  border-top: 1px solid #eee9f1;
}

tbody tr:nth-child(even) {
  background: #fcfaff;
}

tbody tr:hover {
  background: #f8f3fb;
}

.nakshatra-table td:first-child {
  width: 70px;
  color: #a27c43;
  font-weight: 750;
}

.nakshatra-table td:nth-child(2) {
  color: #443653;
  font-weight: 750;
}

/* INFORMATION CARDS */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.info-grid article {
  padding: 21px;
  background: linear-gradient(145deg, #fbf8fd, #fffaf4);
  border: 1px solid #eee7f1;
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.info-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(49, 37, 73, .07);
}

.info-grid h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 1.18rem;
}

.info-grid p {
  margin: 0;
  font-size: .9rem;
}

/* FAQ */

.faq-section details {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-section summary {
  position: relative;
  padding-right: 28px;
  color: #443653;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  position: absolute;
  top: -3px;
  right: 2px;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 500;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section details p {
  margin: 10px 0 0;
  padding-right: 25px;
  font-size: .92rem;
}

/* CLOSING SECTION */

.closing-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0%, rgba(222, 191, 137, .2), transparent 15rem),
    linear-gradient(125deg, #352947, #58456e);
  border: 0;
}

.closing-card h2 {
  color: #fff;
}

.closing-card > p {
  color: rgba(255,255,255,.76);
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.closing-links a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  color: #f8f1e6;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease;
}

.closing-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(234,215,181,.7);
}

/* FOOTER */

.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 35px auto 0;
  padding: 25px 0 35px;
  color: #898292;
  border-top: 1px solid #e9e3ee;
  text-align: center;
  font-size: .8rem;
}

.site-footer p {
  margin: 7px 0;
}

/* TABLET AND MOBILE */

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 24px, 1040px);
    margin-top: 12px;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header nav {
    gap: 15px;
  }

  .site-header nav a {
    font-size: .82rem;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1040px);
  }

  .breadcrumbs {
    margin-top: 20px;
  }

  .hero {
    border-radius: 22px;
  }

  .calculator-card,
  .content-card,
  .closing-card {
    padding: 23px 19px;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .primary-button {
    width: 100%;
  }

  .result-details {
    grid-template-columns: 1fr 1fr;
  }

  .result-details > div {
    padding: 13px 12px;
  }

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

@media (max-width: 420px) {
  .site-header nav {
    gap: 11px;
  }

  .site-header nav a {
    font-size: .75rem;
  }

  .result-main {
    align-items: flex-start;
  }

  .result-pada {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }

  .result-pada strong {
    font-size: 1.7rem;
  }

  .result-details {
    grid-template-columns: 1fr;
  }

  .closing-links {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-links a {
    justify-content: space-between;
  }
}
