/* VK Marble World — premium luxury theme */

:root {
  --black: #0a0a0b;
  --black-soft: #121214;
  --white: #f7f5f0;
  --white-muted: #b8b5ad;
  --gold: #c9a962;
  --gold-deep: #a6853a;
  --gold-glow: rgba(201, 169, 98, 0.35);
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— Login ——— */

.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--gold-glow), transparent),
    linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
  z-index: 0;
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.login-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-brand__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}

.login-brand__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.login-brand__tag {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white-muted);
  font-weight: 300;
}

.login-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.login-form__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--white);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-muted);
}

.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.login-form__error {
  color: #e8a0a0;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(201, 169, 98, 0.35);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.45);
}

.btn--ghost:hover {
  background: rgba(201, 169, 98, 0.1);
  color: var(--white);
}

/* ——— Home / Header ——— */

.page-home {
  padding-top: 72px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.75) 100%);
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
}

.logo:hover {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav__link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-muted);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

/* ——— Hero ——— */

.hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--gold-glow), transparent 55%),
    var(--black);
}

.hero__content {
  max-width: 640px;
  animation: fadeUp 0.9s var(--ease-out) both;
}

.hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero__text {
  color: var(--white-muted);
  margin: 0 0 1.75rem;
  font-weight: 300;
}

/* ——— Sections ——— */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section--alt {
  background: var(--black-soft);
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.section__subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--white-muted);
  font-weight: 300;
}

.link-gold {
  color: var(--gold);
}

/* ——— Gallery grid 4 × 5 ——— */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
  border: 1px solid rgba(201, 169, 98, 0.12);
  cursor: pointer;
  animation: fadeUp 0.6s var(--ease-out) both;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.gallery-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gallery-card__inner {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.08);
}

.gallery-card__label {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-card__cat {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* ——— Modal ——— */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.35s var(--ease-out) both;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  background: var(--black-soft);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  animation: scaleIn 0.4s var(--ease-out) both;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(201, 169, 98, 0.35);
}

.modal__img {
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: var(--black);
}

.modal__meta {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.15);
}

.modal__cat {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--white-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
}

/* ——— Animations ——— */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ——— Responsive ——— */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Billing ——— */

.page-billing {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.billing-main {
  flex: 1;
}

.billing-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.billing-intro {
  margin-bottom: 2rem;
}

.billing-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.billing-row--fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.billing-row--fields .field--grow {
  flex: 1 1 220px;
}

.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
}

.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.req {
  color: var(--gold);
}

.billing-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

.billing-items-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.btn--sm {
  font-size: 0.75rem;
  padding: 0.55rem 1rem;
}

.billing-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.billing-line .field {
  margin-bottom: 0;
}

.billing-line .field--grow {
  flex: 1 1 220px;
}

.billing-line .field--hsn {
  flex: 0 1 100px;
}

.billing-line .field--price {
  flex: 0 1 140px;
}

.billing-summary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

.billing-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: var(--white);
}

.billing-summary__row--muted {
  color: var(--white-muted);
  font-size: 0.85rem;
}

.billing-total-row--grand {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.25);
}

.btn--icon {
  min-width: 2.5rem;
  padding: 0.5rem;
  line-height: 1;
  font-size: 1.25rem;
  align-self: center;
}

.field-error {
  color: #e8a0a0;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.billing-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.billing-total-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white-muted);
}

.billing-total-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
}

.billing-actions {
  margin-top: 1.75rem;
}

.modal--receipt .modal__panel--tax {
  max-width: 900px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
}

.tax-invoice-print {
  padding: 1.25rem 1.5rem 1rem;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.45;
  color: #000;
  background: #fff;
}

.ti-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.ti-header__spacer {
  flex: 1;
}

.ti-mob {
  margin: 0;
  font-size: 11px;
  font-family: var(--font-body);
  color: #000;
}

.ti-company {
  margin: 0.35rem 0 0.5rem;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
}

.ti-address {
  margin: 0 auto;
  max-width: 52rem;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-body);
  color: #000;
}

.ti-rule-double {
  border: none;
  border-top: 1px solid #000;
  margin: 0.75rem 0 0.35rem;
  padding: 0;
}

.ti-rule-double::after {
  content: "";
  display: block;
  border-top: 1px solid #000;
  margin-top: 2px;
}

.ti-refdate {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-body);
  margin-bottom: 0.65rem;
  color: #000;
}

.ti-refdate strong {
  color: #000;
  font-weight: 600;
}

.ti-banner {
  background: #c5c5c5;
  color: #111;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.5rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
}

.ti-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 11px;
  font-family: var(--font-body);
  color: #000;
}

.ti-col p {
  margin: 0 0 0.25rem;
  color: #000;
}

.ti-kind {
  margin-bottom: 0.2rem !important;
  color: #000;
}

.ti-client-name {
  font-weight: 700;
  font-size: 12px;
  color: #000;
}

.ti-client-block {
  margin: 0.35rem 0 0 !important;
  line-height: 1.5;
  color: #000;
}

.ti-col--right {
  text-align: right;
}

.ti-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  color: #000;
}

.ti-table th,
.ti-table td {
  border: 1px solid #000;
  padding: 0.4rem 0.5rem;
  vertical-align: top;
  color: #000;
}

.ti-table thead th {
  background: #e8e8e8;
  font-weight: 600;
  text-align: left;
  color: #000;
}

.ti-c-sno {
  width: 2.25rem;
  text-align: center;
}

.ti-c-part {
  min-width: 8rem;
}

.ti-c-hsn {
  width: 5.5rem;
  text-align: center;
}

.ti-c-amt {
  width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}

.ti-tbody-summary .ti-cell-sub {
  text-align: right;
  font-weight: 500;
}

.ti-tbody-summary td {
  border-top: 1px solid #000;
}

.ti-total-row td {
  border-top: 2px solid #000;
  font-weight: 600;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #000;
}

.ti-total-words {
  font-size: 10px;
  line-height: 1.4;
}

.ti-total-num {
  font-size: 12px;
}

.ti-bank {
  margin-top: 0.75rem;
  font-size: 10px;
  font-family: var(--font-body);
  line-height: 1.55;
  color: #000;
}

.ti-bank__title {
  text-decoration: underline;
  font-weight: 600;
  margin-bottom: 0.35rem !important;
  color: #000;
}

.ti-bank p {
  margin: 0 0 0.15rem;
  color: #000;
}

.ti-note {
  margin: 0.85rem 0 0;
  font-size: 10px;
  font-family: var(--font-body);
  color: #000;
}

.receipt-toolbar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.15);
}

@media print {
  body * {
    visibility: hidden;
  }

  .tax-invoice-print,
  .tax-invoice-print * {
    visibility: visible;
  }

  .tax-invoice-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    padding: 12mm 14mm;
    margin: 0;
    color: #000 !important;
    background: #fff !important;
    font-family: "Noto Serif", Georgia, "Times New Roman", serif !important;
  }

  .tax-invoice-print .ti-mob,
  .tax-invoice-print .ti-address,
  .tax-invoice-print .ti-refdate,
  .tax-invoice-print .ti-two-col,
  .tax-invoice-print .ti-bank,
  .tax-invoice-print .ti-note {
    color: #000 !important;
  }

  .tax-invoice-print .ti-company {
    color: #000 !important;
  }

  .tax-invoice-print .ti-client-block,
  .tax-invoice-print .ti-kind {
    color: #222 !important;
  }

  .tax-invoice-print .ti-banner {
    background: #d9d9d9 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tax-invoice-print .ti-table th,
  .tax-invoice-print .ti-table td {
    border-color: #000 !important;
    color: #000 !important;
  }

  .tax-invoice-print .ti-table thead th {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .modal--receipt {
    position: static !important;
    display: block !important;
    background: transparent !important;
  }

  .modal__backdrop {
    display: none !important;
  }

  .modal__panel--tax {
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }
}
