/*
Theme Name: DigitalAware
Theme URI: https://digitalaware.in/
Author: digitalaware
Author URI: https://digitalaware.in/
Description: DigitalAware — a modern, animated digital marketing / performance growth studio theme. Includes an animated showreel hero, services catalogue with detail pages, pricing plans, blog and a built-in contact form. No page builder required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalaware
Tags: business, portfolio, blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ---------- tokens ---------- */
:root {
  --radius: 0.875rem;
  --background: #fdfdff;
  --foreground: #1b2340;
  --surface: #f2f4fb;
  --card: #ffffff;
  --primary: #2f5fe0;
  --primary-dark: #23489f;
  --primary-foreground: #ffffff;
  --muted: #f3f5fb;
  --muted-foreground: #667191;
  --border: rgba(27, 35, 64, 0.12);
  --coral: #3f8ae0;
  --navy: #16204a;
  --shadow-card: 0 18px 50px -30px rgba(27, 35, 64, 0.45);
  --gradient-accent: linear-gradient(100deg, var(--navy), var(--primary) 55%, var(--coral));
  --gradient-hero: radial-gradient(120% 90% at 85% 10%, rgba(47, 95, 224, 0.16), transparent 60%),
    radial-gradient(90% 80% at 5% 90%, rgba(63, 138, 224, 0.16), transparent 62%);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --maxw: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.1rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); margin: 0 0 .75rem; }
.lead { color: var(--muted-foreground); font-size: 1.05rem; max-width: 42rem; }
.muted { color: var(--muted-foreground); }
.text-gradient { background-image: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.surface-panel { background: rgba(242, 244, 251, .8); border: 1px solid var(--border); box-shadow: var(--shadow-card); backdrop-filter: blur(14px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 999; background: var(--card); padding: 10px 16px; border-radius: 8px; width: auto; height: auto; clip: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  border-radius: 999px; padding: .8rem 1.5rem; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { width: 100%; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .93rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(253, 253, 255, .88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand img { max-height: 44px; width: auto; }
.brand .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--foreground); }
.nav-desktop { display: none; }
@media (min-width: 900px) { .nav-desktop { display: block; } .header-cta { display: inline-flex; } }
.nav-desktop ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { position: relative; }
.nav-desktop a { color: var(--muted-foreground); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; display: inline-block; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background-image: var(--gradient-accent); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-desktop a:hover { color: var(--foreground); }
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-desktop .current-menu-item > a, .nav-desktop .current_page_item > a { color: var(--primary); }
.nav-desktop .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 240px; display: block; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 8px; margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .22s ease; gap: 0;
}
.nav-desktop li:hover > .sub-menu, .nav-desktop li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-desktop .sub-menu a { display: block; padding: 8px 12px; border-radius: 10px; width: 100%; }
.nav-desktop .sub-menu a::after { display: none; }
.nav-desktop .sub-menu a:hover { background: rgba(47, 95, 224, .1); color: var(--primary); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--foreground); cursor: pointer; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-mobile { display: none; border-top: 1px solid var(--border); padding: 8px 20px 24px; }
.nav-mobile.is-open { display: block; animation: fadeIn .3s ease; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: .95rem; }
.nav-mobile .sub-menu { padding-left: 14px; }
.nav-mobile .sub-menu a { border-bottom: none; padding: 8px 0; }
.nav-mobile .btn { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--gradient-hero); }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding: 64px 20px 88px; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding: 88px 20px 112px; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); background: rgba(242,244,251,.7); color: var(--primary); border-radius: 999px; padding: 6px 16px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--border); max-width: 34rem; }
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; color: var(--primary); }
.hero-stats dd { margin: 4px 0 0; font-size: .78rem; color: var(--muted-foreground); }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 26px; padding: 8px; }
.hero-media img { border-radius: 20px; }
.floating-card { position: absolute; border-radius: 18px; padding: 12px 18px; animation: float 7s ease-in-out infinite; }
.floating-card p { margin: 0; font-size: .72rem; color: var(--muted-foreground); }
.floating-card strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--coral); }
.hero-media .floating-card { bottom: -22px; left: 18px; animation-delay: .8s; }

/* ---------- showreel ---------- */
.reel-frame { border-radius: 26px; padding: 6px; margin-top: 40px; }
.reel-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--background); }
.reel-stage .glow { position: absolute; inset: 0; background-image: var(--gradient-hero); opacity: .8; }
.reel-grid-bg { position: absolute; inset: 0; opacity: .28; color: var(--primary); width: 100%; height: 100%; }
.reel-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-lines path { animation: dash 6s linear infinite; }
.reel-lines path.slow { animation-duration: 9s; }
.reel-bars { position: absolute; left: 0; bottom: 0; width: 100%; height: 42%; display: flex; align-items: flex-end; gap: 8px; padding: 0 28px 24px; }
.reel-bars span { flex: 1; background: rgba(47, 95, 224, .5); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: bar 2.4s ease-in-out infinite; }
.reel-stat { position: absolute; border-radius: 18px; padding: 10px 16px; animation: float 7s ease-in-out infinite; }
.reel-stat p { margin: 0; font-size: .7rem; color: var(--muted-foreground); }
.reel-stat strong { font-family: var(--font-display); font-size: 1.4rem; }
.reel-stat.left { left: 24px; top: 24px; animation-delay: .4s; color: var(--primary); }
.reel-stat.right { right: 24px; top: 56px; animation-delay: 1.6s; }
@media (max-width: 640px) { .reel-stat.right { display: none; } .reel-bars { padding: 0 12px 14px; gap: 4px; } }
.play-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-btn { position: relative; width: 76px; height: 76px; border-radius: 999px; border: none; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s ease; }
.play-btn:hover { transform: scale(1.06); }
.play-wrap .ring { position: absolute; width: 76px; height: 76px; border-radius: 999px; background: var(--primary); animation: pulseRing 3s ease-out infinite; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: 20px; padding: 26px; display: block; color: inherit; transition: transform .3s ease, border-color .3s ease; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.card:hover { transform: translateY(-6px); color: inherit; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted-foreground); font-size: .93rem; margin: 0; }
.icon-badge { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(47,95,224,.14); color: var(--primary); transition: background .25s ease, color .25s ease; }
.card:hover .icon-badge { background: var(--primary); color: #fff; }
.card .link-arrow { margin-top: 18px; }
.meta { font-size: .78rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); background: rgba(47,95,224,.1); border-radius: 999px; padding: 4px 10px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .93rem; color: var(--muted-foreground); }
.check-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--primary); }

/* ---------- pricing ---------- */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--primary); box-shadow: 0 26px 60px -30px rgba(47,95,224,.6); }
.plan .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; }
.plan .cadence { font-size: .8rem; color: var(--muted-foreground); }
.plan .badge { position: absolute; top: -13px; right: 20px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan .btn { margin-top: auto; }
.plan .check-list { margin: 18px 0 22px; }

/* ---------- page hero / posts ---------- */
.page-hero { position: relative; overflow: hidden; padding: 60px 0 44px; border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--gradient-hero); }
.page-hero .container { position: relative; }
.breadcrumb { font-size: .8rem; color: var(--muted-foreground); margin-bottom: 10px; }
.entry-content { max-width: 46rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content img, .entry-content .wp-block-image { border-radius: 16px; }
.entry-content blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--primary); background: var(--muted); border-radius: 0 14px 14px 0; }
.entry-content pre { overflow-x: auto; background: var(--navy); color: #e9edff; padding: 16px; border-radius: 14px; }
.post-thumb { border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.post-thumb img { width: 100%; object-fit: cover; aspect-ratio: 16/9; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-size: .88rem; color: var(--muted-foreground); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- contact form ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--foreground); font: inherit; font-size: .94rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,95,224,.16); }
.notice { border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin-bottom: 18px; }
.notice--ok { background: rgba(47,95,224,.1); color: var(--primary-dark); border: 1px solid rgba(47,95,224,.3); }
.notice--err { background: rgba(224, 63, 63, .1); color: #a02525; border: 1px solid rgba(224,63,63,.3); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--muted-foreground); }
.contact-list svg { color: var(--primary); flex: 0 0 auto; margin-top: 3px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(242,244,251,.6); margin-top: 20px; }
.footer-grid { display: grid; gap: 40px; padding: 64px 0 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.site-footer h3 { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a, .site-footer li { color: var(--muted-foreground); font-size: .9rem; padding: 5px 0; display: block; }
.site-footer li a:hover { color: var(--foreground); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.socials a:hover { border-color: var(--primary); color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: .78rem; color: var(--muted-foreground); border-top: 1px solid var(--border); margin-top: 52px; padding: 20px 0; }

/* ---------- widgets / comments ---------- */
.widget { margin-bottom: 32px; }
.widget-title { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 14px; background: var(--card); }
.with-sidebar { display: grid; gap: 40px; }
@media (min-width: 1000px) { .with-sidebar { grid-template-columns: minmax(0,1fr) 300px; } }

/* ---------- animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-14px) translateX(5px); } }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes dash { to { stroke-dashoffset: -600; } }
@keyframes pulseRing { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.animate-fade-in { animation: fadeIn .7s ease both; }
.animate-scale-in { animation: scaleIn .8s ease both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- wp core ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1rem; }
.wp-caption-text, .wp-element-caption { font-size: .8rem; color: var(--muted-foreground); }
.sticky, .gallery-caption, .bypostauthor { }
