/* High Concept: warm ivory, ink, slate. Photos bring the warmth. */
:root {
  --bg: #F5F2EC;      /* warm ivory */
  --bg2: #FFFFFF;     /* cards, inputs */
  --fg: #17191D;      /* ink: wordmark, headlines, primary buttons */
  --muted: #5B5F66;   /* body copy */
  --line: #E2DDD3;
  --accent: #48647E;  /* slate: links, hover, small accents */
  --accent-dark: #36506A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 17px/1.6 "Archivo", system-ui, -apple-system, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(48px, 11vw, 112px); letter-spacing: -.04em; line-height: .95; }
h1 em, h2 em { font-style: normal; color: var(--fg); }
h2 { font-size: clamp(30px, 6vw, 52px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--muted); max-width: 600px; }
.btn { display: inline-block; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--fg); transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--fg); border-color: #C9C3B8; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.small { padding: 9px 16px; font-size: 15px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Header: wordmark with the service line beneath it (kept separate so the wordmark can stand alone later) */
.nav { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px 16px; padding: 22px 20px; max-width: 1160px; margin: 0 auto; }
.brand { display: contents; }
.wordmark { grid-column: 1; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 24px; letter-spacing: .16em; white-space: nowrap; line-height: 1.2; }
.wordmark:hover { color: var(--fg); }
.servline { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.nav nav { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 560px) { .nav nav a[href="/portland-branding-agency/"] { display: none; } .nav nav { gap: 14px; } .wordmark { font-size: 21px; letter-spacing: .13em; } .nav nav a[href="/services/"] { display: none; } }
@media (min-width: 900px) { .brand { display: block; } .servline { margin-top: 4px; } .nav { align-items: center; } .nav nav { grid-row: auto; } }

main > section { max-width: 1160px; margin: 0 auto; padding: 64px 20px; }
.hero { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; justify-content: center; }
.hero.short { padding-bottom: 40px; }
.band { border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 32px; }
.card { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--fg); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover { color: var(--fg); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(23,25,29,.07); }
a.card:hover h3 { color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.num { display: block; font-weight: 600; color: var(--accent); font-size: 13px; letter-spacing: .08em; margin-bottom: 16px; }

.split { display: grid; gap: 24px; }
.split p { color: var(--muted); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--fg); padding-top: 16px; }
.steps li::before { content: "0" counter(s); font-weight: 600; color: var(--accent); font-size: 13px; letter-spacing: .08em; display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); }

.list article { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.list article:last-child { border-bottom: 0; }
.list h2 { font-size: clamp(26px, 5vw, 40px); }
.list p, .list li { color: var(--muted); }
.list ul { margin: 0; padding-left: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { text-align: center; border-top: 1px solid var(--line); padding: 96px 20px !important; }
.cta h2 { margin-bottom: 28px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 44px 20px; }
.foot .wordmark { display: inline-block; margin-bottom: 12px; font-size: 16px; }
.foot .fine { font-size: 13px; margin-top: 18px; }
.note { font-size: 15px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px; }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input:not([type=checkbox]), .form textarea { font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid #D6D0C5; border-radius: 10px; padding: 14px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form fieldset { border: 1px solid #D6D0C5; border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; background: var(--bg2); }
.form legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 16px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: #E3EAF0; color: var(--accent-dark); }
.flash.bad { background: #F6E1DE; color: #8A2E22; }

/* Photos (temporary Unsplash images, credited in data/photo-credits.md; swap by replacing files in app/img/) */
.hero.has-photo { display: grid; gap: 36px; align-items: center; }
.hero-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #E9E4DA; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .hero.has-photo { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 64px; }
  .hero-photo { aspect-ratio: 5 / 6; }
  .hero.has-photo h1 { font-size: clamp(64px, 7vw, 100px); }
}
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card.photo .num { margin: 20px 24px 10px; }
.card.photo h3, .card.photo p { margin-left: 24px; margin-right: 24px; }
.card.photo p { margin-bottom: 24px; }
/* Phone: service line in two short lines under the wordmark */
@media (max-width: 560px) { .servline span:not(.sep) { display: block; } .servline .sep { display: none; } .servline { grid-column: 1; line-height: 1.5; } }
@media (max-width: 899px) { .nav { row-gap: 4px; } .nav nav { grid-row: 1 / span 2; align-self: center; } .servline { grid-row: 2; } }
