/* ============================================================
   Tsubaki AI Consulting — design tokens
   Palette drawn from the original brand mark (dusty rose /
   deep wine network on blush) + a warm brass accent.
   Type: Fraunces (display, botanical warmth) + Karla (body,
   friendly humanist sans).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #2B0F1A;
  --wine: #5A0E2C;
  --wine-dark: #3D0A1F;
  --rose: #E0295F;
  --rose-light: #FF6F94;
  --blush: #FBD9E1;
  --blush-soft: #FDEDF1;
  --ivory: #FDF6F7;
  --brass: #E0295F;
  --brass-light: #FF6F94;
  --line: rgba(43, 22, 32, 0.12);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--wine-dark);
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 6px 20px rgba(91, 35, 51, 0.25);
}
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--wine);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--wine); background: var(--blush-soft); }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--wine-dark);
  letter-spacing: 0.01em;
}
.brand-word em {
  font-style: italic;
  color: var(--brass);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--wine); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wine-dark);
  margin: 5px 0;
  transition: 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 32px 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-right .btn-primary { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 56px 0 40px;
  background: var(--blush-soft);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  opacity: 0.75;
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-col a:hover { opacity: 1; color: var(--wine); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url('assets/network-texture.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-top: 18px;
  max-width: 12ch;
}
.hero h1 em { color: var(--brass); font-style: italic; }
.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  margin-top: 22px;
  opacity: 0.82;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-mark { justify-self: center; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: 200px; margin: 0 auto; }
}

/* brand mark (nav) */
.brand-mark {
  width: 34px;
  height: auto;
}

/* hero mark entrance */
.hero-mark-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  opacity: 0;
  transform: scale(0.85);
  animation: markIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
@keyframes markIn {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark-img { animation: none; opacity: 1; transform: scale(1); }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 16px;
}
.section-head p { margin-top: 16px; font-size: 17px; opacity: 0.78; }

.philosophy {
  background: var(--wine);
  color: var(--blush-soft);
  border-radius: 28px;
  padding: 64px;
}
.philosophy .eyebrow { color: var(--rose-light); }
.philosophy .eyebrow::before { background: var(--rose-light); }
.philosophy h2 { color: var(--ivory); }
.philosophy p { color: rgba(251, 247, 243, 0.85); }
.philosophy-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}
.philosophy-body p { font-size: 17px; line-height: 1.75; }
@media (max-width: 780px) {
  .philosophy { padding: 40px 28px; }
  .philosophy-body { grid-template-columns: 1fr; }
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(91, 35, 51, 0.1); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; opacity: 0.78; }
.card a.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wine);
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }

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

/* ---------- about teaser / split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split-portrait {
  aspect-ratio: 4/5;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--blush) 0%, var(--rose-light) 100%);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.split-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.split-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 22, 32, 0.68) 0%, rgba(43, 22, 32, 0) 40%);
}
.split-portrait span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ivory);
}
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--wine-dark);
  line-height: 1.5;
  margin: 20px 0 22px;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- process timeline (Services) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step {
  border-top: 2px solid var(--wine);
  padding-top: 18px;
}
.process-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--brass);
}
.process-step h4 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 8px 0 8px; }
.process-step p { font-size: 14.5px; opacity: 0.75; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- service detail list ---------- */
.service-row {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row .tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.service-row h3 { font-size: 24px; margin-top: 10px; }
.service-row p { margin-top: 14px; font-size: 16px; opacity: 0.8; max-width: 60ch; }
.service-row .for {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wine);
}
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 28px;
  background: var(--blush);
  padding: 64px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(26px, 3vw, 34px); max-width: 20ch; margin: 14px auto 0; }
.cta-banner .btn { margin-top: 28px; }
@media (max-width: 700px) { .cta-banner { padding: 44px 26px; } }

/* ---------- values (About) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value h3 { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--wine); }
.value p { margin-top: 10px; font-size: 15px; opacity: 0.78; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.contact-info a { font-family: var(--font-display); font-size: 20px; color: var(--wine-dark); text-decoration: none; }
.contact-info .block { margin-bottom: 30px; }
.form {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--wine-dark);
}
input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; opacity: 0.6; margin-top: -4px; }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- page hero (non-home) ---------- */
.page-hero {
  padding: 64px 0 20px;
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 48px); margin-top: 16px; max-width: 16ch; }
.page-hero p { margin-top: 18px; font-size: 17px; max-width: 56ch; opacity: 0.8; }
