/*
Theme Name: Outcrop Media
Theme URI: https://outcropmedia.ca
Author: Outcrop Media
Description: Custom theme for Outcrop Media, a photo, video, drone and design studio in Parry Sound, Ontario. Built to match the approved prototype exactly: Split Stack logo, three brand colours, Archivo + Hanken Grotesk, slow weighty motion. All copy and pricing are editable under Appearance > Customize > Outcrop Media.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outcrop-media
*/

/* Brand: three colours only (black, pine, off-white). Soft pine is for small accents on black. */
:root {
  --black: #121312;
  --black-2: #1A1C1A;
  --pine:  #2D4A3A;
  --pine-hi: #3A5F4A;
  --white: #DEDAD0;
  --white-dim: rgba(222,218,208,.62);
  --line-d: rgba(222,218,208,.14);
  --line-l: rgba(18,19,18,.16);
  --ink-dim: #4E4B45;
  --logo: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --slow: cubic-bezier(.16,.84,.24,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; background: var(--white); color: var(--black); font-size: 14px; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--white-dim); }
.light .eyebrow { color: var(--ink-dim); }
.h-big { font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(20px, 2.1vw, 28px); font-weight: 300; line-height: 1.3; letter-spacing: -.012em; max-width: 34ch; text-wrap: balance; }
.light { background: var(--white); color: var(--black); }

/* Logo: Split Stack */
.mark { display: inline-flex; align-items: stretch; gap: .14em; line-height: .82; }
.mark .stack { font-family: var(--logo); font-weight: 900; font-stretch: 68%; letter-spacing: -.01em; display: flex; flex-direction: column; }
.mark .bar { background: var(--pine); color: var(--white); writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--logo); font-weight: 700; letter-spacing: .3em; font-size: .27em; padding: .5em .32em; display: flex; align-items: center; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em; padding: 15px 24px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: background .5s var(--slow), color .5s var(--slow), border-color .5s var(--slow); }
.btn .arr { transition: transform .7s var(--slow); }
.btn:hover .arr { transform: translateX(5px); }
.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--pine-hi); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.light .btn-line:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.nav.solid { position: relative; border-bottom: 1px solid var(--line-d); }
.nav .mark { font-size: 24px; }
.nav .links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; }
.nav .links a:not(.btn) { opacity: .78; transition: opacity .4s; position: relative; }
.nav .links a:not(.btn):hover, .nav .links a[aria-current="page"] { opacity: 1; }
.nav .links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }
.nav .btn { padding: 11px 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-d); color: inherit; font: inherit; font-size: 14px; padding: 9px 14px; cursor: pointer; }

/* Page fade-in (each page arrives slowly, as in the prototype) */
.page-fade { animation: pagein .9s var(--slow) both; }
/* Starts at .01, not 0: looks identical, but lets browsers measure Largest Contentful Paint. */
@keyframes pagein { from { opacity: .01; } to { opacity: 1; } }

/* ---------- Opening ---------- */
.opening { position: relative; height: min(100svh, 960px); min-height: 560px; overflow: hidden; background: var(--black); }
.opening .layer { position: absolute; inset: -8% 0; will-change: transform; }
.opening .photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 8s var(--slow) both; }
.opening .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,18,.62) 0%, rgba(18,19,18,.38) 45%, rgba(18,19,18,.78) 100%); }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }

.opening .center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: clamp(28px, 4vw, 48px); text-align: center; padding-top: 40px; }
.opening .center .mark { font-size: clamp(84px, 14.5vw, 210px); }
.opening .mark .stack span { animation: lift 2.2s var(--slow) both; }
.opening .mark .stack span:nth-child(2) { animation-delay: .18s; }
.opening .mark .bar { animation: drop 2s var(--slow) .5s both; }
.opening .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; animation: lift 2s var(--slow) .9s both; }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.opening .foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--white-dim); font-variant-numeric: tabular-nums; }

/* ---------- Interactive services (home) ---------- */
.svc-home { padding-block: clamp(90px, 12vw, 170px); }
.svc-home .top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.svc-home .lead { margin: 14px 0 0; }
.rows { border-top: 1px solid var(--black); }
.row { border-bottom: 1px solid var(--line-l); }
.row button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 24px; padding-block: clamp(18px, 2.2vw, 28px); }
.row .name { font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(52px, 8.5vw, 132px); line-height: .88; letter-spacing: -.01em; transition: color .6s var(--slow), transform .9s var(--slow); }
.row .from { font-size: 14px; color: var(--ink-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .plus { width: 42px; height: 42px; border: 1px solid var(--line-l); border-radius: 50%; position: relative; transition: background .5s var(--slow), border-color .5s, transform .8s var(--slow); flex: none; }
.row .plus::before, .row .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; transform: translate(-50%,-50%); }
.row .plus::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .8s var(--slow); }
.row button:hover .name, .row.open .name { color: var(--pine); transform: translateX(12px); }
.row.open .plus { background: var(--pine); border-color: var(--pine); color: var(--white); }
.row.open .plus::after { transform: translate(-50%,-50%) rotate(0deg); }
.row .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--slow); }
.row.open .panel { grid-template-rows: 1fr; }
.row .panel > div { overflow: hidden; }
.row .inner { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 20px; padding-bottom: clamp(26px, 3vw, 40px); opacity: 0; transform: translateY(10px); transition: opacity .7s var(--slow) .1s, transform .9s var(--slow) .1s; }
.row.open .inner { opacity: 1; transform: none; }
.row .inner p { grid-column: 1 / span 5; margin: 0; font-size: 17px; max-width: 44ch; }
.row .inner ul { grid-column: 7 / span 3; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-dim); display: grid; gap: 4px; }
.row .inner a { grid-column: 10 / span 3; justify-self: end; align-self: start; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Packages ---------- */
.packages { padding-block: clamp(90px, 12vw, 170px); }
.packages.flush-top { padding-top: 0; }
.pk-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.pk-head .h-big { font-size: clamp(44px, 6vw, 92px); margin-top: 14px; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px, 1.6vw, 22px); }
/* Shield: monthly, offered on its own */
.shield { margin-top: clamp(14px, 1.6vw, 22px); background: var(--white); color: var(--black); padding: clamp(28px, 3.4vw, 52px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 28px; align-items: start; transition: transform .9s var(--slow); }
.shield:hover { transform: translateY(-6px); }
.shield .s-a { grid-column: 1 / span 5; display: grid; gap: 14px; min-width: 0; }
.shield .s-a .eyebrow { color: var(--pine); }
.shield h3 { margin: 0; font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(48px, 5vw, 76px); line-height: .9; }
.shield .s-a p { margin: 0; color: var(--ink-dim); max-width: 40ch; }
.shield .price span { color: var(--ink-dim); }
.shield ul { grid-column: 7 / -1; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; font-size: 15px; }
.shield li { border-top: 1px solid var(--line-l); padding-top: 10px; }
.shield .btn { grid-column: 7 / -1; justify-self: start; }
.pk { position: relative; background: var(--black-2); border: 1px solid var(--line-d); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px; min-width: 0; transition: transform .9s var(--slow), border-color .6s var(--slow), background .6s var(--slow); }
.pk:hover { transform: translateY(-6px); border-color: rgba(222,218,208,.35); }
.pk.feat { background: var(--pine); border-color: var(--pine); }
.pk .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(222,218,208,.4); padding: 4px 9px; }
.pk h3 { margin: 10px 0 0; font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 40px; line-height: .9; }
.pk .for { margin: 6px 0 0; color: var(--white-dim); font-size: 15px; }
.pk.feat .eyebrow { color: rgba(222,218,208,.8); }
.pk.feat .for { color: rgba(222,218,208,.8); }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price b { font-family: var(--logo); font-weight: 700; font-stretch: 80%; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; letter-spacing: -.01em; }
.price span { font-size: 13px; color: var(--white-dim); }
.pk.feat .price span { color: rgba(222,218,208,.8); }
.pk ul { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-d); display: grid; gap: 9px; font-size: 15px; flex: 1; }
.pk.feat ul { border-color: rgba(222,218,208,.25); }
.pk li { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; }
.pk li::before { content: ""; width: 8px; height: 1px; background: currentColor; margin-top: 12px; opacity: .7; }
.pk .btn { justify-content: space-between; }
.pk.feat .btn-line:hover { color: var(--pine); }
.fine { margin-top: 22px; font-size: 13px; color: var(--white-dim); }

.extras { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 32px; }
.extras .col-a { grid-column: 1 / span 5; }
.extras .col-b { grid-column: 7 / -1; }
.extras h3 { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.ratecard { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-d); }
.ratecard li { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.ratecard li span:last-child { color: var(--white-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.monthly { background: var(--black-2); border: 1px solid var(--line-d); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 18px; }
.monthly .h-big { font-size: 40px; margin: 0; }
.monthly p { margin: 0; color: var(--white-dim); font-size: 15px; }
.monthly .btn { justify-self: start; }

/* ---------- CTA strip ---------- */
.strip { padding-block: clamp(80px, 10vw, 140px); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line-d); }
.strip .h-big { font-size: clamp(48px, 7vw, 112px); }
.strip .h-big span { color: #8DB29B; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(80px, 11vw, 160px) clamp(56px, 7vw, 100px); }
.page-head .h-big { font-size: clamp(64px, 11vw, 168px); margin: 16px 0 28px; }
.page-head .lead { color: var(--white-dim); margin: 0; }
.light.page-body { padding-block: clamp(80px, 10vw, 150px); }

.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 48px; }
.about-grid .photo-slot { grid-column: 1 / span 5; aspect-ratio: 4/5; background: #CFCAC0; position: relative; display: grid; place-items: center; font-size: 12px; color: var(--ink-dim); text-align: center; line-height: 1.8; max-width: 100%; overflow: hidden; }
.about-grid .photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-grid .copy { grid-column: 7 / -1; display: grid; gap: 22px; align-content: start; }
.about-grid .copy p { margin: 0; max-width: 58ch; font-size: 17px; }
.about-grid .copy .lead { font-size: clamp(24px, 2.6vw, 34px); }
.defn { border-top: 1px solid var(--black); padding-top: 18px; display: grid; gap: 4px; }
.defn b { font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 30px; line-height: 1; }
.defn i { color: var(--ink-dim); font-size: 14px; }
.about-grid .copy .defn p { margin-top: 8px; color: var(--ink-dim); font-size: 15px; }
.values { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.values div { border-top: 1px solid var(--black); padding-top: 18px; min-width: 0; }
.values h2, .values h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.values p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.svc-detail { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 20px; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--black); }
.svc-detail:last-child { border-bottom: 1px solid var(--black); }
.svc-detail h2 { grid-column: 1 / span 4; font-size: clamp(48px, 6vw, 88px); }
.svc-detail .d { grid-column: 5 / span 4; display: grid; gap: 16px; align-content: start; }
.svc-detail .d p { margin: 0; font-size: 17px; }
.svc-detail .d .from { font-size: 14px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.svc-detail ul { grid-column: 10 / -1; margin: 0; padding: 0; list-style: none; font-size: 15px; display: grid; gap: 6px; align-content: start; }
.svc-detail ul li { color: var(--ink-dim); }
.svc-ctas { margin-top: 56px; display: flex; gap: 12px; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 28px; row-gap: 56px; }
.contact-grid form, .contact-grid .form-col { grid-column: 1 / span 7; }
.contact-grid form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.contact-grid aside { grid-column: 9 / -1; display: grid; gap: 32px; align-content: start; }
.contact-grid aside div { display: grid; gap: 4px; }
.contact-grid aside .v { font-size: 20px; user-select: all; word-break: break-word; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-dim); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--black); background: transparent; width: 100%; border: 0; border-bottom: 1px solid var(--line-l); border-radius: 0; padding: 8px 0 10px; transition: border-color .6s var(--slow); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pine); }
.field select option { background: var(--white); color: var(--black); }
.form-end { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 17px; max-width: 44ch; }
.form-note a { border-bottom: 1px solid currentColor; }

/* Contact Form 7, styled to match the prototype form */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container, .wpcf7 form > div[style*="display: none"] { display: none; }
.wpcf7-form-control-wrap { position: relative; display: block; }
.field .wpcf7-form-control { display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--black); }
.field .wpcf7-not-valid { border-bottom-color: var(--black); }
.wpcf7-response-output { margin: 0; color: var(--pine); font-weight: 500; font-size: 15px; }
.wpcf7-response-output:empty { display: none; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output { color: var(--black); }
.wpcf7-form.submitting .wpcf7-submit { opacity: .6; cursor: progress; }
.wpcf7-spinner { display: none; }

/* Generic pages (privacy policy etc.) */
.prose { max-width: 68ch; font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose a { border-bottom: 1px solid currentColor; }
.prose h2, .prose h3 { font-family: var(--logo); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: .95; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 40px; }
.prose h3 { font-size: 28px; }

/* Footer */
footer { padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-d); }
footer .row-f { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
footer .mark { font-size: 36px; }
footer .cols { display: flex; gap: clamp(28px, 5vw, 80px); flex-wrap: wrap; font-size: 14px; color: var(--white-dim); }
footer .cols div { display: grid; gap: 6px; }
footer .cols a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .pk-grid { grid-template-columns: minmax(0,1fr); }
  .shield .s-a, .shield ul, .shield .btn { grid-column: 1 / -1; }
  .extras .col-a, .extras .col-b, .about-grid .photo-slot, .about-grid .copy, .contact-grid form, .contact-grid .form-col, .contact-grid aside { grid-column: 1 / -1; }
  .svc-detail h2 { grid-column: 1 / -1; }
  .svc-detail .d { grid-column: 1 / span 7; }
  .svc-detail ul { grid-column: 9 / -1; }
  .row .inner p { grid-column: 1 / span 7; }
  .row .inner ul { grid-column: 9 / -1; }
  .row .inner a { grid-column: 1 / -1; justify-self: start; }
  .values { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-top: 1px solid var(--line-d); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.menu-open .links { display: flex; }
  .nav .links a:not(.btn) { padding-block: 12px; border-bottom: 1px solid var(--line-d); opacity: 1; }
  .nav .links a[aria-current="page"]::after { display: none; }
  .nav .links .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 600px) {
  .row button { grid-template-columns: minmax(0,1fr) auto; }
  .row .from { display: none; }
  .row .inner p, .row .inner ul, .svc-detail .d, .svc-detail ul { grid-column: 1 / -1; }
  .contact-grid form { grid-template-columns: minmax(0,1fr); }
  .opening .foot span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
