/*
Theme Name: Dattolo Profile
Theme URI: https://michaeldattolo.com
Author: NetReputation
Description: Editorial personal-brand theme for Michael Dattolo — Fraunces + Public Sans, white ground, NetReputation green accent.
Version: 1.0.0
Text Domain: dattolo-profile
*/

:root{
  --ink:#14231b;
  --sub:#4b5b52;
  --green:#2e7a4c;
  --green2:#37935c;
  --mint:#e9f4ed;
  --brass:#a9824c;
  --line:#dfe7e1;
  --bg:#ffffff;
  --radius:14px;
  --shadow: 0 24px 48px -24px rgba(20,40,30,.28);
  --max: 1080px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Public Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; text-wrap:balance; font-weight:600; }
p{ margin:0 0 1em; }
.container{ max-width:var(--max); margin:0 auto; padding:0 28px; }
section{ padding:64px 0; }
.eyebrow{ font-size:12.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--green); }
.display, h1, h2.display, h3.display{ font-family:'Fraunces',serif; }
:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }

.btn{
  display:inline-flex; align-items:center; gap:8px; border-radius:8px; padding:12px 22px;
  font-weight:600; font-size:14.5px; cursor:pointer; border:1px solid transparent; font-family:'Public Sans',sans-serif;
}
.btn-green{ background:var(--green2); color:#fff; }
.btn-green:hover{ background:var(--green); }
.btn-outline{ border:1.5px solid var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ background:var(--ink); color:#fff; }

/* ---------- Site header ---------- */
.site-header{ border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:40; }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding:18px 28px; }
.site-logo{ font-family:'Fraunces',serif; font-weight:600; font-size:19px; color:var(--ink); }
.site-logo span{ color:var(--green); }
.primary-nav ul{ list-style:none; display:flex; gap:30px; margin:0; padding:0; }
.primary-nav a{ font-size:14px; font-weight:600; color:var(--sub); }
.primary-nav a:hover, .primary-nav .current-menu-item a{ color:var(--green); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle svg{ width:22px; height:22px; }
@media (max-width:780px){
  .primary-nav{ position:fixed; inset:64px 0 0 0; background:#fff; padding:24px 28px; transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; }
  .primary-nav.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .primary-nav ul{ flex-direction:column; gap:22px; }
  .primary-nav a{ font-size:18px; }
  .nav-toggle{ display:block; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#cddccf; padding:52px 0 28px; margin-top:0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px; margin-bottom:36px; }
.footer-grid h4{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.07em; margin-bottom:14px; }
.footer-grid p{ font-size:14px; color:#a9bcae; max-width:320px; line-height:1.65; }
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.footer-links a{ font-size:14px; color:#cddccf; }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:20px; font-size:12.5px; color:#8ba090; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr; } }

/* ================= HOME ================= */
.hero{ padding:56px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
.hero h1{ font-size:56px; line-height:1.02; margin:10px 0 16px; }
.hero-sub{ font-size:17px; color:var(--sub); line-height:1.6; max-width:480px; }
.hero-photo{ border-radius:16px; overflow:hidden; box-shadow:var(--shadow); max-width:300px; margin-left:auto; }
.hero-photo img{ width:100%; height:auto; display:block; }
@media (max-width:900px){ .hero-photo{ max-width:280px; margin:0 auto; } }

.stat-strip{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat{ padding:22px 28px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat-num{ font-family:'Fraunces',serif; font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; }
.stat-label{ font-size:12.5px; color:var(--sub); margin-top:2px; }

.about-grid{ display:grid; grid-template-columns:1.3fr .7fr; gap:56px; align-items:start; }
.about-grid h2{ font-size:32px; margin-bottom:18px; }
.about-grid p{ font-size:15.5px; line-height:1.75; margin:0 0 14px; }
.pull{ background:var(--mint); border-radius:var(--radius); padding:26px 24px; }
.pull blockquote{ font-family:'Fraunces',serif; font-size:19px; line-height:1.4; margin:0 0 12px; font-style:italic; }
.pull cite{ font-size:12.5px; color:var(--sub); font-style:normal; }

.focus-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.focus-card{ border:1px solid var(--line); border-radius:var(--radius); padding:22px 18px; }
.focus-num{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--green); }
.focus-card h3{ font-family:'Fraunces',serif; font-size:19px; margin:10px 0 8px; }
.focus-card p{ font-size:13.5px; color:var(--sub); line-height:1.55; margin:0; }

.port-grid{ display:grid; grid-template-columns:1.4fr 1fr; grid-template-rows:auto auto; gap:16px; }
.port-grid figure{ margin:0; border-radius:12px; overflow:hidden; position:relative; }
.port-grid img{ width:100%; height:100%; object-fit:cover; }
.port-grid figure.lead{ grid-row:1 / 3; }
.port-cap{ position:absolute; left:0; right:0; bottom:0; padding:14px 16px; background:linear-gradient(0deg,rgba(10,20,15,.72),transparent); color:#fff; font-size:13px; font-weight:600; }

.press-row{ display:flex; align-items:center; gap:36px; flex-wrap:wrap; justify-content:center; padding:32px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.press-badge{ font-family:'Fraunces',serif; font-size:15px; color:var(--sub); font-weight:600; }
.press-badge b{ color:var(--brass); font-weight:600; }
.press-badge a{ border-bottom:1px solid transparent; }
.press-badge a:hover{ border-color:var(--brass); }

.news-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.news-card{ border-top:3px solid var(--green); padding-top:14px; }
.news-date{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--sub); }
.news-card h4{ font-size:15px; margin:8px 0 0; line-height:1.4; font-weight:600; }
.news-card a{ color:var(--ink); }
.news-card a:hover{ color:var(--green); }

.contact-band{ background:var(--ink); color:#fff; border-radius:20px; padding:44px; display:grid; grid-template-columns:.9fr 1.1fr; gap:40px; }
.contact-band h2{ font-size:28px; color: #fff; }
.contact-band .sub{ color:#b9c7bf; font-size:14.5px; margin-top:8px; }
.contact-band address{ font-style:normal; color:#b9c7bf; margin-top:16px; font-size:14.5px; line-height:1.7; }

/* wpcf7 form theming (light on dark, for contact-band) */
.contact-band .wpcf7-form p{ margin-bottom:12px; }
.contact-band .wpcf7-form label{ display:block; font-size:12px; color:#b9c7bf; margin-bottom:5px; }
.contact-band .wpcf7-form input:not([type=submit]), .contact-band .wpcf7-form textarea{
  width:100%; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:8px;
  padding:10px 12px; color:#fff; font-size:14px; font-family:inherit;
}
.contact-band .wpcf7-form input::placeholder, .contact-band .wpcf7-form textarea::placeholder{ color:#8aa093; }
.contact-band .wpcf7-form input[type=submit]{
  background:var(--green2); color:#fff; border:none; border-radius:8px; padding:12px 24px; font-weight:600; font-size:14.5px; cursor:pointer;
}
.contact-band .wpcf7-form input[type=submit]:hover{ background:var(--green); }
.contact-band .wpcf7-response-output{ margin-top:12px; padding:10px 14px; border-radius:8px; font-size:13.5px; }

/* light version of the form (for the dedicated contact page) */
.contact-page-form .wpcf7-form p{ margin-bottom:14px; }
.contact-page-form .wpcf7-form label{ display:block; font-size:12.5px; color:var(--sub); margin-bottom:6px; font-weight:600; }
.contact-page-form .wpcf7-form input:not([type=submit]), .contact-page-form .wpcf7-form textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 13px; font-size:14.5px; font-family:inherit; background:#fbfcfb;
}
.contact-page-form .wpcf7-form input[type=submit]{
  background:var(--green2); color:#fff; border:none; border-radius:8px; padding:12px 24px; font-weight:600; font-size:14.5px; cursor:pointer;
}
.contact-page-form .wpcf7-form input[type=submit]:hover{ background:var(--green); }
.wpcf7-not-valid-tip{ color:#b23b3b; font-size:12.5px; margin-top:4px; }
.wpcf7-response-output{ border:1px solid var(--line); border-radius:8px; padding:10px 14px; font-size:13.5px; margin-top:14px; }

/* ================= INNER PAGE HERO (About / Portfolio / Resources / Contact / Privacy) ================= */
.page-hero{ padding:64px 0 40px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.page-hero .eyebrow{ margin-bottom:10px; display:block; }
.page-hero h1{ font-size:44px; }
.page-hero p{ font-size:16px; color:var(--sub); max-width:560px; margin-top:12px; }

/* ---- About page ---- */
.about-body{ display:grid; grid-template-columns:1fr; gap:0; max-width:760px; margin:0 auto; }
.about-body h2{ font-family:'Fraunces',serif; font-size:22px; margin:36px 0 12px; }
.about-body p{ font-size:15.5px; line-height:1.8; margin:0 0 14px; color:var(--ink); }
.about-portfolio{ margin-top:20px; }
.about-portfolio h2{ font-size:26px; margin-bottom:20px; text-align:center; }
.simple-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.simple-gallery figure{ margin:0; border-radius:12px; overflow:hidden; }
.simple-gallery img{ width:100%; aspect-ratio:4/3; object-fit:cover; }

/* ---- Portfolio page ---- */
.portfolio-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.portfolio-gallery figure{ margin:0; border-radius:14px; overflow:hidden; box-shadow:0 12px 28px -16px rgba(20,40,30,.2); }
.portfolio-gallery img{ width:100%; height:100%; object-fit:cover; aspect-ratio:3/4; }

/* ---- Resources / Press page ---- */
.press-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.press-card{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:transform .18s,box-shadow .18s; }
.press-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.press-thumb{ height:56px; display:flex; align-items:center; padding:0 20px; background:var(--mint); gap:12px; }
.press-thumb img{ width:28px; height:28px; object-fit:contain; border-radius:4px; }
.press-thumb span{ font-size:12.5px; font-weight:600; color:var(--brass); text-transform:uppercase; letter-spacing:.04em; }
.press-card-body{ padding:18px 20px 22px; flex:1; display:flex; flex-direction:column; }
.press-card-body h3{ font-family:'Fraunces',serif; font-size:17px; margin:0 0 8px; line-height:1.35; }
.press-card-body p{ font-size:13.5px; color:var(--sub); line-height:1.55; margin:0; flex:1; }
.press-card-body .read{ margin-top:14px; font-size:13px; font-weight:600; color:var(--green); }

/* ---- Contact page ---- */
.contact-page-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:start; }
.contact-info h2{ font-size:26px; margin-bottom:10px; }
.contact-info address{ font-style:normal; color:var(--sub); font-size:15px; line-height:1.8; margin-top:14px; }
.contact-info .mint-box{ background:var(--mint); border-radius:var(--radius); padding:22px; margin-top:24px; font-size:14px; color:var(--ink); line-height:1.6; }

/* ---- Privacy / prose pages ---- */
.prose{ max-width:700px; margin:0 auto; font-size:15.5px; line-height:1.8; }
.prose h2{ font-family:'Fraunces',serif; font-size:22px; margin:34px 0 12px; }
.prose h2:first-child{ margin-top:0; }
.prose p{ margin:0 0 14px; color:var(--ink); }
.prose a{ color:var(--green); text-decoration:underline; }

/* ================= BLOG (index + single) ================= */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.blog-card{ border-top:3px solid var(--green); padding-top:16px; }
.blog-card .thumb{ border-radius:12px; overflow:hidden; margin-bottom:14px; }
.blog-card .thumb img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.blog-card .meta{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--sub); }
.blog-card h2,.blog-card h3{ font-family:'Fraunces',serif; font-size:19px; margin:8px 0 8px; line-height:1.35; }
.blog-card p{ font-size:14px; color:var(--sub); line-height:1.6; margin:0; }
.blog-card a{ color:var(--ink); }
.blog-card a:hover{ color:var(--green); }
.pagination{ display:flex; gap:8px; margin-top:44px; justify-content:center; }
.pagination a,.pagination span{ font-size:13.5px; font-weight:600; padding:8px 14px; border:1px solid var(--line); border-radius:8px; color:var(--sub); }
.pagination .current{ background:var(--green2); color:#fff; border-color:var(--green2); }

.single-post{ max-width:720px; margin:0 auto; }
.single-post .meta{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--sub); margin-bottom:10px; }
.single-post h1{ font-size:38px; margin-bottom:20px; }
.single-post .thumb{ border-radius:14px; overflow:hidden; margin-bottom:32px; }
.single-post .thumb img{ width:100%; aspect-ratio:16/9; object-fit:cover; }
.single-post .entry-content{ font-size:16.5px; line-height:1.85; }
.single-post .entry-content p{ margin:0 0 18px; }
.single-post .entry-content h2{ font-family:'Fraunces',serif; font-size:26px; margin:36px 0 16px; }
.single-post .entry-content h3{ font-family:'Fraunces',serif; font-size:21px; margin:28px 0 12px; }
.single-post .entry-content img{ border-radius:12px; margin:20px 0; }
.single-post .entry-content a{ color:var(--green); text-decoration:underline; }
.back-link{ display:inline-block; margin-bottom:28px; font-size:13.5px; font-weight:600; color:var(--sub); }
.back-link:hover{ color:var(--green); }

/* ---- 404 ---- */
.error-404{ text-align:center; padding:100px 0; }
.error-404 h1{ font-size:80px; color:var(--mint); -webkit-text-stroke:2px var(--green); }
.error-404 p{ color:var(--sub); font-size:16px; margin-bottom:24px; }

/* ---- responsive ---- */
@media (max-width:900px){
  .hero-grid,.about-grid,.contact-band,.contact-page-grid{ grid-template-columns:1fr; }
  .stat-strip,.focus-grid,.news-grid,.simple-gallery,.portfolio-gallery,.press-grid,.blog-grid{ grid-template-columns:repeat(2,1fr); }
  .port-grid{ grid-template-columns:1fr; }
  .port-grid figure.lead{ grid-row:auto; }
  .hero h1{ font-size:40px; }
  .page-hero h1{ font-size:32px; }
}
@media (max-width:560px){
  .stat-strip{ grid-template-columns:1fr; }
  .stat{ border-right:none; border-bottom:1px solid var(--line); }
  .focus-grid,.news-grid,.simple-gallery,.portfolio-gallery,.press-grid,.blog-grid{ grid-template-columns:1fr; }
  section{ padding:44px 0; }
}
