/*
Theme Name: ORS Studio
Description: Custom theme for Organic Rank Studio — editorial, typographic, no page builder.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: ors
*/

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --cream: #f5f1e8;
  --paper: #fbf9f4;
  --ink: #1d2a22;
  --ink-soft: #4a564e;
  --forest: #1f4d36;
  --moss: #6b8f5e;
  --clay: #c8643b;
  --line: #d9d2c2;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(42px, 7vw, 88px); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
p { margin: 0 0 1em; }
em, .serif-italic { font-family: var(--serif); font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.brand-name em { color: var(--forest); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.nav-cta { display: inline-block; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: #e9efe6; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest a { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--clay); }
.section--forest .eyebrow { color: #cfe0c6; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 640px; }
.section--forest .lead { color: #cfdcc9; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 em { color: var(--forest); }
.hero .lead { margin: 28px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 24px 24px; background: var(--forest); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.hero-note { position: absolute; left: -28px; bottom: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; max-width: 230px; font-size: 14px; line-height: 1.45; box-shadow: 0 18px 40px -24px rgba(29, 42, 34, .45); }
.hero-note strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--forest); }
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-soft); }
.marquee-track { display: inline-flex; animation: ors-marquee 40s linear infinite; }
@keyframes ors-marquee { to { transform: translateX(-50%); } }
.marquee span { display: inline-block; padding-right: 48px; }
.marquee span::after { content: "✦"; color: var(--clay); font-style: normal; font-size: 14px; margin-left: 48px; vertical-align: middle; }

/* Numbered services list */
.num-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: n; }
.num-list > li { counter-increment: n; display: grid; grid-template-columns: 72px 1fr 1.2fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.num-list > li::before { content: counter(n, decimal-leading-zero); font: 500 14px var(--sans); color: var(--clay); letter-spacing: .08em; }
.num-list h3 { margin: 0; }
.num-list p { margin: 0; color: var(--ink-soft); }
.split .num-list > li { grid-template-columns: 56px 1fr; gap: 6px 20px; }
.split .num-list > li > :last-child { grid-column: 2; }
.split .num-list h3 + p { margin-top: 4px; }
.num-list ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-left: 1px solid rgba(255,255,255,.18); }
.steps > div { padding: 8px 28px 8px; border-right: 1px solid rgba(255,255,255,.18); }
.steps .step-n { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; color: #a9c79a; margin-bottom: 18px; }
.steps h3 { font-size: 22px; }
.steps p { font-size: 15px; color: #cfdcc9; margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.principle { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.principle .k { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--clay); display: block; margin-bottom: 14px; }
.principle h3 { font-size: 24px; }
.principle p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 36px 30px; display: flex; flex-direction: column; }
.plan--featured { background: var(--ink); color: #e7ebe4; border-color: var(--ink); }
.plan--featured h3, .plan--featured .plan-price { color: #fff; }
.plan-tag { align-self: flex-start; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--clay); color: #fff; padding: 7px 10px; border-radius: 999px; margin-bottom: 18px; }
.plan h3 { font-size: 30px; margin-bottom: 6px; }
.plan-for { color: var(--ink-soft); font-size: 15px; min-height: 48px; }
.plan--featured .plan-for { color: #b9c4b6; }
.plan-price { font-family: var(--serif); font-size: 22px; font-style: italic; margin: 18px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan--featured .plan-price { border-color: rgba(255,255,255,.18); }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.plan--featured li::before { border-color: #a9c79a; }
.plan--featured .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan--featured .btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.plans-note { margin-top: 26px; font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 30px/1 var(--sans); color: var(--clay); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 40px; }

/* CTA */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 820px; margin: 0 auto 22px; }
.cta-band h2 em { color: #a9c79a; }
.cta-band .lead { margin: 0 auto 36px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

/* Page header & generic content */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 900px; }
.page-hero .lead { margin-top: 18px; }
.prose { max-width: 760px; padding: clamp(48px, 6vw, 80px) 0; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.entry-content > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); padding: clamp(48px, 6vw, 88px) 0; }
.contact-aside dl { margin: 32px 0 0; }
.contact-aside dt { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 22px; }
.contact-aside dd { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; }
.ors-form { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.ors-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ors-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.ors-form input, .ors-form select, .ors-form textarea { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.ors-form input:focus, .ors-form select:focus, .ors-form textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: transparent; }
.ors-form textarea { min-height: 150px; resize: vertical; }
.ors-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.ors-form .consent input { width: auto; margin-top: 4px; }
.ors-form .hp { position: absolute; left: -9999px; }
.notice { border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; font-size: 15px; }
.notice--ok { background: #e3eedc; color: #21452f; }
.notice--err { background: #f7e1d6; color: #7a2e12; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c4b6; padding: 72px 0 32px; font-size: 15px; }
.site-footer a { color: #e7ebe4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .brand { color: #fff; }
.footer-top .brand-name em { color: #a9c79a; }
.footer-top h4 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8d9a8a; margin: 6px 0 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-claim { font-family: var(--serif); font-size: 22px; color: #e7ebe4; line-height: 1.35; margin: 22px 0 0; max-width: 360px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: #8d9a8a; }

/* Cookie notice */
.cookie-note { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(29,42,34,.4); }
.cookie-note p { margin: 0 0 12px; }
.cookie-note[hidden] { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .split--even, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; aspect-ratio: 1 / 1; border-radius: 200px 200px 24px 24px; }
  .hero-note { left: 16px; }
  .steps { grid-template-columns: 1fr 1fr; border-left: 0; }
  .steps > div { border: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 28px 0; }
  .principles, .plans { grid-template-columns: 1fr; }
  .num-list > li { grid-template-columns: 48px 1fr; }
  .num-list > li > :last-child { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .ors-form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
