/* ==========================================================
   VELMIRA SOCIALS — site styles
   Brand colours & fonts live in :root. Change them here.
   ========================================================== */
:root {
  --maroon-deep: #2b120e;   /* page background */
  --maroon: #531c15;        /* logo maroon, alternate sections */
  --maroon-soft: #3a1812;   /* cards, form fields */
  --champagne: #d9c4a8;     /* logo wordmark, buttons, accents */
  --ivory: #f6f0e6;         /* main text */
  --sand: #bba893;          /* secondary text */
  --line: rgba(217, 196, 168, 0.22);
  --whatsapp: #25d366;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4.5rem, 10vw, 8rem);
  --arch: 50% 50% 0 0 / 30% 30% 0 0; /* jharokha arch shape */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--maroon-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--champagne); color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
p { margin: 0; }
.lede { font-size: 1.08rem; color: var(--sand); max-width: 36rem; }
.muted { color: var(--sand); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section--alt { background: var(--maroon); }
.section--rule { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--champagne); color: var(--maroon-deep); padding: .6rem 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .85rem 1.9rem;
  font-family: var(--font-body); font-size: .86rem; font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--champagne); cursor: pointer;
  transition: background .35s, color .35s, border-color .35s;
}
.btn--solid { background: var(--champagne); color: var(--maroon-deep); }
.btn--solid:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--line { background: transparent; color: var(--ivory); }
.btn--line:hover { background: var(--champagne); color: var(--maroon-deep); }
.btn--wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #0b3d1f; }
.btn--wa:hover { background: #3be07a; }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.text-link { color: var(--champagne); border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.text-link:hover { color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(43, 18, 14, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.menu-btn .i-x { display: none; }
.nav-open .menu-btn .i-x { display: block; }
.nav-open .menu-btn .i-menu { display: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: .06em; color: var(--champagne); }
.logo__sub { font-size: .52rem; letter-spacing: .55em; margin-top: .3rem; margin-right: -.55em; color: var(--champagne); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .88rem; color: var(--ivory); opacity: .82; transition: opacity .3s, color .3s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--champagne); }
.nav .btn { opacity: 1; min-height: 2.6rem; padding: .55rem 1.3rem; color: var(--maroon-deep); }
.nav .btn:hover { color: var(--maroon-deep); }
.menu-btn { display: none; background: none; border: 0; color: var(--champagne); padding: .5rem; cursor: pointer; }
.menu-btn svg { width: 1.7rem; height: 1.7rem; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 4.5rem 0 0 0; z-index: 49;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--maroon-deep);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-family: var(--font-display); font-size: 2rem; opacity: 1; }
  .nav .btn { font-family: var(--font-body); font-size: .9rem; margin-top: 1rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Arch frames (signature motif) ---------- */
.arch { position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); }
.arch--framed::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--champagne); border-radius: var(--arch); opacity: .55; pointer-events: none;
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero__text { max-width: 34rem; }
.hero__place { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--champagne); margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lede { margin-bottom: 2.4rem; }
.hero__img { aspect-ratio: 4 / 5.4; max-width: 30rem; justify-self: end; width: 100%; }
.hero__img img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__img img.is-active { opacity: 1; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__img { order: -1; justify-self: center; max-width: 24rem; width: calc(100% - 28px); }
  .hero__text { text-align: center; margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
}
/* the one orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero__img img:first-child { animation: unveil 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero__img::before { animation: fadein 1.2s .9s both; }
  .hero__text > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero__text > :nth-child(2) { animation-delay: .25s; }
  .hero__text > :nth-child(3) { animation-delay: .4s; }
  .hero__text > :nth-child(4) { animation-delay: .55s; }
}
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: .55; } }

/* ---------- Section headings ---------- */
.head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--center { text-align: center; margin-inline: auto; }
.head p { margin-top: 1rem; color: var(--sand); }
.ornament { display: block; width: 4rem; height: 1px; margin: 0 auto 2rem; background: linear-gradient(90deg, transparent, var(--champagne), transparent); }

/* ---------- Intro statement ---------- */
.statement { text-align: center; }
.statement p { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.3; max-width: 46rem; margin-inline: auto; }

/* ---------- Selected work grid ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.work a { display: block; overflow: hidden; position: relative; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.work a:hover img { transform: scale(1.04); }
.work .w1 { grid-column: 1 / 6; aspect-ratio: 3 / 4.2; }
.work .w2 { grid-column: 6 / 13; }
.work .w2 img { object-position: 50% 42%; }
.work .w3 { grid-column: 1 / 8; }
.work .w3 img { object-position: 50% 45%; }
/* wide tiles take the height of their row, set by the tall tiles */
.work .w2 img, .work .w3 img { position: absolute; inset: 0; }
.work .w4 { grid-column: 8 / 13; aspect-ratio: 3 / 4.2; }
.work .w4 img { object-position: 50% 35%; }
.work .w5, .work .w6, .work .w7 { grid-column: span 4; aspect-ratio: 4 / 5; }
.work .w5 img { object-position: 50% 30%; }
.work .w6 img { object-position: 50% 30%; }
.work .w7 img { object-position: 50% 45%; }
@media (max-width: 640px) {
  .work .w1, .work .w4 { grid-column: span 6; aspect-ratio: 3 / 4.4; }
  .work .w2, .work .w3 { grid-column: 1 / -1; aspect-ratio: 4 / 3.6; }
  .work .w2 { order: -1; }
  .work .w3 { order: 1; }
  .work .w5, .work .w6 { grid-column: span 6; aspect-ratio: 3 / 4.4; order: 2; }
  .work .w7 { grid-column: 1 / -1; aspect-ratio: 1 / 1; order: 3; }
}
.after-grid { margin-top: 2.5rem; text-align: center; }

/* ---------- Services list with sticky image (home) ---------- */
.svc { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.svc__img { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5.2; }
.svc__img img { object-position: 50% 35%; }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__list a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.svc__list h3 { transition: color .3s; }
.svc__list p { color: var(--sand); margin-top: .35rem; font-size: .95rem; }
.svc__list a:hover h3 { color: var(--champagne); }
.svc__list svg { width: 1.2rem; height: 1.2rem; color: var(--champagne); transition: transform .3s; }
.svc__list a:hover svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc__img { position: relative; top: 0; max-width: 22rem; width: 100%; margin-inline: auto; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--champagne); margin-bottom: 1rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.steps p { color: var(--sand); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band with photo ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 14vw, 10rem); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,18,14,.6), rgba(43,18,14,.88)); }
.cta .wrap { position: relative; }
.cta p { color: var(--ivory); opacity: .85; margin: 1.2rem auto 2.4rem; max-width: 30rem; }
.cta .btn-row { justify-content: center; }
.cta--plain { background: var(--maroon); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(4rem, 10vw, 7rem) clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.page-head h1 { margin-bottom: 1.2rem; }
.page-head .lede { margin-inline: auto; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font-family: var(--font-body); font-size: .88rem; color: var(--sand);
  background: none; border: 1px solid transparent; padding: .5rem 1.1rem; cursor: pointer; transition: color .3s, border-color .3s;
}
.filters button[aria-pressed="true"] { color: var(--champagne); border-color: var(--champagne); }
.filters button:hover { color: var(--ivory); }
.masonry { columns: 3 18rem; column-gap: 1.1rem; }
.masonry button { display: block; width: 100%; margin: 0 0 1.1rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.masonry button:hover img { transform: scale(1.03); }
.masonry [hidden] { display: none; }
@media (max-width: 640px) { .masonry { columns: 2; column-gap: .6rem; } .masonry button { margin-bottom: .6rem; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(28, 11, 8, .96); padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(88vw, 70rem); width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--champagne); cursor: pointer; padding: .8rem; }
.lightbox button svg { width: 2rem; height: 2rem; }
.lb-close { top: .6rem; right: .6rem; }
.lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: var(--sand); font-size: .85rem; }

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; scroll-margin-top: 5.5rem; }
.service + .service { margin-top: var(--space); }
.service__img { aspect-ratio: 4 / 5; max-width: 30rem; width: 100%; }
.service:nth-of-type(even) .service__img { order: 2; justify-self: end; }
.service h2 { margin-bottom: 1.2rem; }
.service .muted { margin-bottom: 1.8rem; max-width: 32rem; }
.service h3 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--champagne); margin-bottom: .9rem; letter-spacing: .02em; }
.ticks { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 1px; background: var(--champagne); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service__img, .service:nth-of-type(even) .service__img { order: -1; justify-self: center; max-width: 24rem; }
}
.note { text-align: center; max-width: 40rem; margin-inline: auto; }
.note p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split .arch { aspect-ratio: 4 / 5.2; max-width: 28rem; width: 100%; }
.split .arch img { object-position: 50% 55%; }
.split h2 { margin-bottom: 1.4rem; }
.split p + p { margin-top: 1rem; }
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.approach div { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.approach h3 { margin-bottom: .6rem; }
@media (max-width: 860px) {
  .split, .approach { grid-template-columns: 1fr; }
  .split .arch { justify-self: center; max-width: 22rem; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; color: var(--sand); margin-bottom: .45rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ivory);
  background: var(--maroon-soft); border: 1px solid var(--line); padding: .8rem .95rem; border-radius: 2px;
  transition: border-color .3s;
}
.form select option { background: var(--maroon-deep); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--champagne); }
.form textarea { resize: vertical; min-height: 7rem; }
.form .error { display: block; color: #ffb4a8; font-size: .82rem; margin-top: .35rem; min-height: 1em; }
.form [aria-invalid="true"] { border-color: #ff8f7d; }
.form .hint { font-size: .85rem; color: var(--sand); margin-top: .8rem; }
.details { display: grid; gap: 1.6rem; }
.details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.details li a, .details li span { display: flex; align-items: center; gap: .9rem; }
.details li a:hover { color: var(--champagne); }
.details .addr { align-items: flex-start; line-height: 1.55; }
.details .addr svg { margin-top: .2rem; }
.details .addr span { display: block; }
.details .addr em { display: block; font-style: normal; font-size: .85rem; color: var(--champagne); margin-top: .35rem; }
.details svg { width: 1.15rem; height: 1.15rem; color: var(--champagne); flex: none; }
.details .btn { width: 100%; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

.faq { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--champagne); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sand); padding-bottom: 1.5rem; max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .logo { align-items: flex-start; }
.site-footer .logo__sub { margin-right: 0; }
.site-footer p { color: var(--sand); font-size: .92rem; margin-top: 1rem; max-width: 20rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--champagne); margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.site-footer ul a:hover { color: var(--champagne); }
.site-footer .copyright { max-width: none; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--sand); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
@media (max-width: 860px) { .wa-float { display: flex; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
