/* ==========================================================================
   Swasti Builders — Base styles and components
   Requires tokens.css. Class prefix: sw-
   Fonts: <link href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&family=Jost:wght@400;500&display=swap" rel="stylesheet">
   ========================================================================== */

/* ---- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--texture-grain);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
::selection { background: var(--red-100); color: var(--red-900); }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, .sw-display, .sw-h1, .sw-h2, .sw-h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.sw-display { font-size: var(--text-6xl); line-height: var(--leading-none); letter-spacing: var(--tracking-display); }
h1, .sw-h1 { font-size: var(--text-4xl); }
h2, .sw-h2 { font-size: var(--text-3xl); }
h3, .sw-h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }
h4, .sw-h4 {
  font-family: var(--font-sans); font-size: var(--text-lg);
  font-weight: var(--weight-medium); line-height: var(--leading-snug); margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-4); max-width: 68ch; text-wrap: pretty; }
.sw-lead { font-size: var(--text-xl); font-weight: var(--weight-light); line-height: 1.5; color: var(--color-text-muted); }
.sw-small { font-size: var(--text-sm); color: var(--color-text-muted); }
.sw-display em, h1 em, h2 em { font-style: normal; color: var(--color-brand); }

/* Eyebrow: the spaced caps of the "BUILDERS" lockup */
.sw-eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-lockup);
  text-transform: uppercase;
  color: var(--color-brand-text);
  margin-bottom: var(--space-4);
}

a, .sw-link {
  color: var(--color-brand-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover, .sw-link:hover { color: var(--color-brand-press); }

/* ---- Layout --------------------------------------------------------------- */
.sw-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sw-container--narrow { max-width: var(--container-narrow); }
.sw-section { padding-block: var(--section-y); }
.sw-section--sunken { background: var(--color-bg-sunken); }
.sw-section--inverse { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.sw-section--inverse .sw-eyebrow { color: var(--red-300); }
.sw-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.sw-stack > * + * { margin-top: var(--space-4); }

/* ---- Divider: "the cut" — a line with the stencil gap from the logo's loops */
.sw-divider {
  height: 0; border: 0; margin: var(--space-7) 0;
  border-top: var(--border-thin) solid var(--color-divider);
  position: relative; overflow: visible;
}
.sw-divider--cut {
  border: 0; height: 9px;
  background:
    linear-gradient(var(--color-brand), var(--color-brand)) left center / calc(50% - 6px) 3px no-repeat,
    linear-gradient(var(--color-brand), var(--color-brand)) right center / calc(50% - 6px) 3px no-repeat;
  width: 4.5rem; margin-inline: 0;
}

/* ---- Buttons -------------------------------------------------------------- */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium);
  letter-spacing: 0; text-decoration: none;
  border: var(--border-thin) solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.sw-btn:active { transform: translateY(1px); }
.sw-btn:disabled, .sw-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.sw-btn svg { width: 1.1em; height: 1.1em; }

.sw-btn--primary { background: var(--color-brand); color: var(--color-on-brand); }
.sw-btn--primary:hover { background: var(--color-brand-hover); color: var(--color-on-brand); }
.sw-btn--primary:active { background: var(--color-brand-press); }

.sw-btn--secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.sw-btn--secondary:hover { background: var(--color-text); color: var(--color-text-inverse); }

.sw-btn--ghost { background: transparent; color: var(--color-brand-text); padding-inline: var(--space-2); }
.sw-btn--ghost:hover { color: var(--color-brand-press); background: var(--color-brand-soft); }

.sw-btn--inverse { background: var(--stone-50); color: var(--stone-800); }
.sw-btn--inverse:hover { background: #fff; color: var(--stone-900); }

.sw-btn--sm { min-height: 36px; padding: 0 var(--space-4); font-size: var(--text-xs); }
.sw-btn--lg { min-height: 56px; padding: 0 var(--space-7); }

/* ---- Tags: softscape (nature) and hardscape (structure) ------------------ */
.sw-tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.85em; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: 0.04em;
  background: var(--color-bg-sunken); color: var(--color-text-muted);
}
.sw-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sw-tag--soft  { background: var(--color-softscape-soft); color: var(--stone-700); }
.sw-tag--hard  { background: var(--color-hardscape-soft); color: var(--stone-800); }
.sw-tag--brand { background: var(--color-brand-soft); color: var(--red-700); }

/* ---- Cards ---------------------------------------------------------------- */
.sw-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.sw-card { color: inherit; text-decoration: none; display: block; }
.sw-card__media { aspect-ratio: 4 / 5; background: var(--stone-200); overflow: hidden; border-radius: var(--radius-xl); }
.sw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.sw-card:hover .sw-card__media img { transform: scale(1.03); }
.sw-card__body { padding: var(--space-4) 0 0; }
.sw-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.sw-card__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-regular); letter-spacing: -0.02em; line-height: var(--leading-snug); margin: 0 0 var(--space-1); }

/* Service card: icon + text, no image */
.sw-service { padding: var(--space-6); border-top: var(--border-thick) solid var(--color-brand); background: var(--color-bg-raised); }
.sw-service__icon { width: 40px; height: 40px; color: var(--color-brand); margin-bottom: var(--space-4); }

/* ---- Stats ---------------------------------------------------------------- */
.sw-stat__value { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: var(--text-5xl); letter-spacing: var(--tracking-display); line-height: 1; color: var(--color-text); }
.sw-stat__label { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ---- Quote ---------------------------------------------------------------- */
.sw-quote { margin: 0; padding-left: var(--space-5); border-left: var(--border-thick) solid var(--color-softscape); }
.sw-quote p { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); }
.sw-quote cite { font-style: normal; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- Forms ---------------------------------------------------------------- */
.sw-field { display: grid; gap: var(--space-2); }
.sw-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text); }
.sw-hint  { font-size: var(--text-xs); color: var(--color-text-muted); }
.sw-input, .sw-select, .sw-textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg) !important;
  font: inherit; color: var(--color-text);
  background: var(--color-bg-raised);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.sw-textarea { min-height: 8rem; resize: vertical; }
.sw-input::placeholder, .sw-textarea::placeholder { color: var(--stone-400); }
.sw-input:hover, .sw-select:hover, .sw-textarea:hover { border-color: var(--stone-500); }
.sw-input:focus, .sw-select:focus, .sw-textarea:focus { outline: none; border-color: var(--color-hardscape); box-shadow: 0 0 0 3px var(--red-100); }
.sw-field--error .sw-input, .sw-field--error .sw-textarea { border-color: var(--color-danger); }
.sw-field--error .sw-hint { color: var(--color-danger); }

/* ---- Navigation: floating rounded bar, logo centered ----------------------- */
.sw-nav { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--color-bg); background-image: var(--texture-grain); }
.sw-nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5);
  min-height: 100px; padding: 10px var(--gutter);
}
.sw-nav__group { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 3rem); align-self: stretch; }
/* left side sits on a soft sand panel that fades out toward the logo (after lightshiprv.com) */
.sw-nav__group:first-child {
  margin-left: calc(var(--gutter) * -0.5); padding: 0 clamp(1.5rem, 4vw, 5rem) 0 clamp(1rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--sand-200) 0%, var(--sand-100) 45%, rgb(239 230 218 / 0) 100%);
}
.sw-nav__group--end { justify-content: flex-end; }
.sw-nav__menu { width: 44px; height: 44px; margin-right: clamp(0rem, 2vw, 2rem); display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-text); }
.sw-nav__menu span { display: block; width: 22px; height: 1.5px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); }
.sw-nav__logo { display: block; justify-self: center; }
.sw-nav__logo img { height: 84px; width: auto; }
.sw-nav a.sw-nav__link { color: var(--color-text); text-decoration: none; font-size: var(--text-base); letter-spacing: -0.01em; white-space: nowrap; }
.sw-nav a.sw-nav__link:hover, .sw-nav a.sw-nav__link[aria-current="page"] { color: var(--color-brand-text); }
.sw-nav a.sw-nav__link--cta { color: var(--color-brand-text); }
@media (max-width: 1024px) { .sw-nav__group { gap: var(--space-4); } .sw-nav__menu { margin-right: 0; } }
@media (max-width: 768px) {
  .sw-nav__logo img { height: 60px; }
  .sw-nav__link { display: none; }
  .sw-nav__group:first-child { margin-left: 0; padding: 0 var(--space-5) 0 var(--space-2); }
}

/* ---- Hero: full-bleed media panel, text sits on the image ------------------- */
.sw-hero { position: relative; margin: 0; min-height: 100svh; padding-top: 116px; border-radius: 0; overflow: hidden; color: var(--color-text); display: flex; flex-direction: column; justify-content: flex-end; }
.sw-hero__media { position: absolute; inset: 0; }
.sw-hero__media img, .sw-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.sw-hero--photo { color: #fff; }
.sw-hero--photo .sw-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.15) 0%, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0.45) 100%); }
.sw-waves { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Portrait: Ravi's engraving exactly as supplied, blended in (after plaid.com). Its edges fade
   into the cream, and a soft cream glow sits behind the head so the moving lines pass around
   the face instead of through it. */
.sw-hero__portrait, .sw-hero__glow { position: absolute; right: 0; top: 104px; height: calc(100% - 104px); aspect-ratio: 1; max-width: 68%; pointer-events: none; }
.sw-hero__glow { background: radial-gradient(ellipse 34% 40% at 54% 44%, var(--color-bg) 0%, var(--color-bg) 62%, rgb(245 238 234 / 0) 100%); }
.sw-hero__portrait { width: auto; object-fit: contain; object-position: right bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.35) 22%, #000 45%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 0.35) 22%, #000 45%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect; }
@media (max-width: 768px) { .sw-hero__portrait, .sw-hero__glow { height: 50%; max-width: none; top: 100px; right: -8%; } }
.sw-hero__content { position: relative; padding: var(--gutter); padding-bottom: var(--space-6); }
.sw-hero__footer { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); opacity: 0.85; margin-top: var(--space-7); }
.sw-hero .sw-lead { color: var(--color-text-muted); }
.sw-hero--photo .sw-lead { color: rgb(255 255 255 / 0.8); }
.sw-hero__title { max-width: 12ch; margin-bottom: var(--space-5); }
@media (min-width: 769px) { .sw-hero__content { max-width: 56%; } .sw-hero__title { font-size: clamp(3rem, 1rem + 6.5vw, 8rem); } }
.sw-hero__title em { color: var(--color-brand); }
.sw-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---- Manifesto: "We see. We build. We deliver." ------------------------------ */
.sw-manifesto {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: var(--weight-regular);
  font-size: var(--text-6xl); line-height: var(--leading-none);
  letter-spacing: var(--tracking-display); margin: 0 0 var(--space-5);
}
.sw-manifesto em { font-style: normal; color: var(--red-300); }
:not(.sw-hero) > .sw-container > .sw-manifesto em, .sw-section .sw-manifesto em { color: var(--color-brand); }

/* ---- Statement: oversized editorial paragraph, second half greyed ---------- */
.sw-statement { font-family: var(--font-display); font-size: var(--text-statement); line-height: 1.08; letter-spacing: var(--tracking-tight); max-width: 22ch; margin: 0; }
.sw-statement { max-width: none; }
.sw-statement span { color: var(--color-text-quiet); }

/* ---- Big heading over media ("This is …") --------------------------------- */
.sw-bighead { font-size: var(--text-6xl); line-height: var(--leading-none); letter-spacing: var(--tracking-display); margin: 0; }

/* ---- Feature panel: rounded image with label + title overlaid ------------- */
.sw-panel { text-decoration: none; position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-5); }
.sw-panel > .sw-panel__media { position: absolute; inset: 0; }
.sw-panel > .sw-panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.45)); }
.sw-panel__label, .sw-label-strong { font-size: var(--text-xs); font-weight: var(--weight-semibold); position: relative; margin-bottom: var(--space-2); }
.sw-panel__title { position: relative; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; max-width: 24ch; margin: 0; }

/* ---- News / list rows ------------------------------------------------------ */
.sw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.sw-list li { display: grid; grid-template-columns: 8rem 1fr auto; gap: var(--space-5); align-items: baseline; padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
.sw-list time { font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sw-list a { color: var(--color-text); text-decoration: none; font-size: var(--text-xl); letter-spacing: -0.02em; }
.sw-list a:hover { color: var(--color-brand-text); }
@media (max-width: 640px) { .sw-list li { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---- Services: big numbered rows ----------------------------------------- */
.sw-services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); counter-reset: svc; }
.sw-services li { counter-increment: svc; display: grid; grid-template-columns: 4rem 1fr minmax(0, 26rem); gap: var(--space-5); align-items: baseline; padding-block: var(--space-6); border-bottom: 1px solid var(--color-border); }
.sw-services li::before { content: counter(svc, decimal-leading-zero); font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sw-services h3 { font-size: var(--text-4xl); line-height: var(--leading-none); letter-spacing: var(--tracking-display); margin: 0; }
.sw-services p { margin: 0; color: var(--color-text-muted); }
@media (max-width: 768px) { .sw-services li { grid-template-columns: 2.5rem 1fr; } .sw-services p { grid-column: 2; } }

/* Glass pill button for use on images */
.sw-btn--glass { background: rgb(255 255 255 / 0.18); color: #fff; backdrop-filter: blur(10px); border-color: rgb(255 255 255 / 0.25); }
.sw-btn--glass:hover { background: rgb(255 255 255 / 0.3); color: #fff; }

/* ---- End card: "Harmony with Nature" / "Moments illuminated." ------------ */
.sw-endcard h2 { font-size: var(--text-6xl); line-height: var(--leading-none); letter-spacing: var(--tracking-display); margin-bottom: var(--space-4); }
.sw-endcard__sub { font-size: var(--text-statement); letter-spacing: var(--tracking-tight); color: rgb(245 238 234 / 0.5); margin: 0; }

/* ---- Footer --------------------------------------------------------------- */
.sw-footer { background: var(--color-bg-inverse); color: var(--stone-200); padding-block: var(--space-8) var(--space-6); font-size: var(--text-sm); }
.sw-footer a { color: var(--stone-50); }


/* ---- Process: "Discovery to execution" steps ------------------------------ */
.sw-process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--space-5); counter-reset: step; }
.sw-process li { counter-increment: step; padding-top: var(--space-4); border-top: var(--border-thick) solid var(--color-text); }
.sw-process li::before { content: counter(step, decimal-leading-zero); display: block; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); font-variant-numeric: tabular-nums; }
.sw-process li:last-child { border-top-color: var(--color-brand); }
.sw-process h3 { font-size: var(--text-2xl); letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.sw-process p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---- Principles: smaller variant of the numbered rows ---------------------- */
.sw-services--principles h3 { font-size: var(--text-3xl); }
.sw-services--principles p { color: var(--color-text); max-width: 60ch; }

/* ---- Split line: two short statements pushed to opposite edges --------------- */
.sw-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); margin: 0; }
