/*
Theme Name:   Ubiquitousade Child
Theme URI:    https://ubiquitousade.com
Description:  Astra Child Theme for ubiquitousade.com — Personal Brand Site
Author:       Michael A. Adesanya
Author URI:   https://ubiquitousade.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ubiquitousade-child
*/

/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --color-green:        #1A3C34;
  --color-green-light:  #2A5C50;
  --color-cream:        #F5F0E8;
  --color-cream-dark:   #EDE7D9;
  --color-orange:       #C4622D;
  --color-orange-light: #D4733E;
  --color-charcoal:     #2D2D2D;
  --color-grey:         #888880;
  --color-white:        #FFFFFF;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-italic:   'Lora', Georgia, serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   60px;

  --shadow-sm:   0 4px 16px rgba(26,60,52,0.08);
  --shadow-md:   0 12px 40px rgba(26,60,52,0.12);
  --shadow-lg:   0 30px 70px rgba(26,60,52,0.2);

  --transition:  all 0.3s ease;
}

/* ============================================================
   SECTION LABELS — Orange with line
   ============================================================ */
.ub-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.8rem;
}

.ub-section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-orange);
  flex-shrink: 0;
}


/* ============================================================
   CARDS — Venture / Service
   ============================================================ */
.ub-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(26,60,52,0.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-orange);
  transition: height 0.4s ease;
  border-radius: 0 0 3px 3px;
}

.ub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ub-card:hover::before {
  height: 100%;
}

/* ============================================================
   STAT CARDS — Hero floating stats
   ============================================================ */
.ub-stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md);
  min-width: 120px;
}

.ub-stat-card.dark {
  background: var(--color-green);
}

.ub-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-green);
  line-height: 1;
}

.ub-stat-card.dark .ub-stat-num {
  color: var(--color-cream);
}

.ub-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-top: 0.2rem;
}

.ub-stat-card.dark .ub-stat-label {
  color: rgba(245,240,232,0.5);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.ub-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
  padding: 8rem 6% 4rem;
  gap: 4rem;
}

.ub-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,98,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ub-hero-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(var(--color-green) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.12;
  pointer-events: none;
}

.ub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  border: 1px solid rgba(196,98,45,0.35);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.8rem;
  width: fit-content;
}

.ub-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ub-hero h1 {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ub-hero h1 em {
  color: var(--color-orange);
  font-style: italic;
}

.ub-hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-grey);
  margin-bottom: 1.8rem;
}

.ub-hero-body {
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0.82;
}

.ub-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero photo frame */
.ub-hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ub-hero-photo-frame {
  width: 340px;
  height: 440px;
  background: linear-gradient(160deg, var(--color-green-light), var(--color-green));
  border-radius: 16px 70px 16px 70px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.ub-hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ub-hero-accent-box {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  border: 2px solid var(--color-orange);
  border-radius: 16px 40px 16px 40px;
  opacity: 0.35;
}

.ub-hero-accent-circle {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 65px;
  height: 65px;
  background: var(--color-orange);
  border-radius: 40px 16px 40px 16px;
  opacity: 0.12;
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
.ub-services-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-green);
}

.ub-strip-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(245,240,232,0.06);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ub-strip-item:last-child {
  border-right: none;
}

.ub-strip-item:hover {
  background: rgba(196,98,45,0.08);
}

.ub-strip-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(245,240,232,0.05);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  transition: color 0.3s;
}

.ub-strip-item:hover .ub-strip-num {
  color: rgba(196,98,45,0.15);
}

.ub-strip-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ub-strip-desc {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.65;
}

.ub-strip-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--color-orange);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ub-strip-item:hover .ub-strip-arrow {
  opacity: 1;
}

/* ============================================================
   VENTURE CARDS
   ============================================================ */
.ub-ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ub-venture-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(26,60,52,0.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ub-venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-orange);
  transition: height 0.4s ease;
}

.ub-venture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ub-venture-card:hover::before {
  height: 100%;
}

.ub-venture-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 1rem;
}

.ub-venture-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-green);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ub-venture-desc {
  font-size: 0.8rem;
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.ub-venture-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
}

.ub-venture-link:hover {
  gap: 0.8rem;
  color: var(--color-orange);
}

/* ============================================================
   BOOK COVERS
   ============================================================ */
.ub-books-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.ub-book {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 8px 12px 35px rgba(26,60,52,0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ub-book:hover {
  transform: rotate(-2deg) scale(1.03);
}

.ub-book:last-child {
  margin-top: 2.5rem;
}

.ub-book:last-child:hover {
  transform: rotate(2deg) scale(1.03);
}

.ub-book-spine {
  padding: 2rem 1.5rem 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.ub-book-spine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}

.ub-book-1 .ub-book-spine {
  background: linear-gradient(160deg, var(--color-green-light), var(--color-green));
}

.ub-book-2 .ub-book-spine {
  background: linear-gradient(160deg, var(--color-orange-light), var(--color-orange));
}

.ub-book-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(245,240,232,0.92);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.ub-book-author {
  font-size: 0.62rem;
  color: rgba(245,240,232,0.4);
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.ub-quote-section {
  background: var(--color-green);
  padding: 6rem 12%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ub-quote-bg {
  position: absolute;
  top: -3rem;
  left: 3rem;
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(196,98,45,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ub-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-cream);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.ub-quote-attr {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  position: relative;
  z-index: 1;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.ub-cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 4rem 6%;
  border-top: 1px solid rgba(26,60,52,0.08);
  background: var(--color-cream);
  flex-wrap: wrap;
}

.ub-cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.ub-cta-banner p {
  font-size: 0.88rem;
  color: var(--color-grey);
  margin: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ub-about-hero {
  background: var(--color-green);
  padding: 7rem 6% 4rem;
  position: relative;
  overflow: hidden;
}

.ub-about-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(270deg, rgba(196,98,45,0.07) 0%, transparent 100%);
  pointer-events: none;
}

.ub-about-hero h1 {
  color: var(--color-cream);
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.ub-about-hero h1 em {
  color: var(--color-orange);
}

.ub-about-hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1rem;
  color: rgba(245,240,232,0.5);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

/* About layout — sidebar + content */
.ub-about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  background: var(--color-cream);
}

.ub-about-sidebar {
  padding: 3rem 2rem;
  background: var(--color-cream-dark);
  border-right: 1px solid rgba(26,60,52,0.06);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.ub-about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--color-green-light), var(--color-green));
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
}

.ub-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Stats grid — 2x2 */
.ub-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ub-stat-item {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(26,60,52,0.1);
  border-right: 1px solid rgba(26,60,52,0.1);
}

.ub-stat-item:nth-child(even) {
  border-right: none;
}

.ub-stat-item-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-green);
  font-weight: 700;
  line-height: 1;
}

.ub-stat-item-label {
  font-size: 0.65rem;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* About content */
.ub-about-content {
  padding: 4rem 4rem 4rem 3rem;
  max-width: 780px;
}

.ub-drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(196,98,45,0.15);
  float: left;
  line-height: 0.8;
  margin-right: 0.15rem;
  margin-top: 0.1rem;
}

.ub-about-divider {
  width: 40px;
  height: 2px;
  background: var(--color-orange);
  margin: 2rem 0;
}

/* Hobbies */
.ub-hobbies {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ub-hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--color-cream-dark);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--color-green);
  border: 1px solid rgba(26,60,52,0.1);
}

/* Timeline */
.ub-timeline {
  margin-top: 2.5rem;
}

.ub-timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.ub-timeline-item::after {
  content: '';
  position: absolute;
  left: 38px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: rgba(26,60,52,0.1);
}

.ub-timeline-item:last-child::after {
  display: none;
}

.ub-timeline-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--color-orange);
  font-weight: 700;
  padding-top: 0.1rem;
  text-align: right;
}

.ub-timeline-dot {
  position: absolute;
  left: 33px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--color-orange);
  border-radius: 50%;
  border: 2px solid var(--color-cream);
}

.ub-timeline-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-green);
  margin-bottom: 0.3rem;
}

.ub-timeline-desc {
  font-size: 0.78rem;
  color: var(--color-grey);
  line-height: 1.65;
}


/* Blog post cards */
.ub-blog-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26,60,52,0.06);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.ub-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ub-blog-card-img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
}

.ub-blog-card-body {
  padding: 1.5rem;
}

.ub-blog-cat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
  display: block;
}

.ub-blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-green);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ub-blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--color-grey);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ub-blog-card-meta {
  font-size: 0.7rem;
  color: var(--color-grey);
  display: flex;
  gap: 1rem;
}

/* ============================================================
   HEADER — Sticky Custom
   ============================================================ */
#masthead,
.site-header,
.ast-site-header-wrap {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  background: rgba(245,240,232,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#masthead.scrolled {
  box-shadow: 0 4px 30px rgba(26,60,52,0.08);
}


/* Logo */
.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--color-green) !important;
  text-decoration: none !important;
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.ub-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ub-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ub-reveal-delay-1 { transition-delay: 0.1s; }
.ub-reveal-delay-2 { transition-delay: 0.2s; }
.ub-reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   BACKGROUND UTILITY CLASSES
   ============================================================ */
.ub-bg-green       { background-color: var(--color-green) !important; }
.ub-bg-cream       { background-color: var(--color-cream) !important; }
.ub-bg-cream-dark  { background-color: var(--color-cream-dark) !important; }
.ub-bg-orange      { background-color: var(--color-orange) !important; }

.ub-text-green     { color: var(--color-green) !important; }
.ub-text-orange    { color: var(--color-orange) !important; }
.ub-text-cream     { color: var(--color-cream) !important; }
.ub-text-grey      { color: var(--color-grey) !important; }

