/*
Theme Name: Indian Writing Hub
Theme URI: https://indianwritinghub.example
Author: Indian Writing Hub
Author URI: https://t.me/+8M0NTNhF8EJiN2E1
Description: Vibrant tricolor (saffron–white–green) landing-page theme for Indian Writing Hub. Promotes handwriting work-from-home opportunities with animated hero, plans, features and Telegram CTA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iwh
Tags: one-page, landing-page, business, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Indian Writing Hub — Tricolor Landing Theme
   Saffron #F97316  •  White #FFFFFF  •  Green #1F9D55
   ============================================================ */

:root {
  --iwh-saffron: #F97316;
  --iwh-saffron-glow: #FB923C;
  --iwh-white: #FFFFFF;
  --iwh-green: #1F9D55;
  --iwh-green-glow: #22C55E;
  --iwh-ink: #0F172A;
  --iwh-muted: #64748B;
  --iwh-bg: #FFFFFF;
  --iwh-soft: #FFF7ED;
  --iwh-border: #E5E7EB;
  --iwh-radius: 1rem;
  --iwh-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --iwh-shadow-glow: 0 20px 60px -20px rgba(249, 115, 22, 0.30);
  --iwh-gradient-tricolor: linear-gradient(90deg, #F97316 0%, #FFFFFF 50%, #1F9D55 100%);
  --iwh-gradient-pan: linear-gradient(90deg, #F97316, #FB923C, #1F9D55, #FB923C, #F97316);
  --iwh-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,247,237,0.7));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--iwh-ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(249,115,22,0.18), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(31,157,85,0.18), transparent 55%),
    linear-gradient(180deg, #FFFFFF, #FFF7ED);
  background-attachment: fixed;
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: iwh-bg-pan 18s ease-in-out infinite;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--iwh-saffron); text-decoration: none; }
a:hover { color: var(--iwh-green); }

.iwh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====== NAVBAR ====== */
.iwh-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.5rem 0;
}
.iwh-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--iwh-gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--iwh-border);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  box-shadow: var(--iwh-shadow);
}
.iwh-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.iwh-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: var(--iwh-shadow-glow); transition: transform .3s; }
.iwh-brand:hover img { transform: scale(1.1) rotate(3deg); }
.iwh-brand .iwh-brand-text { font-size: 1.05rem; }
.iwh-brand .iwh-brand-accent {
  background: linear-gradient(90deg, var(--iwh-saffron), var(--iwh-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.iwh-nav-links { display: none; gap: 1.75rem; color: var(--iwh-muted); font-size: 0.9rem; }
.iwh-nav-links a { color: var(--iwh-muted); transition: color .2s; }
.iwh-nav-links a:hover { color: var(--iwh-ink); }
@media (min-width: 768px) { .iwh-nav-links { display: flex; } }

/* ====== BUTTONS ====== */
.iwh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s;
}
.iwh-btn-primary {
  color: #fff;
  background: var(--iwh-gradient-pan);
  background-size: 300% 100%;
  box-shadow: var(--iwh-shadow-glow);
  animation: iwh-bg-pan 6s linear infinite;
}
.iwh-btn-primary:hover { transform: translateY(-2px) scale(1.03); color: #fff; }
.iwh-btn-glass {
  color: var(--iwh-ink);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--iwh-border);
  backdrop-filter: blur(10px);
}
.iwh-btn-glass:hover { transform: translateY(-2px); border-color: var(--iwh-saffron); }
.iwh-btn-xl { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 1.25rem; }
.iwh-btn svg { width: 18px; height: 18px; }

/* ====== HERO ====== */
.iwh-hero { position: relative; padding: 4rem 0 6rem; text-align: center; overflow: hidden; }
.iwh-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,157,85,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.iwh-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; pointer-events: none;
}
.iwh-blob-1 { width: 500px; height: 500px; background: rgba(249,115,22,0.45); top: -160px; left: -160px; animation: iwh-float 9s ease-in-out infinite; }
.iwh-blob-2 { width: 400px; height: 400px; background: rgba(31,157,85,0.40); top: 33%; right: -130px; animation: iwh-float 7s ease-in-out 1.5s infinite; }
.iwh-blob-3 { width: 450px; height: 450px; background: rgba(251,146,60,0.35); bottom: 0; left: 33%; animation: iwh-float 11s ease-in-out infinite; }

.iwh-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.iwh-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(249,115,22,0.3);
  background: rgba(249,115,22,0.08);
  font-size: 0.85rem; font-weight: 600;
  animation: iwh-fade-up .8s both;
}
.iwh-pulse-dot { position: relative; width: 8px; height: 8px; }
.iwh-pulse-dot::before, .iwh-pulse-dot::after {
  content:''; position: absolute; inset: 0; border-radius: 50%; background: var(--iwh-saffron);
}
.iwh-pulse-dot::before { animation: iwh-ping 1.5s cubic-bezier(0,0,0.2,1) infinite; opacity: .75; }
.iwh-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; margin: 1.5rem 0;
  letter-spacing: -0.02em;
  animation: iwh-fade-up .8s .1s both;
}
.iwh-tricolor-text {
  background: linear-gradient(90deg, var(--iwh-saffron), #F59E0B, var(--iwh-green));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iwh-bg-pan 5s ease infinite;
}
.iwh-hero p.iwh-lede {
  font-size: 1.15rem; color: var(--iwh-muted); max-width: 620px; margin: 0 auto 2rem;
  animation: iwh-fade-up .8s .2s both;
}
.iwh-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; animation: iwh-fade-up .8s .3s both; }

.iwh-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 4rem; animation: iwh-fade-up .8s .5s both; }
@media (min-width: 640px) { .iwh-stats { grid-template-columns: repeat(3, 1fr); } }
.iwh-stat {
  background: var(--iwh-gradient-card); border: 1px solid var(--iwh-border);
  border-radius: var(--iwh-radius); padding: 1.5rem; box-shadow: var(--iwh-shadow);
  transition: transform .4s, box-shadow .4s;
}
.iwh-stat:hover { transform: translateY(-6px); box-shadow: var(--iwh-shadow-glow); }
.iwh-stat-value { font-size: 2.5rem; font-weight: 900; }
.iwh-stat-label { font-size: 0.85rem; color: var(--iwh-muted); margin-top: 0.25rem; }
.iwh-text-saffron { color: var(--iwh-saffron); }
.iwh-text-green { color: var(--iwh-green); }

.iwh-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; font-size: 0.9rem; color: var(--iwh-muted); animation: iwh-fade-up .8s .7s both; }
.iwh-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ====== TRICOLOR BAR / MARQUEE ====== */
.iwh-tricolor-bar {
  height: 6px; width: 100%;
  background: linear-gradient(90deg, var(--iwh-saffron), #fff, var(--iwh-green), #fff, var(--iwh-saffron));
  background-size: 300% 100%;
  animation: iwh-bg-pan 8s linear infinite;
}
.iwh-marquee-wrap { background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); overflow: hidden; }
.iwh-marquee { display: flex; gap: 3rem; padding: 1.25rem 0; animation: iwh-marquee 25s linear infinite; white-space: nowrap; width: max-content; }
.iwh-marquee span { font-weight: 600; color: var(--iwh-muted); display: inline-flex; align-items: center; gap: .6rem; }
.iwh-marquee span::before { content:'✦'; color: var(--iwh-saffron); }

/* ====== SECTIONS ====== */
.iwh-section { padding: 5rem 0; position: relative; }
.iwh-section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.iwh-section-tag {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 999px;
  background: rgba(31,157,85,0.10); color: var(--iwh-green);
  font-size: 0.85rem; font-weight: 600;
}
.iwh-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 0.75rem 0; letter-spacing: -0.02em; }
.iwh-section .iwh-lede { color: var(--iwh-muted); margin: 0; }

/* Features */
.iwh-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .iwh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .iwh-grid { grid-template-columns: repeat(3, 1fr); } }

.iwh-card {
  position: relative; overflow: hidden;
  background: var(--iwh-gradient-card); border: 1px solid var(--iwh-border);
  border-radius: 1.5rem; padding: 2rem; box-shadow: var(--iwh-shadow);
  transition: transform .4s, box-shadow .4s;
}
.iwh-card:hover { transform: translateY(-8px); box-shadow: var(--iwh-shadow-glow); }
.iwh-icon-box {
  width: 56px; height: 56px; border-radius: 1rem;
  display: grid; place-items: center;
  background: var(--iwh-gradient-pan); background-size: 200% 100%;
  color: #fff; box-shadow: var(--iwh-shadow-glow);
  transition: transform .4s;
  animation: iwh-bg-pan 6s linear infinite;
}
.iwh-card:hover .iwh-icon-box { transform: scale(1.1) rotate(6deg); }
.iwh-card h3 { margin: 1rem 0 .5rem; font-size: 1.25rem; font-weight: 800; }
.iwh-card p { margin: 0; color: var(--iwh-muted); font-size: 0.95rem; }

/* Steps */
.iwh-step-num { font-size: 6rem; font-weight: 900; color: rgba(249,115,22,0.08); position: absolute; top: -1rem; right: 0.5rem; pointer-events: none; }
.iwh-step-label { color: var(--iwh-saffron); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; margin-top: 1rem; }

/* Plans */
.iwh-plan { position: relative; }
.iwh-plan-popular { transform: translateY(-1rem); }
.iwh-plan-popular .iwh-card { border: 2px solid var(--iwh-saffron); box-shadow: var(--iwh-shadow-glow); }
.iwh-popular-badge {
  position: absolute; left: 50%; top: -1.25rem; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(90deg, var(--iwh-saffron), var(--iwh-green)); color: #fff;
  font-size: 0.75rem; font-weight: 800; padding: 0.4rem 1rem; border-radius: 999px;
  letter-spacing: 0.05em; box-shadow: var(--iwh-shadow-glow);
  animation: iwh-pulse 2.5s ease-in-out infinite;
}
.iwh-plan-name { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.15em; color: var(--iwh-muted); text-transform: uppercase; }
.iwh-plan-price { font-size: 3rem; font-weight: 900; margin: 0.75rem 0 0;
  background: linear-gradient(90deg, var(--iwh-saffron), var(--iwh-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.iwh-plan-period { font-size: 0.9rem; color: var(--iwh-muted); }
.iwh-plan-divider { height: 1px; background: var(--iwh-border); margin: 1.5rem 0; }
.iwh-plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.iwh-plan-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.iwh-check {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(31,157,85,0.15); color: var(--iwh-green); font-size: 0.8rem; font-weight: 700;
}
.iwh-deposit-box {
  border: 1px solid var(--iwh-border); border-radius: 1rem; padding: 1rem; text-align: center;
  background: var(--iwh-soft); margin-bottom: 1.25rem;
}
.iwh-deposit-box .iwh-deposit-label { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--iwh-muted); text-transform: uppercase; }
.iwh-deposit-box .iwh-deposit-amount { font-size: 1.5rem; font-weight: 900; color: var(--iwh-saffron); }
.iwh-btn-block { width: 100%; }

/* CTA */
.iwh-cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--iwh-gradient-card); border: 2px solid rgba(249,115,22,0.3);
  border-radius: 2.5rem; padding: 4rem 2rem;
  box-shadow: var(--iwh-shadow-glow);
}
.iwh-cta-card::before {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(249,115,22,0.15), rgba(255,255,255,0), rgba(31,157,85,0.15));
  background-size: 200% 100%;
  animation: iwh-bg-pan 8s ease infinite;
  pointer-events: none;
}
.iwh-cta-card > * { position: relative; }
.iwh-cta-card h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0 0 1rem; font-weight: 900; }
.iwh-cta-card p { color: var(--iwh-muted); margin: 0 auto 2rem; max-width: 480px; }

/* Footer */
.iwh-footer { border-top: 1px solid var(--iwh-border); padding: 2.5rem 0; margin-top: 2rem; }
.iwh-footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .iwh-footer-inner { flex-direction: row; } }
.iwh-footer p { margin: 0; color: var(--iwh-muted); font-size: 0.9rem; }

/* WordPress content fallback */
.iwh-prose { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.iwh-prose h1, .iwh-prose h2, .iwh-prose h3 { font-weight: 800; }
.iwh-prose img { border-radius: var(--iwh-radius); }

/* Animations */
@keyframes iwh-fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes iwh-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(2deg); } }
@keyframes iwh-bg-pan { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes iwh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes iwh-pulse { 0%,100% { box-shadow: 0 0 30px rgba(249,115,22,0.4); } 50% { box-shadow: 0 0 60px rgba(249,115,22,0.7); } }
@keyframes iwh-ping { 75%,100% { transform: scale(2); opacity: 0; } }

/* WordPress required classes */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--iwh-muted); text-align: center; }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
