/*
Theme Name: Arisa Hub
Theme URI: https://arisamameda.com
Author: Mame Studio
Author URI: https://arisamameda.com
Description: A warm, editorial personal-hub theme for creators who refuse to pick one lane — newsletter, projects, food truck and all. Built mobile-first, fully responsive, with a FluentCRM-powered newsletter form and zero platform fees.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: arisa-hub
Tags: blog, portfolio, one-column, custom-colors, custom-menu, featured-images, full-width-template
*/

/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */
:root {
  /* Palette — pulled from the mockup */
  --olive-900: #2f2f1d;   /* deepest footer green */
  --olive-800: #3a3a24;   /* about / dark sections */
  --olive-700: #45452b;   /* buttons, strong text */
  --olive-600: #54552f;   /* headings on light bg */
  --olive-400: #7c7c52;   /* muted accents */
  --sand-500:  #c9b88f;   /* speckled tan background */
  --sand-300:  #ddd0b4;   /* lighter sand */
  --cream-200: #ece6d8;   /* light panel */
  --cream-100: #f4efe4;   /* card-ish cream */
  --white:     #ffffff;
  --ink:       #2c2c1c;   /* body text */
  --ink-muted: #5b5b46;

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: 22px;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 14px 40px rgba(47, 47, 29, 0.12);
}

/* =====================================================================
   2. RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-500);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--olive-600);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
p { margin: 0 0 1em; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* container */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--olive-700); color: var(--cream-100); }
.btn--primary:hover { background: var(--olive-800); }
.btn--block { width: 100%; }

/* =====================================================================
   3. SITE HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(58, 58, 36, 0.92);
  backdrop-filter: blur(8px);
  color: var(--cream-100);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
}
.site-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream-100);
  letter-spacing: .5px;
}
.site-brand:hover { text-decoration: none; opacity: .85; }
.nav-toggle {
  background: none; border: none; color: var(--cream-100);
  font-size: 1.5rem; cursor: pointer; padding: 6px; line-height: 1;
  display: inline-flex;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: var(--cream-100); font-size: .98rem; font-weight: 500; }
.main-nav a:hover { opacity: .8; text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--olive-800);
    padding: 10px var(--gutter) 18px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
}

/* =====================================================================
   4. HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  color: var(--white);
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,12,0) 35%, rgba(20,20,12,.55) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 42px; }
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  color: var(--white);
  max-width: 18ch;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

/* =====================================================================
   5. GENERIC SECTION
   ===================================================================== */
.section { padding: 64px 0; }
.section--tight { padding: 48px 0; }
.section--sand { background: var(--sand-500); }
.section--cream { background: var(--cream-200); }
.section--panel { background: var(--cream-100); }
.section--dark { background: var(--olive-800); color: var(--cream-100); }
.section--dark h2, .section--dark h3 { color: var(--cream-100); }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 600; color: var(--olive-400);
  margin-bottom: 10px; font-family: var(--font-body);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4em; }
.lead { font-size: 1.06rem; color: var(--ink-muted); max-width: 60ch; }

/* intro */
.intro__inner { max-width: 720px; }
.intro__title { font-size: clamp(2rem, 5vw, 3rem); }

/* =====================================================================
   6. NEWSLETTER
   ===================================================================== */
.newsletter { text-align: center; }
.newsletter__inner { max-width: 560px; margin: 0 auto; }
.newsletter__copy { color: var(--ink-muted); margin-bottom: 26px; }
.section--dark .newsletter__copy { color: rgba(244,239,228,.8); }
.nl-form { display: grid; gap: 14px; }
.nl-form__field {
  width: 100%;
  padding: 17px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--olive-400);
  background: var(--cream-100);
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
.nl-form__field::placeholder { color: var(--olive-400); }
.nl-form__field:focus { outline: 2px solid var(--olive-600); outline-offset: 1px; }
.nl-form__hp { position: absolute; left: -9999px; top: -9999px; }
.nl-note { font-size: .85rem; color: var(--ink-muted); margin: 12px 0 0; }

/* =====================================================================
   7. "UP TO LATELY" CARDS
   ===================================================================== */
.cards { display: grid; gap: 26px; margin-top: 38px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 16 / 10; background: var(--sand-300); background-size: cover; background-position: center; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.5rem; margin-bottom: .35em; }
.card__text { color: var(--ink-muted); font-size: .97rem; margin-bottom: 18px; }
.card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--olive-700); color: var(--cream-100);
  align-self: flex-start;
}
.card__cta:hover { background: var(--olive-800); text-decoration: none; }
.card__cta svg { width: 20px; height: 20px; }

/* =====================================================================
   8. ABOUT
   ===================================================================== */
.about__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__roles {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 600; color: var(--olive-400);
  margin-bottom: 14px;
}

/* =====================================================================
   9. INSTAGRAM
   ===================================================================== */
.insta__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.insta__handle { color: var(--olive-400); font-weight: 500; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insta-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand-300); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.insta-grid a:hover img { transform: scale(1.06); }

/* =====================================================================
   10. SITE FOOTER
   ===================================================================== */
.site-footer { background: var(--olive-900); color: rgba(244,239,228,.75); padding: 30px 0; text-align: center; font-size: .85rem; }
.site-footer a { color: rgba(244,239,228,.9); }

/* =====================================================================
   11. DESKTOP LAYOUTS
   ===================================================================== */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nl-form { grid-template-columns: 1fr auto; align-items: center; }
  .nl-form .btn--block { width: auto; }
  .nl-form .nl-note { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .section { padding: 92px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 86vh; }

  /* About becomes two columns */
  .about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  .about__photo { max-height: 520px; }

  /* Intro + first newsletter can sit side by side as a band */
  .insta-grid { grid-template-columns: repeat(6, 1fr); }
}

/* nicely cap reading width of dark newsletter on desktop */
@media (min-width: 720px) {
  .newsletter__inner { max-width: 620px; }
}

/* =====================================================================
   12. FLUENTCRM / FLUENT FORMS — match signup to the hub design
   ===================================================================== */
.newsletter .fluentform { margin: 0; }
.newsletter .fluentform .ff-el-group { margin: 0 0 14px; }
.newsletter .fluentform .ff-el-input--label label { display: none; } /* labels hidden; placeholders carry it */
.newsletter .fluentform .ff-el-form-control {
  width: 100%;
  padding: 17px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--olive-400);
  background: var(--cream-100);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}
.newsletter .fluentform .ff-el-form-control::placeholder { color: var(--olive-400); }
.newsletter .fluentform .ff-el-form-control:focus { outline: 2px solid var(--olive-600); outline-offset: 1px; }
.newsletter .fluentform .ff-btn-submit,
.newsletter .fluentform button[type="submit"] {
  width: 100%;
  padding: 15px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--olive-700);
  color: var(--cream-100);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.newsletter .fluentform .ff-btn-submit:hover { background: var(--olive-800); transform: translateY(-1px); }
.newsletter .fluentform .ff-message-success,
.newsletter .fluentform .ff-el-is-error .error { color: inherit; }

/* On desktop, sit the field + button side by side like the mockup */
@media (min-width: 720px) {
  .newsletter .fluentform .ff-step-body,
  .newsletter .fluentform .ff-t-container { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
  .newsletter .fluentform .ff-el-group { margin-bottom: 0; }
  .newsletter .fluentform .ff-btn-submit { width: auto; }
}
