/*
Theme Name: Hector Fox Editorial
Theme URI: https://hector-fox.com
Author: Hector Fox + ChatGPT
Description: Editable WordPress theme based on the uploaded Hector Fox editorial HTML/React design. Built as a classic theme with Gutenberg/block-editor patterns, so pages remain visually editable and plugin-friendly.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
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: hectorfox-editorial
*/

:root {
  --bg: #f1ebdd;
  --bg-alt: #e2d6bf;
  --bg-deep: #2d2822;
  --fg: #2c241e;
  --fg-muted: #75695e;
  --fg-faint: #a49a8c;
  --line: rgba(44, 36, 30, 0.18);
  --line-soft: rgba(44, 36, 30, 0.08);
  --accent: #b3f12e;
  --accent-deep: #8ed118;
  --accent-fg: #2c241e;
  --display: "Newsreader", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container: 1320px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

::selection { background: var(--accent); color: var(--accent-fg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
img { max-width: 100%; height: auto; }
.wp-site-blocks, .site-main { background: var(--bg); }

.hf-container,
.site-header__inner,
.site-footer__inner,
.entry-content > .alignwide,
.entry-content > .hf-section > .wp-block-group__inner-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.entry-content > * { margin-block-start: 0; margin-block-end: 0; }
.entry-content > .wp-block-group { margin-top: 0; }

@media (max-width: 720px) {
  .hf-container,
  .site-header__inner,
  .site-footer__inner,
  .entry-content > .alignwide,
  .entry-content > .hf-section > .wp-block-group__inner-container {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.site-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 1px var(--accent-deep); }
.site-title { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.primary-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { font-size: 14px; color: var(--fg-muted); transition: color 0.2s ease; }
.primary-menu a:hover { color: var(--fg); }
.header-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 13px; font-weight: 500; }
.header-cta:hover { background: var(--accent-deep); color: var(--accent-fg); }
.lang-switch { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-muted); }
@media (max-width: 1000px) { .primary-menu { display: none; } }
@media (max-width: 560px) { .lang-switch { display: none; } .site-header__inner { min-height: 68px; } }

/* Type */
.hf-label,
.entry-content .hf-label,
.site-footer .hf-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.hf-display,
.entry-content .hf-display,
h1.hf-display,
h2.hf-display,
h3.hf-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1;
  margin: 0;
}
.hf-display em { font-style: italic; }
.hf-accent { color: var(--accent); font-style: italic; }
.hf-muted { color: var(--fg-muted); }
.hf-mono { font-family: var(--mono); }

/* Buttons */
.wp-block-button .wp-block-button__link,
.hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.wp-block-button .wp-block-button__link:hover,
.hf-btn:hover { transform: translateY(-1px); }
.wp-block-button.is-style-fill .wp-block-button__link,
.hf-btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--accent) 60%, transparent); }
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.hf-btn-primary:hover { background: var(--accent-deep); color: var(--accent-fg); }
.wp-block-button.is-style-outline .wp-block-button__link,
.hf-btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.hf-btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* Sections */
.hf-section { padding-top: 132px; padding-bottom: 132px; border-color: var(--line); }
@media (max-width: 720px) { .hf-section { padding-top: 80px; padding-bottom: 80px; } }
.hf-section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hf-section-dark { background: var(--fg); color: var(--bg); }
.hf-section-dark .hf-label { color: color-mix(in oklab, var(--bg) 62%, transparent); }
.hf-section-dark .hf-muted { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.hf-section-dark a:hover { color: var(--accent); }

/* Hero */
.hf-hero { padding-top: 70px; padding-bottom: 64px; overflow: hidden; }
.hf-meta-strip { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); gap: 24px; flex-wrap: wrap; }
.hf-hero-title { font-size: clamp(56px, 11vw, 168px); max-width: 13ch; letter-spacing: -0.028em; line-height: 0.95; margin-top: 72px !important; }
.hf-hero-intro-row { margin-top: 72px; display: grid !important; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.hf-hero-intro { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--fg-muted); max-width: 44ch; margin: 0; }
.hf-hero-band { margin-top: 96px; display: grid !important; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: stretch; }
.hf-card { border: 1px solid var(--line); padding: 28px; background: color-mix(in oklab, var(--bg-alt) 50%, var(--bg)); }
.hf-card-row { padding: 14px 0; border-bottom: 1px dashed var(--line-soft); display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; }
.hf-card-row:last-child { border-bottom: 0; }
.hf-card-row strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 16px; line-height: 1.4; }
@media (max-width: 880px) { .hf-hero-intro-row, .hf-hero-band { grid-template-columns: 1fr !important; } }

/* Placeholders and images */
.hf-ph {
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 8px, transparent 8px 16px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 4px;
}
.hf-ph::before { content: ""; position: absolute; inset: 12px; border: 1px dashed var(--line); pointer-events: none; }
.hf-ph > * { position: relative; z-index: 1; }
.hf-figcaption { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Client wall */
.hf-client-intro { display: grid !important; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.hf-client-wall { margin-top: 64px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid !important; grid-template-columns: repeat(4, 1fr); }
.hf-client-wall > * { min-height: 154px; display: flex; align-items: center; justify-content: center; padding: 32px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.03em; text-align: center; color: var(--fg); }
.hf-client-wall .hf-sans-logo { font-family: var(--sans); font-weight: 800; letter-spacing: 0.12em; }
@media (max-width: 900px) { .hf-client-intro { grid-template-columns: 1fr !important; } .hf-client-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hf-client-wall { grid-template-columns: 1fr; } }

/* Editorial manifesto */
.hf-manifesto-grid { display: grid !important; grid-template-columns: 0.9fr 1.3fr; gap: 80px; align-items: start; }
.hf-manifesto-title { font-size: clamp(42px, 6.2vw, 92px); max-width: 10ch; }
.hf-body-lg { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.18; letter-spacing: -0.018em; margin: 0; }
.hf-prose p { font-size: 17px; line-height: 1.72; color: var(--fg-muted); }
.hf-dropcap::first-letter { font-family: var(--display); font-style: italic; float: left; font-size: 4.4em; line-height: 0.85; padding-right: 12px; padding-top: 4px; color: var(--accent); }
.hf-pullquote { font-family: var(--display); font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; border-left: 4px solid var(--accent); padding-left: 28px; margin: 48px 0; color: var(--fg); }
@media (max-width: 980px) { .hf-manifesto-grid { grid-template-columns: 1fr !important; gap: 48px; } }

/* Cards */
.hf-section-heading { display: grid !important; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 64px; }
.hf-section-title { font-size: clamp(42px, 6.2vw, 92px); line-height: 0.98; }
.hf-grid-3 { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hf-grid-2 { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.hf-service-card, .hf-case-card, .hf-media-card {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 78%, white);
  padding: 30px;
  min-height: 100%;
}
.hf-service-card h3, .hf-case-card h3, .hf-media-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; }
.hf-service-card p, .hf-case-card p, .hf-media-card p { color: var(--fg-muted); margin-bottom: 20px; }
.hf-tag { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 20px; }
.hf-list { padding-left: 18px; color: var(--fg-muted); }
.hf-list li { margin: 8px 0; }
.hf-stat-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; border-top: 1px solid var(--line-soft); padding: 12px 0; }
.hf-stat-row strong { font-family: var(--display); font-size: 26px; font-weight: 400; }
.hf-stat-row span { color: var(--fg-muted); font-size: 14px; }
@media (max-width: 980px) { .hf-section-heading, .hf-grid-2, .hf-grid-3 { grid-template-columns: 1fr !important; } }

/* Booking / contact */
.hf-booking-card { border: 1px solid var(--line); background: var(--bg); padding: 36px; border-radius: 8px; }
.hf-shortcode-box { border: 1px dashed var(--line); padding: 28px; background: color-mix(in oklab, var(--bg-alt) 40%, var(--bg)); font-family: var(--mono); font-size: 13px; color: var(--fg-muted); }
.hf-contact-grid, .hf-about-grid { display: grid !important; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.hf-contact-line { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .hf-contact-grid, .hf-about-grid { grid-template-columns: 1fr !important; } }

/* Footer */
.site-footer { background: var(--fg); color: var(--bg); padding: 96px 0 32px; }
.site-footer a { color: color-mix(in oklab, var(--bg) 88%, transparent); }
.site-footer a:hover { color: var(--accent); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; padding-bottom: 80px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 18%, transparent); }
.site-footer__cta { font-family: var(--display); font-size: clamp(48px, 8.5vw, 132px); line-height: 0.95; letter-spacing: -0.03em; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent); font-family: var(--mono); font-size: 11px; color: color-mix(in oklab, var(--bg) 55%, transparent); letter-spacing: 0.08em; text-transform: uppercase; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; } .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* Editor helpers */
.editor-styles-wrapper { background: var(--bg); color: var(--fg); font-family: var(--sans); }
.editor-styles-wrapper .hf-section { padding-left: 24px; padding-right: 24px; }
