/* web2.md design system — Harold Monu */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --text-secondary: #555555;
  --accent: #1a1a1a;
  --rule: #eaeaea;
  --small: #777777;
  --max-shell: 1200px;
  --content-max: 820px;
  --section-pad-y: 100px;
  --section-pad-x: 1.75rem;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
.hero-title,
.section-title,
.subsection-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--text);
}

/* web2.md H1: 56px desktop / 36px mobile, line-height 1.1, weight 500 */
.hero-title {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 56px;
  }
}

/* web2.md H2: 36px desktop / 28px mobile, line-height 1.2 */
.section-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
  }
}

.subsection-title {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--small);
}

.secondary {
  color: var(--text-secondary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 1rem var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.brand-logo-link:hover {
  opacity: 0.85;
}

.brand-logo {
  max-width: 180px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:not(.btn-header-cta) {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:not(.btn-header-cta):hover {
  color: var(--text);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.btn-header-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.125rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Hero — text + framed portrait (web2.md 90vh) */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 5rem) var(--section-pad-x);
  background: var(--bg);
}

/*
 * Grid: desktop — leading + actions in column 1, portrait spans rows in column 2.
 * Mobile — DOM order: leading, portrait, actions (tight stack; CTAs not between copy and image).
 */
.hero-inner {
  --hero-frame-gap: clamp(0.5rem, 1.25vw, 1rem);
  --hero-frame-outer-w: clamp(192px, 26vw, 268px);
  display: grid;
  grid-template-columns: minmax(0, var(--content-max)) var(--hero-frame-outer-w);
  grid-template-rows: auto auto;
  column-gap: var(--hero-frame-gap);
  row-gap: 0;
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.hero-leading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: var(--content-max);
  justify-self: center;
  width: min(100%, var(--content-max));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-frame-column {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-self: center;
  align-self: stretch;
}

.hero-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.06);
}

.hero-frame-inner {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hero-portrait {
  height: 100%;
  width: auto;
  aspect-ratio: 2 / 3;
  max-width: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-radius: 2px;
}

/* web2.md body: 18px / 1.6 */
.hero-subtext {
  font-size: 18px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 2rem;
  color: var(--text-secondary);
}

.hero-actions {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--rule);
}

.btn-submit {
  width: auto;
  align-self: flex-start;
}

.text-link {
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
}

.text-link-dark {
  color: var(--text);
  text-underline-offset: 4px;
}

.text-link-dark:hover {
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-body p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body strong {
  color: var(--text);
  font-weight: 600;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.list-dash {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.list-dash li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
}

.list-dash li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text);
}

.section-cta {
  margin-top: 1.5rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card p {
  margin: 0;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.steps > li:last-child {
  border-bottom: none;
}

.step-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-title {
  display: block;
  font-size: 18px;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
}

/* Band */
.section-band {
  background: #fafafa;
}

/* Quotes */
.quotes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.quote {
  margin: 0;
  padding: 0;
  border: none;
}

.quote p {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

/* Final CTA */
.section-final-cta {
  text-align: center;
}

.final-cta-inner .section-title {
  margin-bottom: 2rem;
}

.final-cta-inner .hero-actions {
  grid-column: unset;
  grid-row: unset;
  justify-self: unset;
  align-items: center;
}

/* Contact */
.contact-lead {
  margin: 0 0 2rem;
  max-width: 40ch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-error {
  min-height: 1.2rem;
  font-size: 13px;
  color: #b3261e;
}

.form-status {
  min-height: 1.25rem;
  font-size: 14px;
  margin: 0;
  color: var(--text-secondary);
}

.form-status.is-error {
  color: #b3261e;
}

.calendly-block {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fafafa;
}

.calendly-label {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.calendly-block .small {
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: #fafafa;
}

.footer-inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 3rem var(--section-pad-x);
  text-align: center;
}

.footer-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.footer-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.footer-contact,
.footer-meta {
  font-size: 14px;
  margin: 0 0 0.75rem;
}

.footer-contact a,
.footer-meta a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:hover,
.footer-meta a:hover {
  color: var(--text);
}

.footer-sep {
  margin: 0 0.5rem;
  color: var(--rule);
}

.footer-legal {
  margin: 1.5rem 0 0;
  font-size: 13px;
  color: var(--small);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-leaving {
  opacity: 0.6;
  transform: translateY(-8px);
}

body {
  opacity: 0;
  animation: bodyFadeIn 0.5s ease-out forwards;
}

@keyframes bodyFadeIn {
  to {
    opacity: 1;
  }
}

/* Success overlay */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.success-overlay.is-visible {
  opacity: 1;
}

.success-message {
  text-align: center;
  max-width: 480px;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text);
}

.success-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.success-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.success-redirect {
  font-size: 14px;
  color: var(--small);
  margin: 0;
}

.success-redirect .countdown {
  font-weight: 600;
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --section-pad-y: 60px;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.75rem;
    column-gap: 0;
    justify-items: center;
  }

  .hero-leading {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: var(--content-max);
  }

  .hero-frame-column {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    width: 100%;
    max-width: min(320px, 90vw);
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-subtext {
    margin-bottom: 1.25rem;
  }

  /* Without a stretched row height, flex: 1 / basis 0 collapses the frame on small screens */
  .hero-frame {
    flex: none;
    min-height: auto;
    width: 100%;
  }

  .hero-frame-inner {
    flex: none;
    min-height: auto;
  }

  .hero-portrait {
    height: auto;
    max-height: 380px;
    width: 100%;
    aspect-ratio: 2 / 3;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 280px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    gap: 0.75rem;
  }

  .nav-cta-item {
    width: 100%;
  }

  .btn-header-cta {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-logo {
    max-width: 140px;
  }
}
