/* prime.css: the shared layout and type system for every page. Loaded last.
   Pages are built from the blocks in components.py; each block is styled here once. */

:root {
  --p-ink: #10261c;
  --p-muted: #4a584c;
  --p-green: #0c3424;
  --p-paper: #f1f3ec;
  --p-tint: #e6ebde;
  --p-card: #fffefa;
  --p-line: #d3dbcb;
  --p-gold: #d2ab57;
  --p-gold-ink: #7a5a1e;
  --p-plum: #8a2050;
  --p-on-dark: #f4f2e7;
  --p-on-dark-muted: #c9d5c4;
  --p-radius: 14px;
  --p-gap: clamp(18px, 2.2vw, 28px);
  --p-section: clamp(56px, 7.5vw, 100px);
}

html { scroll-padding-top: 96px; }
body { color: var(--p-ink); }

main h1, main h2, main h3 { font-stretch: 104%; text-wrap: balance; }
main h1 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 760; letter-spacing: -.025em; line-height: 1.06; }
main h2 { font-size: clamp(27px, 3vw, 38px); font-weight: 720; letter-spacing: -.02em; line-height: 1.12; }
main h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons and links ---------- */
.button { font-size: 15px; }
.button.p-gold { background: var(--p-gold); border-color: var(--p-gold); color: #10261c; }
.button.p-gold:hover { background: #e0bd6f; border-color: #e0bd6f; }
.button.p-ghost { background: transparent; border-color: #ffffff66; color: #fff; }
.button.p-ghost:hover { background: #ffffff14; border-color: #fff; }
.text-link { font-size: 15px; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.p-label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; color: var(--p-gold-ink); }
.p-prose a, .p-note a, .p-talk a, .p-planned a, .p-facts a, .p-figure figcaption a, .faq-list p a, .p-acc-body a, .p-after a {
  color: var(--p-green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.p-prose a:hover, .p-note a:hover, .p-talk a:hover, .p-planned a:hover, .p-facts a:hover, .faq-list p a:hover, .p-acc-body a:hover { color: var(--p-plum); }

/* ---------- Home hero ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: clamp(500px, 66vh, 640px); background: var(--p-green); color: var(--p-on-dark); }
.p-hero-copy { display: flex; align-items: center; padding: clamp(44px, 6vw, 84px) clamp(24px, 4vw, 64px) clamp(44px, 6vw, 84px) max(4vw, calc((100vw - 1320px) / 2)); }
.p-hero-inner { max-width: 640px; }
.p-hero .p-label { color: var(--pale-gold); }
.p-hero h1 { margin: 0 0 20px; font-size: clamp(36px, 4.3vw, 60px); color: #fff; }
.p-hero h1 em { color: var(--pale-gold); }
.p-hero-lead { margin: 0 0 30px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--p-on-dark-muted); }
.p-hero-quote { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--p-on-dark); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.p-hero-quote:hover { color: var(--pale-gold); }
.p-hero-photo { position: relative; margin: 0; min-height: 260px; overflow: hidden; }
.p-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.p-hero-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 20px 12px; font-size: 12px; line-height: 1.5; color: #fff; background: linear-gradient(transparent, #00000099); }

/* ---------- Facts ---------- */
.p-facts-band { background: var(--p-card); border-bottom: 1px solid var(--p-line); }
.p-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.p-facts > div { padding: 22px 24px; border-left: 1px solid var(--p-line); }
.p-facts > div:first-child { padding-left: 0; border-left: 0; }
.p-facts dt { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; color: var(--p-gold-ink); }
.p-facts dd { margin: 0; font-size: 17px; font-weight: 620; line-height: 1.4; }
.p-facts--stack { display: block; }
.p-facts--stack > div, .p-facts--stack > div:first-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--p-line); }
.p-facts--stack > div:first-child { border-top: 0; padding-top: 4px; }
.p-facts--stack dd { font-size: 16px; font-weight: 500; line-height: 1.55; }

/* ---------- Sections and headings ---------- */
.p-section { padding-block: var(--p-section); }
.p-section--tint { background: var(--p-tint); }
.p-section--dark { background: var(--p-green); color: var(--p-on-dark); }
.p-section--dark h2 { color: #fff; }
.p-section--dark .p-label { color: var(--pale-gold); }
.p-section--top { padding-top: clamp(32px, 4vw, 52px); }
.p-head { max-width: 780px; margin-bottom: clamp(26px, 3.2vw, 42px); }
.p-head h2 { margin: 0; }
.p-head p:not(.p-label) { margin: 12px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--p-muted); }
.p-section--dark .p-head p:not(.p-label) { color: var(--p-on-dark-muted); }
.p-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.p-narrow { max-width: 860px; }
.p-note { margin: 26px 0 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); }

/* ---------- Page header (inner pages) ---------- */
.p-pagehead { background: var(--p-card); border-bottom: 1px solid var(--p-line); }
.p-pagehead-inner { padding-block: clamp(26px, 3.6vw, 52px); }
.p-pagehead--photo .p-pagehead-inner { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.p-pagehead .breadcrumbs { margin: 0 0 20px; }
.p-pagehead h1 { margin: 0 0 16px; }
.p-pagehead--compact h1 { font-size: clamp(32px, 3.6vw, 46px); }
.p-lead { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--p-muted); }
.p-lead strong { color: var(--p-ink); font-weight: 650; }
.p-pagehead .p-actions { margin-top: 26px; }
.p-pagehead--photo .p-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.p-local { margin-left: .25em; font-family: 'Tiro Marathi', serif; font-size: .5em; font-weight: 400; letter-spacing: 0; white-space: nowrap; color: var(--p-gold-ink); }
.p-add { cursor: pointer; font-family: inherit; }
.p-add[aria-pressed="true"] { background: #f6e6ed; border-color: #ae587c; color: #762048; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--p-muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Photographs ---------- */
.p-figure { margin: 0; }
.p-figure img { display: block; width: 100%; height: auto; border-radius: var(--p-radius); background: #dfe5d6; }
.p-figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--p-muted); }
.p-photos { display: grid; gap: 14px; }
.p-photos--4 { grid-template-columns: 1fr 1fr; }
.p-photos .p-figure img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Product cards ---------- */
.p-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-gap); }
.p-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); transition: border-color .2s, box-shadow .2s; }
.p-card:hover { border-color: #a9b8a0; box-shadow: 0 10px 28px #10261c14; }
.p-card-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe5d6; }
.p-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .p-card-photo img { transform: scale(1.04); }
.p-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px; }
.p-card .p-card-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.p-card .p-card-title a::after { content: ''; position: absolute; inset: 0; }
.p-card .p-card-title span { font-family: 'Tiro Marathi', serif; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--p-gold-ink); }
.p-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--p-muted); }
.p-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.p-card-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 650; color: var(--p-green); }
.p-card .add-enquiry { position: relative; z-index: 1; min-height: 40px; padding: 8px 14px; border: 1px solid #a9b8a0; border-radius: 8px; background: transparent; color: var(--p-ink); font: 650 14px/1.3 Archivo, Arial, sans-serif; cursor: pointer; }
.p-card .add-enquiry:hover { background: var(--p-tint); }
.p-card .add-enquiry[aria-pressed="true"] { background: #f6e6ed; border-color: #ae587c; color: #762048; }
.p-planned { margin: 26px 0 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); }
.p-planned span { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: #f3e1e9; color: var(--p-plum); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.p-below { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 26px; }
.p-below .p-planned { margin: 0; }

/* ---------- Photo gallery ---------- */
.p-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p-tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #174834; }
.p-tile img { width: 100%; height: 100%; object-fit: cover; }
.p-tile figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 44px 16px 14px; background: linear-gradient(transparent, #051911d9); color: #fff; }
.p-tile strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.p-tile span { font-size: 14px; line-height: 1.4; color: #dfe7da; }

/* ---------- Steps ---------- */
.p-steps { margin: 0; padding: 0; list-style: none; }
.p-steps li { display: flex; align-items: flex-start; gap: 16px; }
.p-step-number { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p-green); color: #fff; font-size: 16px; font-weight: 700; }
.p-steps h3 { margin: 5px 0 4px; font-size: 18px; }
.p-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--p-muted); }
.p-steps--stack { display: grid; gap: 18px; margin-bottom: 24px; }
.p-steps--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--p-gap); }
.p-steps--grid li { flex-direction: column; gap: 14px; padding: 24px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.p-steps--grid h3 { margin-top: 0; font-size: 19px; }

/* ---------- Enquiry form section ---------- */
.p-quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.p-quote-info h1, .p-quote-info h2 { margin: 0 0 14px; }
.p-quote-info h1 { font-size: clamp(32px, 3.6vw, 46px); }
.p-quote-info .breadcrumbs { margin-bottom: 20px; }
.p-quote-intro { margin: 0 0 28px; max-width: 46ch; font-size: 18px; line-height: 1.55; color: var(--p-muted); }
.p-contact-actions { margin-bottom: 24px; }
.p-side-title { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--p-gold-ink); }
.p-talk, .p-after { margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); }
.p-enquiry { display: block; }
.p-enquiry .quote-workspace { background: var(--p-card); }
.p-enquiry .quote-workspace legend { font-size: 20px; }
.p-enquiry .quote-workspace label, .p-enquiry .quote-workspace .product-choice { font-size: 14px; }
.p-enquiry .quote-workspace input::placeholder, .p-enquiry .quote-workspace textarea::placeholder { font-size: 14px; }
.p-enquiry .enquiry-type-tabs { margin-bottom: 26px; }
.p-enquiry .form-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--p-muted); }
.p-enquiry .form-note a { text-decoration: underline; }
.p-enquiry .optional-fields > summary > span, .p-enquiry .planned-choice small { font-size: 12px; }
.p-enquiry .planned-choice small { margin-left: 6px; white-space: nowrap; }

/* ---------- Questions ---------- */
.p-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.p-faq h2 { margin: 0 0 18px; }
.faq-list details > p { max-width: 72ch; color: var(--p-muted); }

/* ---------- Bands ---------- */
.p-band { padding-block: clamp(44px, 5vw, 68px); background: var(--p-green); color: var(--p-on-dark); }
.p-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.p-band h2 { margin: 0 0 8px; font-size: clamp(25px, 2.6vw, 34px); color: #fff; }
.p-band p { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--p-on-dark-muted); }

/* ---------- Text, panels, tables, lists ---------- */
.p-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.p-two--photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.p-prose h2 { margin: 0 0 18px; }
.p-prose p { margin: 0 0 1em; max-width: 62ch; font-size: 18px; line-height: 1.65; }
.p-panel { padding: 26px 28px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.p-panel-title { margin: 0 0 8px; font-size: 20px !important; }
.p-deflist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-gap); margin: 0; }
.p-deflist > div { padding: 22px 24px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.p-deflist dt { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.p-deflist dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--p-muted); }
.p-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--p-gap); }
.p-pair article { padding: 26px 28px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.p-pair h2, .p-pair h3 { margin: 0 0 12px; font-size: 22px; }
.p-pair p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--p-muted); }
.p-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.p-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--p-gold); }
.p-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.p-table th, .p-table td { padding: 14px 0; border-top: 1px solid var(--p-line); text-align: left; vertical-align: top; }
.p-table tr:last-child th, .p-table tr:last-child td { border-bottom: 1px solid var(--p-line); }
.p-table th { width: 34%; padding-right: 20px; font-weight: 700; }
.p-table td { color: var(--p-muted); }
.p-small { font-size: 14px; color: var(--p-muted); }

/* ---------- Buyer's guide accordion ---------- */
.p-accordion { border-top: 1px solid #c3cdb8; }
.p-acc { border-bottom: 1px solid #c3cdb8; }
.p-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; font-size: 18px; font-weight: 700; cursor: pointer; }
.p-acc summary::-webkit-details-marker { display: none; }
.p-acc summary span { font-size: 24px; font-weight: 400; line-height: 1; color: var(--p-plum); transition: transform .2s; }
.p-acc[open] summary span { transform: rotate(45deg); }
.p-acc-body { max-width: 860px; padding: 0 0 24px; }
.p-acc-body h3 { margin: 20px 0 8px; font-size: 17px; }
.p-acc-body h3:first-child { margin-top: 0; }
.p-acc-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--p-muted); }
.p-acc-body .p-table th { width: 30%; }
.p-cite a { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--p-gold-ink); text-decoration: none; }
.p-sources { display: grid; gap: 8px; margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.55; }

/* ---------- Photography page ---------- */
.company-photo img { height: auto; }
.company-photo figcaption { font-size: 13px; }

/* ---------- Header ---------- */
.site-header { --gargi-header-height: 76px; }
.site-header .brand { width: 196px; flex-basis: 196px; }
.site-header .main-navigation, .site-header .main-navigation .nav-whatsapp, .site-header .main-navigation .nav-cta { font-size: 15px; }
.site-header .product-menu > a { font-size: 15px; }

/* ---------- Footer ---------- */
.footer-registrations { margin: 14px 0 0; font-size: 13px; }
.site-footer .footer-copyright, .site-footer .footer-photography-note { color: var(--p-muted); }
.site-footer .footer-markets > span { color: var(--p-gold-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .site-header .brand { width: 184px; flex-basis: 184px; }
  body:has(.main-navigation.open) { overflow: hidden; }
  .site-header .main-navigation.open { min-height: calc(100dvh - var(--gargi-header-height)); }
}
@media (max-width: 980px) {
  .site-header { --gargi-header-height: 68px; }
  .site-header .brand { width: 168px; flex-basis: 168px; }
  .p-quote, .p-faq, .p-two, .p-two--photos { grid-template-columns: minmax(0, 1fr); }
  .p-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-deflist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .p-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .p-hero-copy { padding: 40px 5vw 44px; }
  .p-hero-photo { height: 270px; min-height: 0; }
  .p-hero-photo img { object-position: center 78%; }
  .p-pagehead--photo .p-pagehead-inner { grid-template-columns: minmax(0, 1fr); }
  .p-pagehead--photo .p-figure img { aspect-ratio: 16 / 9; }
  .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-related .p-card:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .site-header { --gargi-header-height: 60px; }
  .site-header .brand { width: 148px; flex-basis: 148px; }
  .p-actions .button { flex: 1 1 100%; }
  .p-facts { grid-template-columns: minmax(0, 1fr); }
  .p-facts > div, .p-facts > div:first-child { padding: 14px 0; border-left: 0; border-top: 1px solid var(--p-line); }
  .p-facts > div:first-child { border-top: 0; }
  .p-head--row { display: block; }
  .p-head-aside { margin-top: 14px; }
  .p-cards { gap: 12px; }
  .p-card-body { gap: 6px; padding: 14px 14px 16px; }
  .p-card .p-card-title { font-size: 18px; }
  .p-card .p-card-title span { font-size: 14px; }
  .p-card p { font-size: 14px; }
  .p-card-link { display: none; }
  .p-card-actions { padding-top: 8px; }
  .p-card .add-enquiry { width: 100%; min-height: 44px; padding-inline: 8px; }
  .p-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-tile { aspect-ratio: 1 / 1; }
  .p-tile figcaption { padding: 34px 12px 10px; }
  .p-tile strong { font-size: 14px; }
  .p-tile span { display: none; }
  .p-steps--grid, .p-deflist, .p-pair { grid-template-columns: minmax(0, 1fr); }
  .p-panel, .p-pair article { padding: 22px 20px; }
  .p-prose p, .p-quote-intro, .p-head p:not(.p-label) { font-size: 17px; }
  .p-table th, .p-table td { display: block; width: auto; padding-right: 0; }
  .p-table th { padding-bottom: 2px; }
  .p-table td { padding-top: 0; border-top: 0; }
  .p-table tr:last-child th { border-bottom: 0; }
  .p-acc-body .p-table th { width: auto; }
  .p-acc summary { font-size: 17px; }
  .p-band-inner { display: block; }
  .p-band .p-actions { margin-top: 22px; }
  .p-photos--4 { gap: 10px; }
  .overview-table { min-width: 0; }
  .overview-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .overview-table tbody, .overview-table tr, .overview-table td { display: block; }
  .overview-table tr { margin-bottom: 12px; padding: 16px 18px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
  .overview-table td, .overview-table td:first-child { min-width: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.55; }
  .overview-table td:first-child { margin-bottom: 4px; font-size: 18px; }
  .overview-table td[data-label] { margin-top: 8px; color: var(--p-muted); }
  .overview-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--p-ink); }
}
.p-subhead { margin: 40px 0 12px; }
.print-logo { display: none; }
@media print {
  .p-band, .p-hero-photo, .p-gallery, .breadcrumbs { display: none !important; }
  .print-logo { display: block; width: 200px; height: auto; margin-bottom: 14px; }
}
