/*
Theme Name: Appyness
Theme URI: https://appyness.biz
Author: Dianne Trussell
Author URI: https://appyness.biz
Description: Custom theme for Appyness - Apps for your wellbeing, work, research, education and fun. A marketing and e-commerce theme for selling apps.
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: appyness
Tags: e-commerce, multilingual, custom-menu, custom-logo
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A1A;
  background: #FDFDFD;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ========== HEADER / BANNER ========== */
.site-banner {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 50%, #F0FDFA 100%);
  padding: 24px 0 16px;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-group img { width: 64px; height: 64px; object-fit: contain; }
@media (min-width: 768px) { .brand-group img { width: 80px; height: 80px; } }
.brand-text h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #9B30FF;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .brand-text h1 { font-size: 2.25rem; } }
.brand-text .tagline {
  font-size: 0.875rem;
  color: #64748B;
  max-width: 400px;
  line-height: 1.4;
  margin-top: 4px;
}
.under-construction {
  text-align: center;
  font-style: italic;
  color: #9B30FF;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
  padding: 12px 0 0;
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  transition: all 0.2s;
}
.lang-switcher-btn:hover {
  border-color: rgba(155, 48, 255, 0.3);
  background: rgba(245, 243, 255, 0.5);
}
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  min-width: 160px;
  z-index: 100;
}
.lang-dropdown.active { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  transition: all 0.2s;
}
.lang-dropdown a:hover,
.lang-dropdown a.current {
  background: #F5F3FF;
  color: #9B30FF;
}

/* ========== NAVIGATION ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #9B30FF;
  box-shadow: 0 4px 12px rgba(155, 48, 255, 0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  gap: 8px;
}
.nav-link {
  padding: 6px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile nav */
@media (max-width: 767px) {
  .nav-inner { padding: 0 16px; gap: 4px; }
  .nav-link { padding: 6px 12px; font-size: 0.875rem; }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 50%, #F0FDFA 100%);
  padding: 64px 0;
  text-align: center;
}
@media (min-width: 768px) { .hero { padding: 96px 0; } }
.hero h2 {
  font-size: 2.25rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .hero h2 { font-size: 3.75rem; } }
.hero .subtitle {
  font-size: 1.125rem;
  color: #64748B;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== THEME PANELS ========== */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 64px 0;
}
@media (min-width: 768px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 96px 0; }
}
.theme-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(155, 48, 255, 0.18);
}
.theme-card-img {
  height: 224px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px) { .theme-card-img { height: 256px; } }
.theme-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.theme-card:hover .theme-card-img img { transform: scale(1.05); }
.theme-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.theme-card h3 {
  padding: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 768px) { .theme-card h3 { font-size: 1.5rem; } }

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 64px 0 80px;
  background: #F5F3FF;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .cta-section h2 { font-size: 2.25rem; } }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #9B30FF;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(155, 48, 255, 0.4);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #8B20EF;
  box-shadow: 0 15px 30px -5px rgba(155, 48, 255, 0.5);
  transform: translateY(-2px);
}
.btn-primary:active { transform: scale(0.97); }

.btn-get {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #9B30FF;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(155, 48, 255, 0.4);
  transition: all 0.3s ease;
}
.btn-get:hover { background: #8B20EF; }

/* ========== APP CARDS ========== */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0 64px;
}
@media (min-width: 768px) { .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 64px 0; } }

.app-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(155, 48, 255, 0.18);
}
.app-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.app-card h3 { font-size: 1.5rem; font-weight: 600; }
.app-card .app-tagline { font-size: 0.875rem; color: #9B30FF; font-weight: 500; margin-top: 4px; }
.app-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: white;
}
.badge-gold { background: #FFD700; color: #1A1A1A; }
.badge-purple { background: #9B30FF; }
.badge-green { background: #10B981; }
.badge-coral { background: #FF6B6B; }

.app-card .description {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.app-card-body { padding: 24px 32px 32px; }
.app-card .color-strip { height: 8px; }
.strip-gold { background: linear-gradient(to right, rgba(255,215,0,0.1), #FFF8DC); }
.strip-purple { background: linear-gradient(to right, rgba(155,48,255,0.1), #F5F3FF); }
.strip-green { background: linear-gradient(to right, rgba(152,255,184,0.1), #F0FDFA); }
.strip-coral { background: linear-gradient(to right, rgba(255,107,107,0.1), #FFF5F5); }

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9B30FF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.read-more-btn:hover { color: #8B20EF; }
.expandable { display: none; }
.expandable.open { display: block; }
.expandable p { margin-bottom: 12px; color: #64748B; font-size: 0.875rem; line-height: 1.6; }
.expandable .label { font-weight: 500; color: #1A1A1A; margin-bottom: 8px; }
.expandable ul { padding-left: 0; }
.expandable li { display: flex; gap: 8px; margin-bottom: 6px; color: #64748B; font-size: 0.875rem; }
.expandable li .num { color: #9B30FF; font-weight: 700; }
.expandable li .bullet { color: #98FFB8; }

.app-divider { border: none; border-top: 1px solid #E2E8F0; margin: 16px 0; }

/* Stores dropdown */
.stores-dropdown {
  display: none;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-top: 8px;
}
.stores-dropdown.active { display: block; }
.stores-header { padding: 8px 16px; font-size: 0.75rem; color: #64748B; background: #F5F3FF; font-weight: 500; }
.store-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  text-align: left;
}
.store-option:last-child { border-bottom: none; }
.store-option:hover { background: #F5F3FF; color: #9B30FF; }
.coming-soon-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9B30FF;
  background: #F5F3FF;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ========== SHARE BUTTONS ========== */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.share-label { font-size: 0.75rem; font-weight: 500; color: #64748B; margin-right: 4px; }
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
  background: white;
}
.share-btn:hover { transform: scale(1.12); }
.share-btn.x:hover { background: #000; color: white; border-color: #000; }
.share-btn.fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn.ig:hover { background: #E4405F; color: white; border-color: #E4405F; }
.share-btn.tt:hover { background: #000; color: white; border-color: #000; }
.share-btn.em:hover { background: #9B30FF; color: white; border-color: #9B30FF; }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ========== NOTICE BOX ========== */
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F5F3FF;
  border: 1px solid rgba(155, 48, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 32px;
}
.notice-box svg { color: #9B30FF; flex-shrink: 0; margin-top: 2px; }

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 50%, #F0FDFA 100%);
  padding: 48px 0;
  text-align: center;
}
@media (min-width: 768px) { .page-header { padding: 64px 0; } }
.page-header h2 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .page-header h2 { font-size: 3rem; } }
.page-header .page-subtitle { font-size: 1.125rem; color: #64748B; }

/* ========== ABOUT STORY ========== */
.story-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  padding: 32px;
  max-width: 720px;
  margin: 48px auto 80px;
}
@media (min-width: 768px) { .story-card { padding: 48px; margin: 80px auto; } }
.story-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.story-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #F5F3FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9B30FF;
}
.story-header h3 { font-size: 1.5rem; font-weight: 600; }
@media (min-width: 768px) { .story-header h3 { font-size: 1.875rem; } }
.story-text { color: #64748B; font-size: 1rem; line-height: 1.8; }
@media (min-width: 768px) { .story-text { font-size: 1.125rem; } }
.story-author {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.story-author img { width: 48px; height: 48px; object-fit: contain; }
.story-author .name { font-family: 'Fredoka', sans-serif; font-size: 1.125rem; font-weight: 600; color: #9B30FF; }
.story-author .role { font-size: 0.875rem; color: #64748B; }

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 80px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 3fr 2fr; gap: 48px; padding: 80px 0; }
}
.contact-form-card, .contact-info-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  padding: 32px;
}
@media (min-width: 768px) { .contact-form-card { padding: 40px; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: rgba(255,255,255,0.5);
  padding: 12px 16px;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #9B30FF;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94A3B8; }
.form-group textarea { resize: none; }

.phone-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.phone-card {
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.phone-card.usa { background: #F5F3FF; border: 1px solid rgba(155, 48, 255, 0.1); }
.phone-card.au { background: #F0FDFA; border: 1px solid rgba(152, 255, 184, 0.3); }
.phone-card .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.phone-card.usa .label { color: #9B30FF; }
.phone-card.au .label { color: #10B981; }
.phone-card a {
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.2s;
}
.phone-card.usa a:hover { color: #9B30FF; }
.phone-card.au a:hover { color: #10B981; }

/* ========== FOOTER ========== */
.site-footer { background: #1A1A1A; color: rgba(255,255,255,0.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand span { font-family: 'Fredoka', sans-serif; font-size: 1.25rem; font-weight: 600; color: white; }
.footer-section h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-section a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-section a:hover { color: #98FFB8; }
.footer-section p { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-waiver {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.footer-waiver p { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 800px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.12s; opacity: 0; }
.fade-up-3 { animation-delay: 0.19s; opacity: 0; }
.fade-up-4 { animation-delay: 0.26s; opacity: 0; }
