/*
Theme Name: Vantage
Theme URI: https://mikedattolo.com
Author: Mike Dattolo
Description: Custom theme for Mike Dattolo — espresso and green, name-forward design built around the site's real content.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: vantage
*/

@font-face {
  font-family: 'New York';
  src: url('assets/fonts/NewYork.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Museo Sans';
  src: url('assets/fonts/MuseoSans-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('assets/fonts/SourceSansPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --espresso: #17130F;
  --espresso-2: #201A14;
  --copper: #37935C;
  --copper-bright: #4CAF74;
  --cream: #EDE7DD;
  --caption: #A69A89;
  --line: rgba(237, 231, 221, 0.14);
  --page-bg: var(--espresso);
  --page-fg: var(--cream);
  --panel: var(--espresso-2);
  --badge-bg: #221C16;
}
:root[data-theme="light"] {
  --page-bg: #F1ECE3;
  --page-fg: #201A14;
  --panel: #FFFFFF;
  --line: rgba(32, 26, 20, 0.14);
  --caption: #6E6353;
  --badge-bg: #FFFFFF;
  --copper: #2E7A4E;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page-bg: #F1ECE3;
    --page-fg: #201A14;
    --panel: #FFFFFF;
    --line: rgba(32, 26, 20, 0.14);
    --caption: #6E6353;
    --badge-bg: #FFFFFF;
    --copper: #2E7A4E;
    --cream: #201A14;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: 'Source Sans Pro', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'New York', Georgia, serif; font-weight: 400; text-wrap: balance; margin: 0; }
.slogan { font-family: 'Museo Sans', 'Arial Black', sans-serif; font-weight: 700; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--page-bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site-header .wrap { max-width: 1440px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap; }
.wordmark { font-family: 'New York'; font-size: 21px; text-decoration: none; color: var(--page-fg); white-space: nowrap; flex-shrink: 0; }
.wordmark .last { color: var(--copper-bright); }
.primary-nav { display: flex; align-items: center; gap: 22px; min-width: 0; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: nowrap; }
.primary-nav a { text-decoration: none; color: var(--caption); font-size: 13.5px; letter-spacing: 0.02em; transition: color .2s ease; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav .current-menu-item > a { color: var(--copper-bright); outline: none; }
.nav-cta {
  text-decoration: none; background: var(--copper); color: #17130F; font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 3px; transition: background .2s ease, transform .2s ease; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--copper-bright); transform: translateY(-1px); outline: none; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--page-fg);
  width: 42px; height: 42px; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--page-bg);
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; padding: 14px 32px; text-decoration: none; color: var(--page-fg); font-size: 15px; border-top: 1px solid var(--line); }
.mobile-nav a:first-child { border-top: none; }
.mobile-nav .nav-cta { display: block; text-align: center; margin: 14px 32px 6px; }

/* Page banner (interior pages) */
.page-banner { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-banner .eyebrow { color: var(--copper-bright); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; }
.page-banner h1 { font-size: clamp(36px, 5vw, 58px); margin-top: 14px; }

/* Buttons */
.btn-solid {
  text-decoration: none; background: var(--copper); color: #17130F; font-weight: 700; font-size: 14.5px;
  padding: 15px 26px; border-radius: 3px; transition: background .2s ease, transform .2s ease; display: inline-block;
}
.btn-solid:hover, .btn-solid:focus-visible { background: var(--copper-bright); transform: translateY(-2px); outline: none; }
.btn-outline {
  text-decoration: none; border: 1px solid var(--line); color: var(--page-fg); font-weight: 700; font-size: 14.5px;
  padding: 14px 25px; border-radius: 3px; transition: border-color .2s ease, color .2s ease; display: inline-block;
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--copper-bright); color: var(--copper-bright); outline: none; }

/* Hero (front page) */
.hero { padding: 76px 0 100px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px 7px 12px; font-size: 12.5px; color: var(--caption); margin-bottom: 26px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper-bright); }
.hero h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1.02; color: var(--cream); }
.slogan-line { font-size: clamp(22px, 3vw, 30px); margin: 20px 0 22px; line-height: 1.25; }
.slogan-line .pop { color: var(--copper-bright); }
.hero .lede { font-size: 17px; color: var(--caption); max-width: 50ch; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 46px; }
.stat-row { display: flex; gap: 46px; flex-wrap: wrap; }
.stat b { font-family: 'New York'; font-size: 28px; display: block; color: var(--cream); }
.stat b .plus { color: var(--copper-bright); }
.stat span { font-size: 12.5px; color: var(--caption); text-transform: uppercase; letter-spacing: 0.06em; }

.portrait-wrap { position: relative; }
.portrait-card {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.portrait-card img { width: 100%; aspect-ratio: 4/4.85; object-fit: cover; object-position: top; }
.float-badge {
  position: absolute; background: var(--badge-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; box-shadow: 0 16px 40px -18px rgba(0,0,0,0.5); max-width: 220px;
}
.float-badge .b-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.float-badge .b-title .mark { color: var(--copper-bright); }
.float-badge .b-sub { font-size: 11.5px; color: var(--caption); margin-top: 3px; }
.badge-top { top: -22px; right: -18px; }
.badge-bottom { bottom: -22px; left: -18px; }

/* Sections */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 48px; }
.section-head .eyebrow { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--copper-bright); }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); }

.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: start; }
.about-grid p { max-width: 62ch; margin: 0 0 20px; }
.pull-quote {
  margin: 34px 0 34px; padding-left: 26px; border-left: 3px solid var(--copper);
  font-family: 'New York', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.5;
  max-width: 56ch; color: var(--cream);
}
.credentials { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); padding-left: 28px; position: sticky; top: 100px; align-self: start; }
.credentials .c-item b { font-family: 'New York'; font-size: 21px; display: block; }
.credentials .c-item span { font-size: 12.5px; color: var(--caption); text-transform: uppercase; letter-spacing: 0.06em; }

.services-list-section { padding-top: 56px; }
.service-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding: 44px 0;
  border-top: 1px solid var(--line); scroll-margin-top: 90px;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row-label { display: flex; align-items: baseline; gap: 18px; }
.service-row-label .num { font-family: 'New York'; font-size: 34px; color: var(--copper-bright); line-height: 1; }
.service-row-label h2 { font-size: 26px; line-height: 1.2; }
.service-row-body p { margin: 0; max-width: 62ch; color: var(--caption); font-size: 16px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px;
  display: block; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover, .service-card:focus-visible { transform: translateY(-4px); border-color: var(--copper-bright); outline: none; }
.service-card .mark { color: var(--copper-bright); font-size: 13px; font-weight: 700; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { margin: 0; font-size: 14px; color: var(--caption); }

.sectors .tags, .tags { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors .tag, .tag { font-size: 13px; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; color: var(--page-fg); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  text-decoration: none; color: var(--page-fg); border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); display: block; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
a.post-card:hover, a.post-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(0,0,0,.5); outline: none; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--espresso-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .thumb { aspect-ratio: 3/4; }
.portfolio-card .thumb img { object-position: top; }
.post-card .date, .post-card h3 { padding: 0 22px; }
.post-card .date { display: block; margin-top: 18px; font-size: 12px; color: var(--copper-bright); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-family: 'Source Sans Pro'; font-weight: 700; font-size: 17px; margin: 10px 0 22px; line-height: 1.4; }
.portfolio-card h3 { padding-top: 18px; margin-top: 0; font-size: 15.5px; color: var(--caption); font-weight: 400; }

.closing { text-align: center; }
.closing .wrap { max-width: 680px; }
.closing h2 { font-size: clamp(34px, 5.5vw, 54px); margin-bottom: 20px; }
.closing p { color: var(--caption); margin-bottom: 32px; }

/* Interior page content (About, Privacy, etc via the_content) */
.page-content { padding: 24px 0 100px; }
.page-content .wrap { max-width: 800px; }
.page-content-grid { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-content-grid .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.entry-content h2 { font-size: 30px; margin: 46px 0 18px; }
.entry-content h3 { font-size: 23px; margin: 40px 0 16px; color: var(--cream); }
.entry-content p { margin: 0 0 20px; max-width: 68ch; }
.entry-content a { color: var(--copper-bright); }
.side-portrait { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); position: sticky; top: 100px; }
.side-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }

.credentials-inline {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.credentials-inline .c-item b { font-family: 'New York'; font-size: 19px; display: block; }
.credentials-inline .c-item span { font-size: 12px; color: var(--caption); text-transform: uppercase; letter-spacing: 0.06em; }

/* Editorial two-column body for the long-form bio below the intro/portrait row */
.entry-content-columns { max-width: none; column-count: 2; column-gap: 56px; }
.entry-content-columns p { max-width: none; }
.entry-content-columns h3 {
  column-span: all; margin: 0 0 18px; padding-top: 34px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.entry-content-columns h3::before {
  counter-increment: section; content: counter(section, decimal-leading-zero);
  font-family: 'Source Sans Pro'; font-size: 13px; font-weight: 700; color: var(--copper-bright); letter-spacing: 0.06em;
}
.entry-content-columns { counter-reset: section; }
.entry-content-columns h3:first-of-type { padding-top: 0; border-top: none; }

.mini-portfolio { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-portfolio a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.mini-portfolio img { aspect-ratio: 3/4; object-fit: cover; object-position: top; }

/* Resources */
.resources-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.resource-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--panel);
}
.resource-item h3 { font-family: 'Source Sans Pro'; font-weight: 700; font-size: 16px; margin: 0; }
.resource-item .go { color: var(--copper-bright); font-size: 13px; text-decoration: none; white-space: nowrap; font-weight: 700; }

/* Contact */
.contact-grid-single { max-width: 640px; margin: 0 auto; }
.contact-form-panel { padding: 0; background: transparent; }
.contact-form-panel label { display: block; font-size: 13.5px; color: var(--caption); margin-bottom: 7px; }
.contact-form-panel .wpcf7-form-control-wrap { display: block; width: 100%; }
.contact-form-panel input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.contact-form-panel textarea {
  display: block; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--page-fg);
  padding: 13px 15px; font-family: 'Source Sans Pro'; font-size: 15px;
}
.contact-form-panel input:focus, .contact-form-panel textarea:focus {
  outline: none; border-color: var(--copper-bright);
}
.contact-form-panel input[type=submit] {
  background: var(--copper); color: #17130F; font-weight: 700; border: none; border-radius: 3px;
  padding: 15px 30px; font-size: 14.5px; cursor: pointer; transition: background .2s ease, transform .2s ease; margin-top: 6px;
}
.contact-form-panel input[type=submit]:hover { background: var(--copper-bright); transform: translateY(-2px); }
.contact-form-panel p { margin-bottom: 22px; }

/* Blog archive */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pagination { display: flex; gap: 12px; margin-top: 48px; justify-content: center; }
.pagination a, .pagination span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--page-fg); font-size: 13.5px; }
.pagination .current { background: var(--copper); color: #17130F; border-color: var(--copper); }

/* Single post */
.single-post-banner-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.single-post-banner-grid h1 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; }
.single-post-banner-grid .featured { border-radius: 12px; overflow: hidden; }
.single-post-banner-grid .featured img { width: 100%; height: auto; display: block; }
.single-post .wrap { max-width: 760px; }
.single-post .post-meta { color: var(--caption); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }

@media (max-width: 780px) {
  .single-post-banner-grid { grid-template-columns: 1fr; }
  .single-post-banner-grid > div:first-child { order: 1; }
  .single-post-banner-grid .featured { order: 0; }
}

footer.site-footer { border-top: 1px solid var(--line); padding: 30px 0 50px; }
footer.site-footer .wrap { display: flex; justify-content: space-between; color: var(--caption); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid, .blog-grid { grid-template-columns: 1fr; }
  .resources-list { grid-template-columns: 1fr; }
  .page-content-grid .wrap { grid-template-columns: 1fr; }
  .side-portrait { max-width: 320px; position: static; }
  .entry-content-columns { column-count: 1; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .primary-nav { gap: 14px; }
  .primary-nav ul { gap: 14px; }
  .primary-nav a { font-size: 12.5px; }
  .nav-cta { padding: 10px 16px; font-size: 12.5px; }
}
@media (max-width: 860px) {
  header.site-header { position: sticky; }
  header.site-header .wrap { position: relative; }
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 380px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .credentials { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; flex-direction: row; flex-wrap: wrap; position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .float-badge { max-width: 180px; padding: 10px 12px; }
  .badge-top { top: -14px; right: -8px; }
  .badge-bottom { bottom: -14px; left: -8px; }
  .mini-portfolio { grid-template-columns: repeat(3, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
}
