/* ============================================
   HOOKED ON SHINE — Design tokens
   ============================================ */
:root {
  --ink: #0A0E14;
  --ink-raised: #0F1620;
  --steel: #123A66;
  --blue: #1E6FD9;
  --ice: #4FC3F7;
  --foam: #F2F5F8;
  --chrome: #8A94A3;
  --line: rgba(242, 245, 248, 0.10);

  --font-head: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; color: var(--chrome); max-width: 62ch; }

a { color: var(--ice); text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.section-lede {
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.brand { display: flex; align-items: center; }

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-text.small {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--foam);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  justify-self: center;
}
.site-nav a {
  color: var(--foam);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--ice); }

.nav-cta {
  background: var(--blue);
  color: var(--foam) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.nav-cta:hover { background: var(--ice); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foam);
}

/* ============================================
   HERO — two-column, logo balances the right side
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(30, 111, 217, 0.18), transparent 55%),
    var(--ink);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--ice);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  max-width: 14ch;
  color: var(--foam);
}

.shine-word { color: var(--ice); font-style: italic; }

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--blue); color: var(--foam); }
.btn-primary:hover { background: var(--ice); color: var(--ink); }

.btn-ghost { border-color: var(--line); color: var(--foam); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

.btn-full { width: 100%; text-align: center; }

/* ============================================
   SERVICES — angled panels with icons
   ============================================ */
.services { background: var(--ink); }

.panel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.panel {
  padding: 2.2rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}

.panel:last-child { border-right: none; }

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.panel:hover { background: transparent; }
.panel:hover::before { transform: scaleX(0); }

.panel-icon {
  width: 26px;
  height: 26px;
  color: var(--ice);
  margin-bottom: 0.9rem;
}

.panel h3 { font-size: 1.3rem; color: var(--foam); margin-bottom: 0.7rem; }
.panel p { font-size: 0.95rem; margin-bottom: 1rem; }

.panel-list { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--chrome); }
.panel-list li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.panel-list li:first-child { border-top: none; }

/* ============================================
   WATER DIVIDER
   ============================================ */
.water-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--ice), var(--blue), transparent);
  background-size: 200% 100%;
  animation: bead-flow 6s linear infinite;
}

@keyframes bead-flow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   BEFORE / AFTER PORTFOLIO
   Responsive cards showing before/after image pairs
   ============================================ */
.before-after { background: var(--ink-raised); }

.ba-portfolio { padding-top: 1rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  background: transparent;
}
.portfolio-card .pair {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.portfolio-card .pair img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.28rem 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--foam);
  border-radius: 6px;
}
.badge-neutral { background: rgba(12,14,18,0.65); }
.badge-accent { background: var(--blue); }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-card .pair img { height: 260px; }
  .portfolio-card { gap: 1rem; }
}

/* Desktop/tablet: show full images (no aggressive cropping). Use object-fit: contain
   and a matching dark background so any empty space looks intentional. This only
   affects screens wider than 900px; mobile rules above remain unchanged. */
@media (min-width: 901px) {
  /* Constrain the overall portfolio section and center the cards (desktop-only) */
  .ba-portfolio { padding-top: 1.5rem; max-width: 960px; margin-left: auto; margin-right: auto; }

  /* One comparison row per card; give comfortable vertical spacing between rows */
  .portfolio-grid { display: flex; flex-direction: column; gap: 50px; align-items: center; }

  /* Each card is a centered row with two equal columns (roughly 50/50) */
  .portfolio-card {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px; /* 12-20px gap between BEFORE and AFTER */
    background: transparent;
    padding: 0.6rem 0;
    align-items: start;
    justify-items: center;
    border-radius: 10px;
  }

  /* Pair wrapper keeps badges and rounded borders; allow images to keep their natural taller aspect */
  .portfolio-card .pair {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--ink-raised);
    display: block;
    padding: 0.35rem;
  }

  /* Images: fill column width, preserve original aspect ratio, do not crop or distort */
  .portfolio-card .pair img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100%;
    background: var(--ink-raised);
  }

  /* Keep badges in the lower-right of each image */
  .portfolio-card .pair .badge { right: 0.6rem; bottom: 0.6rem; }

  /* Ensure box sizing to avoid overflow */
  .portfolio-card, .portfolio-card * { box-sizing: border-box; }

  /* Trust bar: use a horizontal flex layout on desktop to prevent stacked/wonky items */
  .trust-inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-left: 1.5rem; padding-right: 1.5rem; }
  .trust-item { justify-content: flex-start; text-align: left; }
}

/* Extra spacing after the slider and a simple gallery grid for non-slider before/afters */
.ba-slider { display: none; }

.ba-gallery {
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.ba-gallery .gallery-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--foam);
}
.ba-gallery .gallery-lede { color: var(--chrome); margin-bottom: 1rem; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.ba-card { background: transparent; border-radius: 6px; overflow: hidden; }
.ba-card img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 6px 20px rgba(3,8,15,0.5); }
.ba-card { cursor: pointer; }

@media (max-width: 900px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* CTA at bottom of gallery */
.ba-cta { margin-top: 1.5rem; text-align: center; }
.ba-cta .btn { display: inline-block; }

/* ============================================
   PROCESS
   ============================================ */
.process { background: var(--ink); }

.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step-mark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ice);
  border: 1px solid var(--line);
  width: 2.4rem;
  height: 2.4rem;
  line-height: 2.4rem;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-step h3 { font-size: 1.15rem; color: var(--foam); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.95rem; }

/* ============================================
   SERVICE AREA
   ============================================ */
.area { background: var(--ink-raised); }
.area-inner { padding-top: 3rem; padding-bottom: 3rem; }
.area-copy p { font-size: 1.05rem; }
.area-copy strong { color: var(--ice); font-weight: 600; }
.area-note { font-size: 0.9rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--ink); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-detail { margin-top: 1.5rem; }

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chrome);
  margin-bottom: 0.2rem;
}

.contact-detail a { font-family: var(--font-head); font-size: 1.3rem; color: var(--foam); }
.contact-detail a:hover { color: var(--ice); }

.contact-form {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label { font-size: 0.85rem; color: var(--chrome); }

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--foam);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--ice); }

.form-status {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--ice);
  min-height: 1.2em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; }

.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-inner p { margin: 0.3rem auto; font-size: 0.85rem; }
.footer-copy { color: #5B6472; font-size: 0.78rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   REVEAL ON SCROLL
   Quick, accessible fade-in for elements as they enter viewport.
   Add the class `reveal` to elements (JS does this automatically).
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 320ms cubic-bezier(.2,.9,.2,1), transform 320ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Brief sticky/pinned title while it fades (Apple-style subtle pin) */
.section-title.sticky {
  position: sticky;
  top: 6vh;
  z-index: 25;
  background: linear-gradient(180deg, rgba(15,22,32,0.0), rgba(15,22,32,0.02));
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { transition: none; transform: none; opacity: 1; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto 1rem; }
  .panel-row { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ba-slider { display: none; }
}

/* Trust bar styles */
.trust-bar { padding: 0.45rem 0; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.trust-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 0.6rem 1.25rem; align-items: center; justify-items: center; }
.trust-item { display: flex; gap: 0.6rem; align-items: center; color: var(--foam); font-size: 0.95rem; opacity: 0.95; justify-content: center; text-align: center; }
.trust-item svg { flex: 0 0 16px; width: 16px; height: 16px; }

/* Hero phone link */
.hero-phone { margin-left: 0.75rem; color: var(--foam); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-phone:hover { color: var(--ice); }

/* Mobile sticky CTA (small and unobtrusive) */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: rgba(10,14,20,0.98); border-top: 1px solid rgba(255,255,255,0.03); padding: 0.5rem; z-index: 60; }
.mobile-cta { justify-content: space-between; }
.mobile-cta .mobile-cta-btn { display: inline-block; padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; font-family: var(--font-head); }
.mobile-cta .call { background: var(--blue); color: var(--foam); margin-right: 0.5rem; }
.mobile-cta .quote { background: transparent; color: var(--foam); border: 1px solid rgba(255,255,255,0.06); }

@media (max-width: 900px) {
  .trust-inner { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (max-width: 640px) {
  .trust-inner { grid-template-columns: 1fr; gap: 0.4rem; justify-items: start; padding-left: 1rem; padding-right: 1rem; }
  .trust-item { font-size: 0.98rem; justify-content: flex-start; text-align: left; }
  .trust-item svg { margin-right: 0.6rem; }
  .trust-item span { display: block; }
  .mobile-cta { display: flex; padding: 0.6rem; }
  .hero-actions .btn { display: none; } /* hide desktop CTA on tiny screens in favor of mobile bar */
}

/* Improve readability on small phones: scale base font slightly without changing desktop */
@media (max-width: 420px) {
  /* Increase base size on very small phones for better readability */
  html { font-size: 125%; }
  .section-inner { padding-left: 0.9rem; padding-right: 0.9rem; }
  .hero-title { font-size: clamp(2rem, 7.5vw, 3rem); }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .panel h3 { font-size: 1.05rem; }
  .panel p, .panel-list li { font-size: 0.98rem; }
  .hero-actions .btn { padding: 0.85rem 1.6rem; font-size: 1rem; }
  .owner-caption .owner-role { font-size: 1rem; }
  .trust-item { font-size: 1rem; }
}

/* Panel price (placeholder) */
.panel-price { font-weight: 700; color: var(--ice); margin-bottom: 0.4rem; }

/* ============================================
   MEET THE OWNER
============================================ */
.owner { background: var(--ink); }
.owner-inner { display: grid; grid-template-columns: 360px 1fr; gap: 2.2rem; align-items: start; }
.owner-photo { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.owner-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 36px rgba(3,8,15,0.55);
  display: block;
  border: 3px solid rgba(255,255,255,0.06);
}
.owner-caption { display: flex; justify-content: center; margin-top: 0.5rem; }
.owner-caption .owner-role { font-size: 0.98rem; color: var(--ice); font-weight: 600; margin: 0; text-align: center; }
.owner-role {
  font-size: 0.98rem;
  color: var(--ice);
  font-weight: 600;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.owner-copy .section-lede { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .owner-inner { grid-template-columns: 1fr; text-align: center; }
  .owner-photo { max-width: 320px; margin: 0 auto 0.6rem; }
  .owner-copy { text-align: center; }
}

@media (min-width: 901px) {
  /* Ensure heading sits in the copy column on desktop and the role stays under the photo */
  .owner-copy .section-title { margin-top: 0; }
}

@media (max-width: 480px) {
  .owner-inner { gap: 1rem; }
  .owner-caption .owner-role { font-size: 0.95rem; }
  .owner-photo img { max-width: 260px; }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }

  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.6rem; text-align: center; }
  .nav-toggle { display: flex; }
  .panel-row { grid-template-columns: 1fr; }
  .brand-logo { height: 42px; }
  .ba-slider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .water-divider { animation: none; }
  * { transition: none !important; }
}
