/*
Theme Name: Hello and Build - Attio Clone Theme
Theme URI: https://helloandbuild.com
Author: Antigravity
Author URI: https://github.com/google-gemini
Description: A production-ready, Elementor-editable WordPress theme designed for the Attio clone marketing website.
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: hello-and-build
Tags: elementor, one-column, custom-menu, post-formats, translation-ready

This theme is designed to be used with the Elementor page builder.
*/


/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-primary: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-muted: #8A8A8A;
  --border-color: #ECECEC;
  --accent-blue-soft: #4E8BFF;
  --cta-blue: #2F6CF5;
  --footer-bg: #171717;
  --footer-text: #8A8A8A;
  --green-mid: #2D8A4E;
  
  /* Layout */
  --container-width: 1200px;
  
  /* Radii */
  --radius-btn: 10px;
  --radius-card: 18px;
  --radius-image: 16px;
  --radius-pill: 999px;
  --radius-container: 12px;
  
  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #222222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-signup, #btn-signup {
  background-color: #FE6400 !important;
  color: #FFFFFF !important;
}

.btn-signup:hover, #btn-signup:hover {
  background-color: #E55900 !important;
  box-shadow: 0 4px 12px rgba(254, 100, 0, 0.25) !important;
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #F8F8F8;
  border-color: #D6D6D6;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--cta-blue);
  font-weight: 600;
}

.btn-white:hover {
  background-color: #F3F7FF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 236, 236, 0.5);
  transition: var(--transition-smooth);
}

/* Push header down when admin bar is present */
.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.footer-brand-logo {
  filter: invert(1) brightness(1.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Handle wp_nav_menu layout styling */
.nav-container .nav-links ul,
.nav-container #main-nav ul,
.nav-links ul {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 40px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-container .nav-links li,
.nav-container #main-nav li,
.nav-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.nav-container .nav-links li a,
.nav-container #main-nav li a,
.nav-links li a,
.nav-link {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  transition: var(--transition-smooth) !important;
  text-decoration: none !important;
}

.nav-container .nav-links li a:hover,
.nav-container #main-nav li a:hover,
.nav-links li a:hover,
.nav-link:hover {
  color: var(--text-primary) !important;
}

.mobile-nav-btn {
  display: none !important;
}

/* Careers dot badge */
.nav-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-blue-soft);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-footer {
  display: none;
}

/* Page Main Content Spacing to prevent fixed header overlap */
.page-main {
  padding-top: 140px;
  padding-bottom: 80px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 0px;
  text-align: center;
  overflow: hidden;
}

/* Floating Decorative Background Circles */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(0.5px);
}

.shape-purple-1 {
  width: 12px;
  height: 12px;
  background-color: #8B5CF6;
  top: 22%;
  left: 14%;
  animation: float-slow-1 12s infinite ease-in-out;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

.shape-purple-2 {
  width: 8px;
  height: 8px;
  background-color: #A78BFA;
  bottom: 30%;
  right: 18%;
  animation: float-slow-2 16s infinite ease-in-out;
  animation-delay: 2s;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

.shape-blue-1 {
  width: 14px;
  height: 14px;
  background-color: #3B82F6;
  top: 48%;
  right: 14%;
  animation: float-slow-2 15s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

.shape-blue-2 {
  width: 10px;
  height: 10px;
  background-color: #60A5FA;
  bottom: 40%;
  left: 20%;
  animation: float-slow-3 14s infinite ease-in-out;
  animation-delay: 1.5s;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.4);
}

.shape-yellow-1 {
  width: 16px;
  height: 16px;
  background-color: #F59E0B;
  bottom: 22%;
  left: 8%;
  animation: float-slow-3 18s infinite ease-in-out;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
}

.shape-yellow-2 {
  width: 12px;
  height: 12px;
  background-color: #FBBF24;
  top: 35%;
  right: 28%;
  animation: float-slow-1 13s infinite ease-in-out;
  animation-delay: 3s;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.shape-orange-1 {
  width: 10px;
  height: 10px;
  background-color: #F97316;
  top: 14%;
  right: 19%;
  animation: float-slow-1 11s infinite ease-in-out;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
}

.shape-orange-2 {
  width: 8px;
  height: 8px;
  background-color: #FB923C;
  bottom: 15%;
  left: 18%;
  animation: float-slow-3 15s infinite ease-in-out;
  animation-delay: 0.5s;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.4);
}

.shape-grey-1 {
  width: 8px;
  height: 8px;
  background-color: #9CA3AF;
  bottom: 18%;
  right: 30%;
  animation: float-slow-2 14s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.35);
}

.shape-grey-2 {
  width: 6px;
  height: 6px;
  background-color: #D1D5DB;
  top: 30%;
  left: 28%;
  animation: float-slow-1 17s infinite ease-in-out;
  animation-delay: 4s;
  box-shadow: 0 0 10px rgba(209, 213, 219, 0.3);
}

/* Floating Animations */
@keyframes float-slow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-slow-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 15px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-slow-3 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, 18px) scale(1.05); }
  66% { transform: translate(-15px, -12px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  color: #FE6400;
  border: 1px solid #FE6400;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: rgba(254, 100, 0, 0.05);
  margin-bottom: 24px;
}

.pill-status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--green-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 8px;
}

.hero-title {
  font-size: 68px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 48px;
}

.pixel-heart-wrap {
  display: inline-block;
  margin-left: 17px;
  margin-right: 0;
  vertical-align: middle;
  position: relative;
  top: -6px;
  animation: heartbeat 1.5s infinite ease-in-out;
  transform-origin: center;
}

.pixel-heart-wrap svg {
  filter: drop-shadow(0 4px 12px rgba(102, 168, 255, 0.45));
  shape-rendering: crispEdges;
}

.app-store-link {
  display: inline-block;
  margin-bottom: 60px;
  transition: var(--transition-smooth);
}

.app-store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-img {
  height: 50px;
  width: auto;
  display: block;
}

#hero-app-store-badge {
  height: auto;
}

#hero-app-store-badge .app-store-img {
  height: auto;
  max-height: 50px;
  width: auto;
}


@keyframes heartbeat {
  0% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1.08); }
  36% { transform: scale(1.3); }
  55% { transform: scale(1); }
  100% { transform: scale(1); }
}


/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.logo-causal span {
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 15px;
}

.cocacola-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

/* ==========================================================================
   CUSTOMER STORIES (BENTO GRID)
   ========================================================================== */
.stories-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.story-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  background-color: #F8F8F8;
  cursor: default;
  transition: var(--transition-smooth);
}

.tall-card {
  grid-row: span 2;
  height: 580px; /* Aligns visually with the stack of two wide cards */
}

.wide-card {
  height: 278px;
}

.card-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -12px; /* Extend bottom boundary to cover gap during translation */
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-card:hover .card-image-wrapper {
  transform: translateY(-6px);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
}

.story-card:hover .card-image {
  filter: brightness(1.05) saturate(1.08);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  transition: var(--transition-smooth);
}

.story-card:hover .card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 10;
  color: #FFFFFF;
}

.card-header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}

.card-header-logo.logo-causal span {
  letter-spacing: 1px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.3px;
  max-width: 85%;
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 10;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
.testimonial-section {
  position: relative;
  padding: 140px 0;
  background-color: #FAFBFD;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.blueprint-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(78, 139, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78, 139, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
}

.testimonial-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3.2fr;
  gap: 56px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 56px 64px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  z-index: 10;
}

.testimonial-logo-col {
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
}

.testimonial-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
}

.testimonial-brand svg {
  color: #66a8ff;
}

.testimonial-quote {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

.quote-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.author-title {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-section {
  position: relative;
  background-color: #fe6400;
  color: #FFFFFF;
  padding: 100px 0;
  overflow: hidden;
}

.cta-wireframes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.cta-image-box {
  flex-shrink: 0;
  width: 320px;
  position: relative;
}

.cta-phone-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-actions .app-store-link {
  margin-bottom: 0;
}

.cta-actions .btn {
  height: 44px;
  padding: 0 24px;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 40px 0;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.5fr;
  gap: 40px;
}

.footer-logo {
  color: #FFFFFF;
}

.footer-logo svg {
  color: #FFFFFF;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links li,
.footer-col .widget ul li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-col .widget a {
  color: var(--footer-text);
  transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-col .widget a:hover {
  color: #FFFFFF;
}

/* Format standard widget lists to match footer design */
.footer-col .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* External Link arrow icon */
.link-external::after {
  content: " â†—";
  font-size: 10px;
  vertical-align: super;
  opacity: 0.6;
}

.footer-cta-col {
  display: flex;
  flex-direction: column;
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-footer-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-footer-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-footer-dark {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-footer-dark:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Handle wp_nav_menu layout styling for footer */
.footer-bottom-links ul {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-links li {
  list-style: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.footer-bottom-links li a,
.footer-bottom-links a {
  color: var(--footer-text);
  transition: var(--transition-smooth);
}

.footer-bottom-links li a:hover,
.footer-bottom-links a:hover {
  color: #FFFFFF;
}

.footer-bottom-links li:not(:last-child)::after {
  content: "\00b7";
  color: rgba(255, 255, 255, 0.15);
  margin-left: 12px;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.15);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: var(--footer-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
  padding-top: 80px;
  padding-bottom: 120px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.how-it-works-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.how-subtitle-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 16px;
  background-color: #F0F0F2;
  padding: 6px 14px;
  border-radius: 20px;
}

.how-main-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  margin-bottom: 20px;
  letter-spacing: -1.2px;
}

.how-main-description {
  font-size: 17px;
  line-height: 1.6;
  color: #555555;
  max-width: 680px;
  margin: 0 auto;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-card {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: none;
  transition: none;
}

.how-card:hover {
  transform: none;
  box-shadow: none;
}

.how-card-image-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfbfb 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 32px;
}

.how-card:hover .how-card-image-wrapper {
  transform: translateY(-6px);
}

.how-card-image {
  max-width: 89%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.how-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
  color: #111111;
}

.how-card-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #555555;
  opacity: 1;
}

.how-it-works-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.how-it-works-cta .app-store-link {
  margin-bottom: 0;
}

/* ==========================================================================
   BLOG PAGE & POST CARDS
   ========================================================================== */

/* Blog Layout Header & General */
.blog-main, .archive-main {
  padding-top: 140px;
  padding-bottom: 80px;
}

.blog-main .page-header, .archive-main .page-header {
  margin-bottom: 56px;
  text-align: center;
}

.blog-main .page-title, .archive-main .page-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.blog-main .page-description, .archive-main .archive-description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Post Cards Grid */
.blog-posts-grid,
.elementor-posts-container.elementor-posts {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin-bottom: 48px !important;
}

/* Post Card Container */
.blog-post-card,
.elementor-posts article.elementor-post {
  position: relative;
  background-color: #F4F4F5 !important;
  border-radius: var(--radius-card) !important;
  border: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: var(--transition-smooth) !important;
  text-align: left !important;
  padding: 0 !important;
  margin: 0 !important;
}

.blog-post-card:hover,
.elementor-posts article.elementor-post:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover) !important;
}

/* Featured (First) Card Style */
.blog-posts-grid .blog-post-card:first-of-type,
.elementor-posts article.elementor-post:first-of-type {
  background-color: #171717 !important;
}

/* Post Thumbnail Wrapper */
.post-card-thumbnail,
.elementor-posts .elementor-post__thumbnail__link,
.elementor-posts .elementor-post__thumbnail {
  position: relative !important;
  width: 100% !important;
  height: 240px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.post-card-thumbnail img,
.elementor-posts .elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.blog-post-card:hover .post-card-thumbnail img,
.elementor-posts article.elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.05) !important;
}

/* Badge (Updates / Category) */
.post-card-badge,
.elementor-posts article.elementor-post .elementor-post__badge {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  background-color: #CCFF00 !important;
  color: #111111 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-pill) !important;
  z-index: 10 !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Post Card Content */
.post-card-content,
.elementor-posts article.elementor-post .elementor-post__text {
  padding: 28px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

/* Card Title */
.post-card-title,
.elementor-posts article.elementor-post .elementor-post__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
}

.post-card-title a,
.elementor-posts article.elementor-post .elementor-post__title a {
  color: var(--text-primary) !important;
  transition: var(--transition-smooth) !important;
}

.post-card-title a:hover,
.elementor-posts article.elementor-post .elementor-post__title a:hover {
  color: var(--cta-blue) !important;
}

/* Featured Title */
.blog-posts-grid .blog-post-card:first-of-type .post-card-title a,
.elementor-posts article.elementor-post:first-of-type .elementor-post__title a {
  color: #FFFFFF !important;
}

.blog-posts-grid .blog-post-card:first-of-type .post-card-title a:hover,
.elementor-posts article.elementor-post:first-of-type .elementor-post__title a:hover {
  color: #CCFF00 !important;
}

/* Excerpt */
.post-card-excerpt,
.elementor-posts article.elementor-post .elementor-post__excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

/* Featured Excerpt */
.blog-posts-grid .blog-post-card:first-of-type .post-card-excerpt,
.elementor-posts article.elementor-post:first-of-type .elementor-post__excerpt {
  color: #A1A1AA !important;
}

/* Hide Meta / Read More to clean up layout */
.post-card-date,
.post-card-link,
.elementor-posts article.elementor-post .elementor-post__meta-data,
.elementor-posts article.elementor-post .elementor-post__read-more {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE STYLES (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Desktop (1200px and down) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(48px, 5.5vw, 68px);
  }
}

/* Tablet & Landscape (1024px and down) */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 140px;
    padding-bottom: 0px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  
  .tall-card {
    grid-column: span 2;
    height: 380px;
  }
  
  .wide-card {
    grid-column: span 1;
    height: 240px;
  }
  
  .testimonial-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  
  .footer-brand-col {
    grid-column: span 3;
    margin-bottom: 16px;
  }
  
  .footer-cta-col {
    grid-column: span 3;
    max-width: 280px;
  }
  
  .how-it-works-header-centered {
    margin-bottom: 40px;
  }
  
  .how-it-works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .blog-posts-grid,
  .elementor-posts-container.elementor-posts {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

/* Landscape Tablet / iPad Air / Medium screens (820px and down) */
@media (max-width: 820px) {
  .nav-links {
    gap: 24px;
  }
  
  .header-container {
    padding: 16px;
  }
}

/* Mobile & Phablet (768px and down) */
@media (max-width: 768px) {
  .header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
  }

  /* Sync header container and nav container */
  .header-container,
  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    padding: 12px 20px !important;
    height: 72px !important;
    width: 100% !important;
  }
  
  .logo {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    z-index: 1001 !important;
  }
  
  .nav-actions {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 1001 !important;
  }

  /* Full Screen Mobile Menu Overlay */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 100px 24px 60px 24px !important;
    gap: 40px !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    border-top: none !important;
  }
  
  .nav-links.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .nav-container .nav-links ul,
  .nav-container #main-nav ul,
  .nav-links ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .nav-container .nav-links li,
  .nav-container #main-nav li,
  .nav-links li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-container .nav-links li a,
  .nav-container #main-nav li a,
  .nav-links li a,
  .nav-container .nav-links .nav-link,
  .nav-container #main-nav .nav-link,
  .nav-links .nav-link,
  .nav-link {
    font-size: 28px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px !important;
    transition: var(--transition-smooth) !important;
    display: inline-block !important;
  }

  .nav-container .nav-links li a:hover,
  .nav-container #main-nav li a:hover,
  .nav-links li a:hover,
  .nav-container .nav-links .nav-link:hover,
  .nav-container #main-nav .nav-link:hover,
  .nav-links .nav-link:hover,
  .nav-link:hover {
    color: var(--cta-blue) !important;
  }
  
  /* Mobile Nav Footer with brand button */
  .mobile-nav-footer {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    margin-top: 16px !important;
  }

  .mobile-nav-footer .mobile-nav-btn {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 48px !important;
    background-color: #FE6400 !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 14px rgba(254, 100, 0, 0.25) !important;
    transition: var(--transition-smooth) !important;
    border: none !important;
  }

  .mobile-nav-footer .mobile-nav-btn:hover {
    background-color: #E55900 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(254, 100, 0, 0.3) !important;
  }

  /* Body classes when mobile menu is active */
  body.mobile-menu-active {
    overflow: hidden !important;
  }

  body.mobile-menu-active .header {
    background-color: #FFFFFF !important;
    border-bottom-color: transparent !important;
  }

  .btn {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }
  
  .hero-section {
    padding-top: 130px;
    padding-bottom: 40px;
  }
  
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    margin-bottom: 16px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.1;
  }
  
  .hero-subtitle {
    margin-bottom: 32px;
    font-size: clamp(14px, 3.2vw, 16px);
    max-width: 90%;
  }
  
  .pixel-heart-wrap {
    margin-left: 8px;
    top: -3px;
  }
  
  .pixel-heart-wrap svg {
    width: 24px;
    height: auto;
  }
  
  .app-store-link {
    margin-bottom: 48px;
  }
  
  .pill-label {
    margin-bottom: 24px;
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .stories-section {
    padding-top: 20px;
    padding-bottom: 40px;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tall-card {
    grid-column: span 1;
    height: auto;
    aspect-ratio: 501 / 580;
  }
  
  .wide-card {
    grid-column: span 1;
    height: auto;
    aspect-ratio: 800 / 355;
  }
  
  .testimonial-section {
    padding: 60px 0;
  }
  
  .testimonial-quote {
    font-size: clamp(15px, 3.5vw, 18px);
    line-height: 1.4;
  }
  
  .how-it-works-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .how-main-title {
    font-size: clamp(24px, 5.5vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }
  
  .how-main-description {
    font-size: clamp(14px, 3.2vw, 16px);
  }
  
  .how-card {
    padding: 0;
  }
  
  .how-card-image-wrapper {
    height: clamp(220px, 45vw, 280px);
    padding: 20px;
  }
  
  .how-card-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .how-description {
    font-size: clamp(14px, 3.2vw, 16px);
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  
  .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cta-title {
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.15;
  }
  
  .cta-image-box {
    width: 100%;
    max-width: 260px;
  }
  
  .cta-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer {
    padding-top: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-brand-col {
    grid-column: span 1;
    margin-bottom: 0;
  }
  
  .footer-cta-col {
    grid-column: span 1;
    max-width: 100%;
    margin-top: 12px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-bottom: 24px;
    margin-top: 40px;
  }
  
  .social-links {
    justify-content: center;
  }

  .blog-posts-grid,
  .elementor-posts-container.elementor-posts {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Small mobile devices (480px and down) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  
  .pill-label {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .pixel-heart-wrap {
    margin-left: 6px;
    top: -2px;
  }
  
  .pixel-heart-wrap svg {
    width: 18px;
    height: auto;
  }
  
  .app-store-img {
    height: 42px;
  }
  
  #hero-app-store-badge .app-store-img {
    height: auto;
    max-height: 42px;
  }
}

/* Extra small devices (360px and down) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 22px;
  }
  
  .pill-label {
    font-size: 9px;
  }
}

