/* Stella Stone & Steel design system
   Shares the Stella family brand (white + ice blue + steel navy)
   with a slate-stone accent for the masonry side. */

:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --ink: #1b2c3a;
  --ink-soft: #51677a;
  --slate: #37526b;
  --slate-deep: #243c52;
  --blue: #1b8ad6;
  --blue-deep: #0f6cae;
  --ice: #e6eef5;
  --sky: #b9d2e6;
  --line: #d7e2eb;
  --green: #1fa56b;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(27, 44, 58, 0.06), 0 8px 24px rgba(27, 44, 58, 0.07);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Nunito", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand-mark,
.btn-primary,
.btn-outline {
  font-family: var(--font-display);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
}

/* Three stacked stones */
.brand-stones {
  display: grid;
  grid-template-columns: 9px 9px;
  gap: 2px;
  align-items: end;
}

.brand-stones i {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: var(--slate);
}

.brand-stones i:nth-child(1) {
  grid-column: 1 / span 2;
  background: var(--blue);
}

.brand-stones i:nth-child(3) {
  background: #6b8aa6;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-link:hover {
  color: var(--slate);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: var(--slate);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--slate-deep);
  transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--slate-deep);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  border-radius: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--line);
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.15s;
}

.btn-outline:hover {
  border-color: var(--sky);
}

.btn-outline:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--line);
}

/* Mobile drawer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 44, 58, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 60;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(290px, 80vw);
  background: var(--surface);
  border-left: 2px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 4.5rem 1.6rem 2rem;
}

.drawer.open {
  transform: translateX(0);
}

.drawer a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
}

.drawer a:hover {
  background: var(--ice);
  color: var(--slate);
}

/* Hero */
.hero {
  padding: 9.5rem 0 5rem;
  background:
    radial-gradient(900px 420px at 90% -10%, var(--ice) 0%, rgba(230, 238, 245, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--line);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--ice);
  border: 2px solid var(--sky);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
}

.lead {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.trust-line {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Sections */
.section-block {
  padding: 4.5rem 1.5rem;
}

.section-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 28ch;
}

.section-intro {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-intro a {
  color: var(--slate);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 3px 0 var(--line);
}

.service-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
}

.service-card h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Work / Instagram */
.work-band {
  background: var(--slate);
  color: #ffffff;
  padding: 4.5rem 0;
}

.work-band .section-label {
  color: var(--sky);
}

.work-band .section-title {
  color: #ffffff;
}

.work-band .section-intro {
  color: #c8d8e6;
}

.work-band .section-intro a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ig-button {
  margin-top: 1.6rem;
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-deep);
}

.ig-button:active {
  box-shadow: 0 1px 0 var(--blue-deep);
}

.work-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #c8d8e6;
  max-width: 56ch;
}

/* Chat */
.chat-panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
}

.chat-card {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.chat-log {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg {
  max-width: 84%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.msg.ai {
  background: var(--surface);
  border: 2px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--slate);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg.typing {
  color: var(--ink-soft);
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 0.6rem;
}

.chat-input-row input {
  flex: 1;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--slate);
}

.chat-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chat-note a {
  color: var(--slate);
  font-weight: 700;
}

/* Steel cross-link */
.steel-section {
  padding-top: 0;
}

.steel-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
}

.steel-panel .section-intro {
  max-width: 58ch;
}

.steel-link {
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--line);
  background: var(--surface);
  padding: 2.2rem 1.5rem 2.6rem;
  text-align: center;
}

.footer-contact {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--slate);
}

.footer-sep {
  color: var(--ink-soft);
  margin: 0 0.3rem;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 7rem;
  }

  .section-block {
    padding: 3rem 1.2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel,
  .steel-panel {
    padding: 1.3rem;
  }

  .msg {
    max-width: 92%;
  }
}
