/* Base variables */
:root {
  --primary: #ffd800; /* bright yellow */
  --black: #010101;
  --dark-bg: #020202;
  --light-bg: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #010101;
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

img {
  max-width: 100%;
  display: block;
  /* Make all images fully dark grey by hiding the picture and showing only the dark backdrop */
  background-color: #222;
  
}

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dark);
}

ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
.site-header {
  background-color: var(--black);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}


.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Section styles */
.hero {
  background-color: var(--black);
  color: var(--text-light);
  padding: 4rem 0 6rem;

  position: relative;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-left {
  flex: 1 1 450px;
  max-width: 500px;
}

.hero-left h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-left p {
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-right {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  pointer-events: auto;

  pointer-events: auto;
}

.phone-mockup {
  width: 190px;
  height: 380px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.6s ease, box-shadow 0.5s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}
/* Remove background images for phone mockups; show dark grey for now */
.phone1 {  
  background-color: transparent;
  

  background-image: url('images/phone1.gif');
}
.phone2 {
  /* Display the new GIF in the hero section */
  
  

  background-color: transparent;
  

  background-image: url('images/phone2.gif');
}
.phone3 {  
  background-color: transparent;
  background-image: url('images/download(3).gif');
}

/* Step Section */
.how-it-works {
  background-color: var(--light-bg);
  text-align: center;
  padding-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.step {
  background-color: var(--white);
  padding: 2rem;
  flex: 1 1 250px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--black);
  font-size: 1.25rem;
}

.step p {
  color: var(--black);
  font-size: 0.95rem;
}

/* Brands and Creators Section */
.dark-section {
  background-color: var(--black);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.light-section {
  background-color: var(--light-bg);
  color: var(--black);
  position: relative;
  overflow: hidden;
}

/* Wave separators for section transitions */
/* Add a light-colored wave at the bottom of dark sections (except the last one) */
.dark-section:not(.contact)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'><path fill='%23f5f5f5' d='M0 67 C 273 100 441 0 720 67 959 149 1200 0 1440 67 V80 H0 Z'/></svg>");
  pointer-events: none;
}

/* Add a dark-colored wave at the bottom of light sections */
.light-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'><path fill='%23010101' d='M0 67 C 273 100 441 0 720 67 959 149 1200 0 1440 67 V80 H0 Z'/></svg>");
  pointer-events: none;
}

.brands-grid, .creators-grid, .call-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.brands-text, .creators-text, .call-text {
  flex: 1 1 400px;
  min-width: 300px;
}
.brands-image, .creators-image, .call-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}
.brands-image img, .creators-image img, .call-image img {
  border-radius: 12px;
  max-height: 350px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Give breathing room between copy and buttons in text-heavy sections */
.brands-text .btn,
.creators-text .btn,
.call-text .btn {
  margin-top: 1.5rem;
}
.brands ul li, .creators ul li {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: background-color 0.3s, color 0.3s;
}

/* dark section buttons: yellow with black text; invert on hover */
.btn-dark {
  background-color: var(--primary);
  color: var(--black);
}
.btn-dark:hover {
  background-color: var(--black);
  color: var(--primary);
}

/* light section buttons: yellow with white text; invert on hover */
.btn-light {
  background-color: var(--primary);
  color: var(--text-light);
}
.btn-light:hover {
  background-color: var(--light-bg);
  color: var(--primary);
}

/* Solutions Section */
.solutions-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.solutions-grid .section-title {
  color: var(--primary);
}

.solution-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  text-align: left;
}
.solution-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.solution-card p {
  margin-bottom: 1rem;
}

/* Insights Section */
.insights-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.insights-image {
  flex: 1 1 400px;
  min-height: 250px;
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.insights-text {
  flex: 1 1 400px;
}
.insights ul li {
  color: var(--text-light);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}
.insights ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* FAQ Section */
.faq details {
  margin-bottom: 1rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.faq details summary {
  font-weight: 600;
}
.faq details p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.contact-form button {
  align-self: center;
}

/* Footer */
.site-footer {
  background-color: var(--black);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-grid,
  .brands-grid,
  .creators-grid,
  .call-grid,
  .insights-grid {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    display: none; /* hide nav on small screens for simplicity */
  }
  .site-header {
    padding: 0.5rem 0;
  }
  .phone-mockup {
  width: 190px;
  height: 380px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.6s ease, box-shadow 0.5s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}
  .step {
    flex: 1 1 100%;
  }
}


/* --- Fan layout & hover via full hero area --- */
:root { --raise: 0px; }

body:not(.is-ready) { --raise: 20px; }
body.is-ready { --raise: 0px; }

/* Default fan layout using CSS variables so we can compose with page-load raise */
.phone1 { --base: rotate(-8deg) scale(1.1) translateX(-60px); z-index: 1; transform: var(--base) translateY(var(--raise)); }
.phone2 { --base: scale(1.25); z-index: 3; transform: var(--base) translateY(var(--raise)); }
.phone3 { --base: rotate(8deg) scale(1.1) translateX(60px); z-index: 2; transform: var(--base) translateY(var(--raise)); }

/* Hover animation triggers when hovering anywhere over the hero banner */
.phone1:hover {
  --base: rotate(-14deg) scale(1.2) translateX(-100px) translateY(-20px);
}
.phone2:hover {
  --base: scale(1.3) translateY(-30px);
}
.phone3:hover {
  --base: rotate(14deg) scale(1.2) translateX(100px) translateY(-20px);
}

/* Subtle fade-in on load */
.phone-mockup {
  width: 190px;
  height: 380px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.6s ease, box-shadow 0.5s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}
body.is-ready .phone-mockup {
  width: 190px;
  height: 380px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.6s ease, box-shadow 0.5s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}




/* --- Adjusted fan layout and position to right side --- */
.hero-right {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  pointer-events: auto;

  pointer-events: auto;
}

.phone1 { --base: rotate(-8deg) scale(1.05) translateX(-40px); z-index: 1; transform: var(--base) translateY(var(--raise)); }
.phone2 { --base: scale(1.2); z-index: 3; transform: var(--base) translateY(var(--raise)); }
.phone3 { --base: rotate(8deg) scale(1.05) translateX(40px); z-index: 2; transform: var(--base) translateY(var(--raise)); }

.phone1:hover {
  --base: rotate(-14deg) scale(1.2) translateX(-100px) translateY(-20px);
}
.phone2:hover {
  --base: scale(1.3) translateY(-30px);
}
.phone3:hover {
  --base: rotate(14deg) scale(1.2) translateX(100px) translateY(-20px);
}


/* Ensure hero phone backgrounds are set per-phone */
.phone1 { background-color: transparent; background-image: url('images/phone1.gif'); }
.phone2 { background-color: transparent; background-image: url('images/phone2.gif'); }
.phone3 { background-color: transparent; background-image: url('images/download(3).gif'); }

/* Make section images visible */
.brands-image img,
.creators-image img,
.call-image img { opacity: 1 !important; background-color: transparent; }

/* Creator image sizing */
.creators-image img { height: 320px; width: auto; max-width: 100%; border-radius: 20px; object-fit: contain; }



/* === INSIGHTS image visibility/sizing === */
.insights .insights-grid { align-items: stretch; }
.insights .insights-image { display:flex; align-items:center; justify-content:center; }
.insights .insights-image img{
  height: 80%;
  width: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  opacity: 1 !important;
  background: transparent !important;
  cursor: pointer;
}
.insights .insights-image img:hover{
  transform: scale(1.08);
  box-shadow: 0 16px 28px rgba(0,0,0,0.28);
}
@media (max-width: 768px){
  .insights .insights-image img{ height:auto; max-height:280px; width:auto; border-radius:16px; }
}


/* === FINAL HERO BACKGROUNDS (authoritative) === */
.hero .phone1{ background-image: url('images/phone1.gif') !important; }
.hero .phone2{ background-image: url('images/phone2.gif') !important; }
.hero .phone3{ background-image: url('images/download(3).gif') !important; }
.hero .phone1, .hero .phone2, .hero .phone3{ background-size: cover; background-position: center; }


/* === FINAL SLOT IMAGE VISIBILITY & SIZING === */
.brands .brands-grid, .creators .creators-grid, .book-call .call-grid, .insights .insights-grid { align-items: stretch; }
.brands .brands-image, .creators .creators-image, .book-call .call-image, .insights .insights-image { display:flex; align-items:center; justify-content:center; }
.brands .brands-image img, .creators .creators-image img, .book-call .call-image img, .insights .insights-image img {
  height: 80%;
  width: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  opacity: 1 !important;
  background: transparent !important;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  cursor: pointer;
}
.brands .brands-image img:hover, .creators .creators-image img:hover, .book-call .call-image img:hover, .insights .insights-image img:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 28px rgba(0,0,0,.28);
}
@media (max-width: 768px){
  .brands .brands-image img, .creators .creators-image img, .book-call .call-image img, .insights .insights-image img {
    height: auto; max-height: 280px; width: auto; border-radius: 16px;
  }
}


/* === AUTHORITATIVE: Hero backgrounds and positions === */
.hero .phone1{ background-image: url('images/phone1.gif') !important; }
.hero .phone2{ background-image: url('images/phone2.gif') !important; }
.hero .phone3{ background-image: url('images/download(3).gif') !important; }
.hero .phone1, .hero .phone2, .hero .phone3{ background-size: cover; background-position: center; }


/* === FINAL: ensure non-hero images visible === */
.brands-image img, .creators-image img, .call-image img, .insights-image img{
  opacity: 1 !important;
  background-color: transparent !important;
}


/* Make it accessible for keyboard focus */


/* === Clean hover interactions for How TrueOak Works steps === */
#how-it-works .step, #how-it-works .steps > *, #how-it-works .cards > *, #how-it-works .grid > * {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
  z-index: 0;
}
#how-it-works .step:hover, #how-it-works .steps > *:hover, #how-it-works .cards > *:hover, #how-it-works .grid > *:hover, #how-it-works .step:focus-visible, #how-it-works .steps > *:focus-visible, #how-it-works .cards > *:focus-visible, #how-it-works .grid > *:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  z-index: 1;
}
