/*
Theme Name: One Dollar App
Theme URI: https://www.onedollarapp.com
Author: One Dollar App
Author URI: https://www.onedollarapp.com
Description: A clean, modern WordPress theme for promoting One Dollar App iOS and Android apps, with app showcases, news, contact, privacy, and terms pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-dollar-app
Tags: custom-logo, featured-images, responsive-layout, one-column, two-columns, app-showcase
*/

:root {
  --oda-ink: #172126;
  --oda-muted: #61717a;
  --oda-soft: #f5f7f2;
  --oda-panel: #ffffff;
  --oda-line: #dfe7dd;
  --oda-green: #2f7d56;
  --oda-blue: #1f6fb2;
  --oda-coral: #d95845;
  --oda-yellow: #f1c64f;
  --oda-shadow: 0 18px 50px rgba(28, 45, 38, 0.1);
  --oda-radius: 8px;
  --oda-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--oda-ink);
  background: var(--oda-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(47, 125, 86, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--oda-green);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 221, 0.78);
  background: rgba(245, 247, 242, 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.container {
  width: min(calc(100% - 32px), var(--oda-max));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--oda-ink);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 33, 38, 0.18);
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__short {
  color: var(--oda-green);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oda-line);
  border-radius: 8px;
  color: var(--oda-ink);
  background: var(--oda-panel);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a,
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--oda-muted);
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--oda-ink);
  background: #ffffff;
}

.hero {
  padding: 86px 0 54px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--oda-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--oda-yellow);
  border-radius: 999px;
  content: "";
}

.hero h1,
.page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__copy,
.archive-description,
.page-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--oda-muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background: var(--oda-ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  color: #ffffff;
  background: var(--oda-green);
}

.button--secondary {
  color: var(--oda-ink);
  background: #ffffff;
  border-color: var(--oda-line);
}

.button--secondary:hover {
  color: var(--oda-ink);
  background: #edf4ef;
}

.device-stack {
  position: relative;
  min-height: 520px;
}

.device {
  position: absolute;
  overflow: hidden;
  border: 10px solid #172126;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--oda-shadow);
}

.device--phone {
  right: 7%;
  top: 0;
  width: min(270px, 52vw);
  aspect-ratio: 9 / 18;
}

.device--tablet {
  left: 0;
  bottom: 0;
  width: min(390px, 72vw);
  aspect-ratio: 4 / 5;
  border-radius: 30px;
}

.device__screen {
  height: 100%;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(47, 125, 86, 0.14), rgba(31, 111, 178, 0.12)),
    #ffffff;
}

.mock-app {
  display: grid;
  height: 100%;
  gap: 14px;
  grid-template-rows: auto 1fr auto;
}

.mock-app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-app__dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--oda-green);
}

.mock-app__line {
  width: 46%;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 33, 38, 0.18);
}

.mock-app__main {
  display: grid;
  align-content: end;
  gap: 12px;
}

.mock-app__tile {
  min-height: 72px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.08);
}

.mock-app__tile:nth-child(2) {
  background: var(--oda-yellow);
}

.mock-app__tile:nth-child(3) {
  background: var(--oda-coral);
}

.section {
  padding: 74px 0;
}

.section--white {
  background: #ffffff;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__header h2,
.entry-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.section__header p {
  max-width: 520px;
  margin: 0;
  color: var(--oda-muted);
}

.app-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--oda-line);
  border-radius: var(--oda-radius);
  background: var(--oda-panel);
  box-shadow: 0 8px 30px rgba(23, 33, 38, 0.05);
}

.app-card__media,
.post-card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(47, 125, 86, 0.16), rgba(31, 111, 178, 0.14)),
    #edf4ef;
}

.app-card__media img,
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__body,
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.app-card h3,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.app-card p,
.post-card p {
  margin: 0;
  color: var(--oda-muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.meta-row--hero {
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--oda-green);
  background: #e9f3ec;
  font-size: 0.78rem;
  font-weight: 800;
}

.app-card__link,
.post-card__link {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--oda-line);
  border-radius: var(--oda-radius);
  background: #ffffff;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.feature p {
  margin: 0;
  color: var(--oda-muted);
}

.page-header {
  padding: 72px 0 44px;
}

.content-wrap {
  width: min(calc(100% - 32px), 880px);
  margin: 0 auto;
  padding: 28px 0 80px;
}

.entry-content {
  color: var(--oda-ink);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content li {
  color: var(--oda-muted);
}

.entry-content a {
  font-weight: 700;
}

.entry-content img {
  border-radius: var(--oda-radius);
}

.single-app-hero {
  padding: 72px 0 48px;
  background: #ffffff;
}

.single-app-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
}

.single-app-hero__art {
  overflow: hidden;
  border-radius: var(--oda-radius);
  background: var(--oda-soft);
  box-shadow: var(--oda-shadow);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--oda-line);
  background: #ffffff;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--oda-muted);
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--oda-line);
  border-radius: 8px;
  color: var(--oda-ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 150px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-navigation {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--oda-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--oda-shadow);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 4px;
  }

  .primary-menu a {
    justify-content: space-between;
  }

  .hero__grid,
  .single-app-hero__grid {
    grid-template-columns: 1fr;
  }

  .device-stack {
    min-height: 430px;
  }

  .app-grid,
  .post-grid,
  .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__header,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-navigation {
    top: 68px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1,
  .page-title {
    font-size: 3rem;
  }

  .device-stack {
    min-height: 360px;
  }

  .device--phone {
    right: 0;
  }

  .device--tablet {
    width: 74vw;
  }

  .app-grid,
  .post-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .footer-menu {
    flex-wrap: wrap;
  }
}
