/*
Theme Name: Northshore Building Co
Theme URI: https://vividstack.dev
Author: VividHarbor Demo
Description: Premium fictional local builder site for VividHarbor demos.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: northshore-building
License: GNU General Public License v2 or later
*/

:root {
  --ns-void: #0b0f0e;
  --ns-ink: #141a18;
  --ns-slate: #2a332f;
  --ns-mist: #e8ece9;
  --ns-paper: #f4f6f5;
  --ns-white: #ffffff;
  --ns-brass: #c6a15b;
  --ns-brass-hot: #d4b56e;
  --ns-muted: #6b756f;
  --ns-line: rgba(20, 26, 24, 0.1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(11, 15, 14, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ns-ink);
  background: var(--ns-paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.ns-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.ns-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ns-main {
  flex: 1;
}

/* Motion */
@keyframes ns-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ns-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.ns-rise {
  animation: ns-rise 0.9s var(--ease) both;
}

.ns-rise-delay-1 {
  animation-delay: 0.12s;
}

.ns-rise-delay-2 {
  animation-delay: 0.24s;
}

.ns-rise-delay-3 {
  animation-delay: 0.36s;
}

/* Header */
.ns-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.35rem 0;
}

.ns-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ns-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ns-white);
}

.ns-mark {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(198, 161, 91, 0.55);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ns-brass);
  letter-spacing: 0.02em;
}

.ns-brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.ns-brand-text span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.ns-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  align-items: center;
}

@media (min-width: 980px) {
  .ns-nav {
    display: flex;
  }
}

.ns-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.ns-nav a:hover {
  color: var(--ns-brass);
}

.ns-nav-cta a {
  margin-left: 0.35rem;
  padding: 0.65rem 1rem !important;
  border: 1px solid rgba(198, 161, 91, 0.7);
  color: var(--ns-brass) !important;
}

.ns-nav-cta a:hover {
  background: var(--ns-brass);
  color: var(--ns-void) !important;
}

.ns-header-phone {
  display: none;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) and (max-width: 979px) {
  .ns-header-phone {
    display: inline-flex;
  }
}

body:not(.home) .ns-header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 14, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
}

/* Hero — full bleed */
.ns-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--ns-white);
  overflow: hidden;
  isolation: isolate;
}

.ns-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ns-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ns-kenburns 14s var(--ease) both;
}

.ns-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 15, 14, 0.35) 0%, rgba(11, 15, 14, 0.2) 35%, rgba(11, 15, 14, 0.82) 100%),
    linear-gradient(90deg, rgba(11, 15, 14, 0.55) 0%, rgba(11, 15, 14, 0.15) 55%, transparent 100%);
}

.ns-hero-inner {
  width: 100%;
  padding: 7.5rem 0 4.5rem;
}

.ns-hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 12ch;
}

.ns-hero-brand em {
  font-style: italic;
  font-weight: 500;
  color: var(--ns-brass);
}

.ns-hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.ns-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

.ns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ns-btn:hover {
  transform: translateY(-2px);
}

.ns-btn-primary {
  background: var(--ns-brass);
  color: var(--ns-void);
}

.ns-btn-primary:hover {
  background: var(--ns-brass-hot);
  color: var(--ns-void);
}

.ns-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--ns-white);
  background: transparent;
}

.ns-btn-ghost:hover {
  border-color: var(--ns-white);
  color: var(--ns-white);
}

.ns-btn-dark {
  background: var(--ns-void);
  color: var(--ns-white);
}

.ns-btn-dark:hover {
  background: var(--ns-slate);
  color: var(--ns-white);
}

.ns-btn-line {
  border: 1px solid var(--ns-ink);
  color: var(--ns-ink);
  background: transparent;
}

.ns-btn-line:hover {
  background: var(--ns-ink);
  color: var(--ns-white);
}

/* Sections */
.ns-section {
  padding: 5rem 0;
}

.ns-section- Tight {
  padding: 3.5rem 0;
}

.ns-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ns-brass);
}

.ns-section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.ns-section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
}

.ns-section-head p {
  margin: 0;
  color: var(--ns-muted);
  font-size: 1.05rem;
}

/* Project mosaic */
.ns-mosaic {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .ns-mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
  }

  .ns-mosaic a:nth-child(1) {
    grid-row: 1 / span 2;
  }
}

.ns-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: var(--ns-white);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.ns-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}

.ns-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 15, 14, 0.85) 100%);
}

.ns-tile:hover img {
  transform: scale(1.06);
}

.ns-tile-body {
  padding: 1.4rem 1.35rem;
  width: 100%;
}

.ns-tile-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
}

.ns-tile-body p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
}

.ns-tile-body span {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ns-brass);
  font-weight: 600;
}

/* Split feature */
.ns-split {
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .ns-split {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 520px;
  }
}

.ns-split-media {
  min-height: 320px;
  background: #1a1f1d center / cover no-repeat;
}

.ns-split-copy {
  background: var(--ns-void);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .ns-split-copy {
    padding: 4rem 3.5rem;
  }
}

.ns-split-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--ns-white);
  line-height: 1.08;
  font-weight: 600;
}

.ns-split-copy p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.ns-split-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.ns-split-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.ns-split-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ns-split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 1px;
  background: var(--ns-brass);
}

/* Trust strip */
.ns-trust {
  background: var(--ns-mist);
  border-block: 1px solid var(--ns-line);
}

.ns-trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ns-trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ns-ink);
  margin-bottom: 0.4rem;
}

.ns-trust-item span {
  color: var(--ns-muted);
  font-size: 0.92rem;
}

/* CTA band */
.ns-cta {
  background:
    linear-gradient(120deg, rgba(11, 15, 14, 0.88), rgba(11, 15, 14, 0.7)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: var(--ns-white);
  padding: 5rem 0;
}

.ns-cta h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 14ch;
}

.ns-cta p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Inner pages */
.ns-page-hero {
  position: relative;
  padding: 7.5rem 0 3rem;
  color: var(--ns-white);
  background:
    linear-gradient(180deg, rgba(11, 15, 14, 0.72), rgba(11, 15, 14, 0.88)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.ns-page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ns-page-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.ns-content {
  padding: 3rem 0 5rem;
}

.ns-prose {
  max-width: 42rem;
  font-size: 1.05rem;
}

.ns-prose h2 {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ns-ink);
  line-height: 1.15;
}

.ns-prose h3 {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ns-slate);
}

.ns-prose a {
  color: var(--ns-slate);
  text-decoration-color: var(--ns-brass);
  text-underline-offset: 3px;
}

.ns-callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--ns-mist);
  border-left: 3px solid var(--ns-brass);
}

.ns-callout strong {
  color: var(--ns-ink);
}

/* Footer */
.ns-footer {
  background: var(--ns-void);
  color: rgba(255, 255, 255, 0.62);
  padding: 3.5rem 0 2rem;
}

.ns-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.5rem;
}

.ns-footer h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ns-white);
}

.ns-footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.ns-footer a:hover {
  color: var(--ns-brass);
}

.ns-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-footer li + li {
  margin-top: 0.45rem;
}

.ns-footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 719px) {
  .ns-brand-text span {
    display: none;
  }

  .ns-hero-inner {
    padding-top: 6.5rem;
  }
}
