/*
Theme Name: LARA Decision Intelligence
Theme URI: https://lara-method.com
Author: LARA
Description: Full Site Editing theme for the LARA Decision Intelligence Operating Model website.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: lara-theme

-- Colour Palette --
Sand:       #F7F2EB
Dark:       #212429
Gold:       #B59A6D
Grey mid:   #787874
White:      #FFFFFF
*/

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lara-sand:       #F7F2EB;
  --lara-sand-dark:  #EAE4D8;
  --lara-dark:       #212429;
  --lara-gold:       #B59A6D;
  --lara-gold-light: #CDB887;
  --lara-grey:       #787874;
  --lara-white:      #FFFFFF;
  --lara-font-serif: 'Liberation Sans', 'Helvetica Neue', Arial, sans-serif;
  --lara-font-sans: 'Liberation Sans', 'Helvetica Neue', Arial, sans-serif;
  --lara-max-width:  1280px;
  --lara-nav-height: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--lara-font-sans);
  background-color: var(--lara-sand);
  color: var(--lara-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--lara-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--lara-gold-light); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lara-font-sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--lara-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
p  { font-size: 1.05rem; color: var(--lara-grey); margin-bottom: 1rem; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.lara-container {
  max-width: var(--lara-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.lara-section {
  padding: 5rem 0;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.lara-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--lara-nav-height);
  background: var(--lara-sand);
  border-bottom: 1px solid rgba(26,26,26,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.lara-nav__inner {
  max-width: var(--lara-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lara-nav__logo img {
  height: 36px;
  width: auto;
}

.lara-nav__menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.lara-nav__menu a {
  font-family: var(--lara-font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lara-dark);
  transition: color 0.2s ease;
}

.lara-nav__menu a:hover {
  color: var(--lara-gold);
}

/* Mobile nav toggle */
.lara-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.lara-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lara-dark);
  transition: all 0.3s ease;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.lara-hero {
  min-height: 100vh;
  padding-top: var(--lara-nav-height);
  background-color: var(--lara-sand);
  background-image: url('../images/lara-hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.lara-hero__inner {
  max-width: var(--lara-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 3rem;
}

.lara-hero__graphic {
  position: relative;
}

.lara-hero__graphic img {
  width: 100%;
  max-width: 580px;
}

.lara-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lara-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lara-hero__arrow {
  color: var(--lara-gold);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
}

.lara-hero__logo-lockup {
  font-family: var(--lara-font-sans);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lara-dark);
  line-height: 1;
}

.lara-hero__logo-lockup sup {
  font-size: 0.35em;
  vertical-align: super;
  font-weight: 400;
  letter-spacing: 0;
}

.lara-hero__headline {
  font-family: var(--lara-font-sans);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lara-dark);
  letter-spacing: -0.02em;
}

.lara-hero__tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lara-dark);
  margin-bottom: 0.25rem;
}

.lara-hero__subtext {
  font-size: 1rem;
  color: var(--lara-grey);
  margin-bottom: 0;
}

.lara-hero__cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--lara-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--lara-dark);
  color: var(--lara-white);
  border-color: var(--lara-dark);
}
.btn--primary:hover {
  background: var(--lara-gold);
  border-color: var(--lara-gold);
  color: var(--lara-white);
}

.btn--outline {
  background: transparent;
  color: var(--lara-dark);
  border-color: var(--lara-dark);
}
.btn--outline:hover {
  background: var(--lara-dark);
  color: var(--lara-white);
}

/* ── CONTENT SECTIONS ─────────────────────────────────────── */
.lara-section--white {
  background: var(--lara-white);
}

.lara-section--sand {
  background: var(--lara-sand);
}

.lara-section--dark {
  background: var(--lara-dark);
  color: var(--lara-white);
}
.lara-section--dark h2,
.lara-section--dark h3,
.lara-section--dark p {
  color: var(--lara-white);
}

.lara-section__header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.lara-section__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lara-gold);
  margin-bottom: 0.75rem;
}

/* ── FOUR PILLARS GRID ────────────────────────────────────── */
.lara-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(26,26,26,0.12);
}

.lara-pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(26,26,26,0.12);
  transition: background 0.3s ease;
}

.lara-pillar:last-child { border-right: none; }

.lara-pillar:hover {
  background: var(--lara-dark);
}
.lara-pillar:hover .lara-pillar__letter,
.lara-pillar:hover .lara-pillar__name,
.lara-pillar:hover .lara-pillar__desc {
  color: var(--lara-white);
}
.lara-pillar:hover .lara-pillar__letter {
  color: var(--lara-gold);
}

.lara-pillar__letter {
  font-family: var(--lara-font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--lara-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.lara-pillar__name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.lara-pillar__desc {
  font-size: 0.9rem;
  color: var(--lara-grey);
  transition: color 0.3s ease;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.lara-footer {
  background: var(--lara-dark);
  color: var(--lara-white);
  padding: 3rem 0 2rem;
}

.lara-footer__inner {
  max-width: var(--lara-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.lara-footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  max-width: var(--lara-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── GUTENBERG BLOCK OVERRIDES ────────────────────────────── */
.wp-block-group.lara-hero-block {
  background-color: var(--lara-sand);
  min-height: 100vh;
}

.wp-block-cover.lara-cover {
  min-height: 100vh;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lara-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .lara-pillar:nth-child(2) { border-right: none; }
  .lara-pillar:nth-child(1),
  .lara-pillar:nth-child(2) {
    border-bottom: 1px solid rgba(26,26,26,0.12);
  }
}

@media (max-width: 768px) {
  .lara-hero__inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  .lara-hero__graphic {
    order: 2;
  }
  .lara-hero__content {
    order: 1;
  }
  .lara-nav__menu {
    display: none;
    position: absolute;
    top: var(--lara-nav-height);
    left: 0; right: 0;
    background: var(--lara-sand);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(26,26,26,0.1);
    gap: 1.5rem;
  }
  .lara-nav__menu.is-open {
    display: flex;
  }
  .lara-nav__toggle {
    display: flex;
  }
  .lara-pillars {
    grid-template-columns: 1fr;
  }
  .lara-pillar { border-right: none; border-bottom: 1px solid rgba(26,26,26,0.12); }
  .lara-pillar:last-child { border-bottom: none; }
}

/* ── DESIGN GUIDE CORRECTIONS ─────────────────────────────── */
/* All headings use sans-serif per design guide */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lara-font-sans);
}

/* Tagline is italicised per design guide Tier 4 */
.lara-hero__subtext {
  font-style: italic;
  font-weight: 500;
}

/* Logo text is regular weight sans-serif */
.lara-hero__logo-lockup {
  font-family: var(--lara-font-sans);
  font-weight: 900;
}

/* Nav links: tracked open per design guide */
.lara-nav__menu a {
  letter-spacing: 0.1em;
}

/* ── v1.3 LAYOUT & HIERARCHY FIXES ──────────────────────────── */

/* Hero: tighter vertical, full viewport minus nav */
.lara-hero {
  min-height: calc(100vh - var(--lara-nav-height));
  padding-top: 0;
  align-items: stretch;
}

.lara-hero__inner {
  min-height: calc(100vh - var(--lara-nav-height));
  padding: 2rem 2rem 2rem 0;
  align-items: center;
  gap: 0;
}

/* Graphic column: full height, no padding, image fills it */
.lara-hero__graphic {
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.lara-hero__graphic img,
.lara-hero__graphic figure,
.lara-hero__graphic .wp-block-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.lara-hero__graphic img {
  object-fit: contain;
  object-position: center;
}

/* Eyebrow: LARA™ and headline on same row, LARA™ dominant */
.lara-hero__eyebrow {
  align-items: baseline;
  gap: 1rem;
  flex-wrap: nowrap;
}

.lara-hero__logo-lockup {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.lara-hero__headline {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Tier 3: regular weight, not bold */
.lara-hero__tagline {
  font-size: 1.1rem;
  font-weight: 400 !important;
  color: var(--lara-dark);
  margin-bottom: 0.25rem;
}

/* Tier 4: italic, medium weight */
.lara-hero__subtext {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--lara-grey);
}

/* Nav logo: use PNG directly, sized correctly */
.lara-nav__logo figure,
.lara-nav__logo .wp-block-image {
  margin: 0 !important;
  line-height: 0;
}
.lara-nav__logo img {
  height: 32px !important;
  width: auto !important;
  display: block;
}

/* Fallback: if base64 logo fails, show styled text */
.lara-nav__logo-text {
  font-family: var(--lara-font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--lara-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lara-nav__logo-text::before {
  content: "→";
  color: var(--lara-gold);
  font-weight: 400;
}
