/*
Theme Name: Harbor Editorial
Theme URI: https://example.com/harbor-editorial
Author: Harbor
Description: A warm editorial single-page business theme with a full-bleed hero, serif display headings and soft rounded cards. Content is driven by the shared content pack, so each build renders a different brand and niche.
Version: 1.0.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nobleride-limo
*/

:root {
  --color-bg: #fdfbf7;
  --color-bg-soft: #f5efe6;
  --color-surface: #ffffff;
  --color-line: #e7ddcf;
  --color-text: #26201a;
  --color-text-muted: #7a6f62;
  --color-gold: #b07d48;        /* accent — overridden per site by the pack */
  --color-gold-soft: #cfa477;
  --color-dark-on-gold: #ffffff;
  --color-ink: #2a231c;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1080px;
  --radius: 18px;
  --shadow-card: 0 18px 50px rgba(38, 32, 26, 0.10);
  --transition: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 760px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn--pill { background: var(--color-gold); color: var(--color-dark-on-gold); }
.btn--pill:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-line); }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn--invert { background: #fff; color: var(--color-ink); }
.btn--invert:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 38px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  transition: var(--transition); background: transparent;
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.brand__accent { color: var(--color-gold); }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.site-nav__link { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; transition: var(--transition); opacity: 0.85; }
.site-nav__link:hover { opacity: 1; }
.site-header__cta { padding: 10px 22px; }

/* Home hero: transparent header with light text until scrolled. */
.home .site-header { color: #fff; }
.home .site-header .brand__accent { color: #fff; }
.site-header.is-scrolled,
body:not(.home) .site-header {
  position: fixed; background: rgba(253, 251, 247, 0.94);
  backdrop-filter: saturate(180%) blur(10px); color: var(--color-text);
  box-shadow: 0 6px 24px rgba(38, 32, 26, 0.06);
}
.site-header.is-scrolled .brand__accent,
body:not(.home) .site-header .brand__accent { color: var(--color-gold); }
body:not(.home) { padding-top: 84px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--hero-image, linear-gradient(135deg, #4a3f33, #2a231c)) center/cover no-repeat;
  color: #fff; text-align: center;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0.45), rgba(20,16,12,0.65)); }
.hero__inner { position: relative; z-index: 2; max-width: 780px; padding-top: 84px; padding-bottom: 40px; margin: 0 auto; }
.hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; margin-bottom: 22px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero__title em { font-style: italic; color: var(--color-gold-soft); }
.hero__lead { font-size: 1.2rem; line-height: 1.7; margin: 24px auto 34px; max-width: 54ch; opacity: 0.94; }

/* Stat strip -------------------------------------------------------------- */
.stat-strip { background: var(--color-ink); color: #fff; }
.stat-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-strip__item { padding: 34px 20px; text-align: center; }
.stat-strip__item + .stat-strip__item { border-left: 1px solid rgba(255,255,255,0.12); }
.stat-strip__value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.stat-strip__label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

/* Sections ---------------------------------------------------------------- */
.section { padding: 100px 0; }
.section--soft { background: var(--color-bg-soft); }
.section__head--center { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 16px; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); }
.section__lead { color: var(--color-text-muted); margin-top: 18px; font-size: 1.1rem; }

/* Soft cards (items) ------------------------------------------------------ */
.soft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.soft-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: var(--transition); }
.soft-card:hover { transform: translateY(-4px); }
.soft-card__media { aspect-ratio: 4 / 3; background: var(--color-bg-soft); }
.soft-card__media img, .soft-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.soft-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.soft-card__name { font-size: 1.4rem; }
.soft-card__text { color: var(--color-text-muted); font-size: 0.99rem; margin: 0; flex: 1; }
.soft-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.soft-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.soft-card__price span { font-family: var(--font-body); font-weight: 400; color: var(--color-text-muted); font-size: 0.82rem; }

/* About ------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; background: var(--color-bg-soft); }
.about-visual img, .about-visual svg { width: 100%; height: 100%; object-fit: cover; }
.about-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.about-list li { position: relative; padding-left: 30px; }
.about-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--color-gold); font-weight: 700; }

/* Editorial services ------------------------------------------------------ */
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.editorial-item { background: var(--color-bg); padding: 36px 32px; }
.editorial-item__title { font-size: 1.4rem; margin-bottom: 12px; }
.editorial-item__text { color: var(--color-text-muted); margin: 0; font-size: 0.99rem; }

/* Values (why) ------------------------------------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; max-width: 900px; margin: 0 auto; }
.value { display: flex; gap: 22px; }
.value__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--color-gold); line-height: 1; flex: 0 0 auto; }
.value__title { font-size: 1.3rem; margin-bottom: 8px; }
.value__text { color: var(--color-text-muted); margin: 0; font-size: 0.99rem; }

/* Testimonials ------------------------------------------------------------ */
.testimonials { display: grid; gap: 44px; }
.testimonial { text-align: center; margin: 0; }
.testimonial__text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.5; font-style: italic; margin: 0 0 20px; }
.testimonial__author { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 700; }
.testimonial__role { color: var(--color-text-muted); font-size: 0.92rem; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--color-ink); padding: 88px 0; text-align: center; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-band__title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 20ch; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 28px; text-align: center; }
.contact-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 10px; }
.contact-card__value { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-card__value a:hover { color: var(--color-gold); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--color-bg-soft); border-top: 1px solid var(--color-line); padding: 72px 0 36px; }
.site-footer__top { text-align: center; margin-bottom: 48px; }
.site-footer__top .brand { font-size: 28px; }
.site-footer__tagline { color: var(--color-text-muted); margin-top: 12px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 820px; margin: 0 auto; }
.site-footer__col { text-align: center; }
.site-footer__heading { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 16px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__list a:hover { color: var(--color-gold); }
.site-footer__list--contact { word-break: break-word; }
.site-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--color-line); }
.site-footer__note { color: var(--color-text-muted); font-size: 0.88rem; margin: 0; }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .soft-grid, .editorial-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); background: var(--color-bg); color: var(--color-text); transform: translateX(100%); transition: transform 0.3s ease; padding: 92px 30px 30px; margin: 0; }
  .site-nav.is-open { transform: none; box-shadow: -24px 0 60px rgba(38,32,26,0.18); }
  .site-nav__list { flex-direction: column; gap: 4px; }
  .site-nav__link { display: block; padding: 13px 0; font-size: 1.15rem; opacity: 1; border-bottom: 1px solid var(--color-line); }
  .soft-grid, .editorial-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-strip__inner { grid-template-columns: 1fr; }
  .stat-strip__item + .stat-strip__item { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 80vh; }
}
