/*
Theme Name: Albert Fouerti — Brooklyn
Theme URI: https://albertfouerti.live
Author: Albert Fouerti
Description: A practical guide to choosing a Brooklyn neighborhood: what to consider for commute, budget, space and lifestyle, from a Brooklyn real estate operator.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: albertfouerti-live
*/
:root { --bg: #fff8f1; --fg: #2a1a14; --acc: #e2603a; --acc2: #ffb38a; --hbg: #2a1a14; --onacc: #fff; --radius: 20px; --card: #ffffff; --alt: #f8f0e9; --soft: #fbe4d9; --line: #e3dbd4; --muted: #6e615b; --hfg: #ffffff; --hmuted: rgba(255,255,255,.74); --fbg: #1d120e; --ffg: #ffffff; --fmuted: rgba(255,255,255,.62); --hdrbg: #fff8f1e8; --fd: "DM Serif Display", Georgia, serif; --fb: "DM Sans", "Helvetica Neue", Arial, sans-serif; --hw: 400; --hls: -.01em; --hcase: none; --emstyle: italic; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--fb); font-size: 17.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--onacc); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
h1, h2, h3 { font-family: var(--fd); font-weight: var(--hw); letter-spacing: var(--hls); text-transform: var(--hcase); }
h1 em, h2 em { font-style: var(--emstyle); color: var(--acc); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--hdrbg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.mark { width: 38px; height: 38px; border-radius: calc(var(--radius) * .5); background: var(--acc); color: var(--onacc); display: grid; place-items: center; font-family: var(--fd); font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--fd); font-weight: 700; font-size: 17px; }
.brand-text small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav a.cta { background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: var(--radius); }
.nav a.cta:hover { background: var(--acc); color: var(--onacc); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: var(--radius); font-family: var(--fb); font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.btn.primary { background: var(--acc); color: var(--onacc); }
.btn.primary:hover { filter: brightness(.92); transform: translateY(-1px); }
.btn.secondary { border-color: currentColor; color: inherit; background: transparent; }
.btn.secondary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Hero */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; margin: 0; }
.lead { font-size: 20px; color: var(--muted); margin: 26px 0 34px; max-width: 580px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.byline { margin: 28px 0 0; font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--fg); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--acc); }
.hero-art svg { width: 100%; height: auto; display: block; }

.hero-center .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-center .kicker { justify-content: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.hero-center .hero-art { width: 100%; max-width: 920px; height: 300px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.hero-center .hero-art svg { height: 100%; }

.hero-dark .hero { background: var(--hbg); color: var(--hfg); }
.hero-dark .hero .lead, .hero-dark .hero .byline { color: var(--hmuted); }
.hero-dark .hero .byline a { color: var(--hfg); }
.hero-dark .hero h1 em, .hero-dark .hero .kicker { color: var(--acc2); }
.hero-dark .hero .btn.secondary:hover { background: var(--hfg); color: var(--hbg); border-color: var(--hfg); }

.hero-band .hero { background: var(--acc); color: var(--onacc); }
.hero-band .hero h1 em { color: var(--onacc); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.hero-band .hero .kicker, .hero-band .hero .lead, .hero-band .hero .byline { color: var(--onacc); opacity: .9; }
.hero-band .hero .byline a { color: var(--onacc); border-color: var(--onacc); }
.hero-band .hero .btn.primary { background: var(--onacc); color: var(--acc); }
.hero-band .hero .btn.secondary:hover { background: var(--onacc); color: var(--acc); border-color: var(--onacc); }

/* Sections */
.section { padding: 110px 0; }
.section h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; margin: 0; }
.overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.overview-copy p { margin: 0 0 20px; color: var(--muted); }
.overview-copy p.first { font-family: var(--fd); font-size: clamp(21px, 2vw, 25px); line-height: 1.45; color: var(--fg); }

.points { background: var(--alt); }
.points h2 { margin-bottom: 52px; max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.card .num { display: inline-block; font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--acc); margin-bottom: 14px; }
.card h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.cards-tiles .card { border: 0; background: var(--card); }
.cards-tiles .card:nth-child(3n+2) { background: var(--soft); }
.cards-tiles .card:nth-child(3n) { background: var(--fg); color: var(--bg); }
.cards-tiles .card:nth-child(3n) p { color: var(--bg); opacity: .78; }
.cards-tiles .card:nth-child(3n) .num { color: var(--acc2); }

.cards-numbers .card { background: transparent; border: 0; border-top: 2px solid var(--fg); border-radius: 0; padding: 26px 0 0; }
.cards-numbers .card:hover { transform: none; box-shadow: none; }
.cards-numbers .card .num { font-size: 52px; line-height: 1; color: var(--acc); margin-bottom: 18px; }
.cards-numbers .cards { gap: 44px 36px; }

.cards-list .cards { grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cards-list .card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.cards-list .card:hover { transform: none; box-shadow: none; }
.cards-list .card .num { grid-row: span 2; font-size: 20px; margin: 2px 0 0; }

/* Guide */
.guide-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc-head { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin: 0 0 14px; }
.toc ol { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: t; border-top: 1px solid var(--line); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc li a { display: flex; gap: 14px; padding: 14px 0; text-decoration: none; font-weight: 600; color: var(--muted); }
.toc li a::before { content: counter(t, decimal-leading-zero); color: var(--acc); font-family: var(--fd); }
.toc li a:hover { color: var(--fg); }
.g-item { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--line); position: relative; }
.g-item:last-child { border-bottom: 0; margin-bottom: 0; }
.g-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--acc); font-family: var(--fd); font-weight: 700; margin-bottom: 14px; }
.g-item h3 { font-size: 27px; line-height: 1.2; margin: 0 0 12px; }
.g-item p { margin: 0; color: var(--muted); font-size: 17.5px; }

.guide-columns .guide-grid { grid-template-columns: 1fr; gap: 48px; }
.guide-columns .toc { position: static; }
.guide-columns .toc ol { display: none; }
.guide-columns .guide-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-columns .g-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin: 0; background: var(--card); }

.guide-single .guide-grid { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; gap: 40px; }
.guide-single .toc { position: static; text-align: center; }
.guide-single .toc ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; margin-top: 26px; }
.guide-single .toc li { border: 0; }
.guide-single .toc li a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
.guide-single .g-item { padding-left: 76px; }
.guide-single .g-num { position: absolute; left: 0; top: 0; width: 52px; height: 52px; font-size: 20px; background: var(--acc); color: var(--onacc); }

/* FAQ */
.faq { background: var(--alt); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-family: var(--fd); font-weight: 600; font-size: 20px; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--acc); font-size: 20px; transition: transform .25s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 52px 24px 0; color: var(--muted); }
.faq-list .answer p { margin: 0; }

/* Author */
.author { padding: 80px 0; }
.author-box { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: 34px 38px; }
.author-mark { width: 74px; height: 74px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-family: var(--fd); font-weight: 700; font-size: 24px; }
.a-label { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.a-name { margin: 2px 0 2px; font-family: var(--fd); font-weight: 700; font-size: 26px; }
.a-role { margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--hbg); color: var(--hfg); }
.contact h2 em { color: var(--acc2); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-info p { color: var(--hmuted); margin: 22px 0 0; max-width: 420px; }
.contact-info .loc { font-weight: 700; color: var(--hfg); }
.form-card { background: var(--card); color: var(--fg); border-radius: calc(var(--radius) * 1.4); padding: 38px; }
.af-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.af-form .full { grid-column: 1 / -1; }
.af-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.af-form input, .af-form select, .af-form textarea { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: calc(var(--radius) * .6); font-family: var(--fb); font-size: 16px; padding: 13px 14px; color: var(--fg); outline: none; transition: border-color .2s; }
.af-form select { appearance: none; }
.af-form textarea { min-height: 130px; resize: vertical; }
.af-form input:focus, .af-form select:focus, .af-form textarea:focus { border-color: var(--acc); }
.af-form .hp { position: absolute; left: -9999px; }
.af-form #af_captcha { max-width: 200px; }
.cf-turnstile { min-height: 65px; }
.form-note { padding: 14px 18px; border-radius: calc(var(--radius) * .6); margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.form-note.ok { background: #e2f2e6; color: #1d4a2a; }
.form-note.err { background: #fbe3dc; color: #7a2410; }

/* Footer */
.site-footer { background: var(--fbg); color: var(--fmuted); padding: 70px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(127,127,127,.25); }
.f-brand { font-family: var(--fd); font-weight: 700; font-size: 24px; color: var(--ffg); margin: 0; }
.f-brand span { font-weight: 400; color: var(--fmuted); font-size: 17px; }
.f-desc { margin: 12px 0 0; max-width: 340px; }
.f-head { margin: 4px 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ffg); }
.disclaimer { font-size: 13px; margin: 24px 0 0; max-width: 900px; opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; }

/* Other pages */
.page-body { padding: 110px 0; }
.page-body .entry { max-width: 760px; }
.page-body .entry h1 { font-size: 52px; line-height: 1.05; margin: 0 0 30px; }

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

@media (max-width: 1000px) {
  .section { padding: 84px 0; }
  .hero-inner, .overview-grid, .guide-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 520px; }
  .toc { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards-list .cards { grid-template-columns: 1fr; }
  .guide-columns .guide-body { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: auto 1fr; }
  .author-box .btn { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav a:not(.cta), .brand-text small { display: none; }
  .hero { padding: 48px 0 72px; }
  .cards, .af-form { grid-template-columns: 1fr; }
  .guide-single .g-item { padding-left: 0; padding-top: 66px; }
  .form-card { padding: 26px 20px; }
  .author-box { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
