/* ============================================================
   Ted Yoo landing page
   Clean, minimal, single accent color, mobile first.
   Hand-written CSS, no framework.
   ============================================================ */

:root {
  /* Color system */
  --text:        #17201d;   /* near-black for body text */
  --muted:       #5b6670;   /* secondary text */
  --bg:          #ffffff;   /* main background */
  --bg-alt:      #f5f7f5;   /* warm light gray for alternating sections */
  --line:        #e6e9e7;   /* hairline borders */
  --accent:      #0f766e;   /* single accent (teal) */
  --accent-dark: #0b5d57;   /* accent hover */
  --accent-soft: #e4f1ee;   /* accent tint for chips/icons */

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 40, 35, 0.08);
  --shadow-soft: 0 4px 16px rgba(20, 40, 35, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; padding: 15px 24px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--text); }
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-login {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-login:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note { color: var(--muted); font-size: 0.95rem; }

/* ---------- Browser mockups ---------- */
.hero-visual { display: flex; justify-content: center; }
.mockup {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #f2f4f3;
  border-bottom: 1px solid var(--line);
}
.mockup-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cfd6d3;
}
.mockup-screen { padding: 18px; min-height: 210px; }
.mockup-img { display: block; width: 100%; height: auto; }
.portfolio .mockup-img { height: 220px; object-fit: cover; object-position: top; }

/* Demo content inside mockups (purely decorative placeholders) */
.demo-hero {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.demo-hero.green { background: linear-gradient(135deg, #3f9d5a, #2f7d47); }
.demo-hero.dark { background: linear-gradient(135deg, #2b3a44, #1a252c); }
.demo-hero strong { font-size: 1.15rem; }
.demo-tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.22); padding: 3px 9px; border-radius: 20px;
}
.demo-btn {
  background: #fff; color: var(--accent);
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 6px;
}
.demo-hero.green .demo-btn { color: #2f7d47; }
.demo-hero.dark .demo-btn { color: #1a252c; }
.demo-btn.wide { display: block; text-align: center; margin-top: 12px; }
.demo-row { display: flex; gap: 10px; }
.demo-card {
  flex: 1; height: 54px; border-radius: 8px;
  background: #eef1ef;
}
.demo-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.demo-lines span { height: 9px; border-radius: 5px; background: #e9edeb; }
.demo-lines span:nth-child(2) { width: 70%; }
.demo-lines span:nth-child(3) { width: 85%; }

.demo-booking { display: flex; flex-direction: column; gap: 12px; }
.demo-form-title { font-weight: 700; font-size: 1.05rem; }
.demo-field { height: 34px; border-radius: 7px; background: #eef1ef; border: 1px solid var(--line); }
.demo-slots { display: flex; gap: 8px; }
.demo-slots span { flex: 1; height: 30px; border-radius: 6px; background: #eef1ef; border: 1px solid var(--line); }
.demo-slots span.on { background: var(--accent-soft); border-color: var(--accent); }
.demo-booking .demo-btn.wide { background: var(--accent); color: #fff; }

.demo-stars { color: #f5a623; font-size: 1.1rem; margin-top: 12px; letter-spacing: 2px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-foot {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 1.02rem;
}

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.section-alt .card { box-shadow: var(--shadow-soft); }
.service .icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Portfolio ---------- */
.portfolio .project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portfolio .project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.portfolio .mockup {
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.portfolio .mockup-screen { background: #fbfcfb; min-height: 180px; }
.project-body { padding: 22px 24px 26px; }
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.project-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); }

/* ---------- Steps / How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step { text-align: left; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo { text-align: center; }
.avatar {
  width: 220px; height: 220px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #d3e7e2);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; font-weight: 800;
  letter-spacing: 0.02em;
}
.avatar-photo {
  width: 240px; height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
}
.photo-caption { color: var(--muted); font-size: 0.85rem; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.about-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  color: var(--muted);
  padding: 0 0 18px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact .section-head { margin-bottom: 32px; }
.quote-form {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit;
  color: var(--text);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #a2adaa; }
.form-note { text-align: center; color: var(--muted); font-size: 0.92rem; }
.form-note.is-error { color: #b4232a; font-weight: 600; }
.form-note.is-ok { color: var(--accent); font-weight: 600; }
.contact-alt {
  text-align: center;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #12211d;
  color: #cdd6d2;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .wordmark { color: #fff; }
.footer-brand p { color: #94a29d; margin-top: 8px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: #cdd6d2; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  padding-top: 22px;
  color: #7e8c87;
  font-size: 0.88rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .avatar { width: 180px; height: 180px; font-size: 2.8rem; }
  .avatar-photo { width: 190px; height: 190px; }
  .ticks { text-align: left; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }        /* keep nav clean on mobile: name + Contact + Log in stay */
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; }
}
