/*
Theme Name: Mobile Wallpapers Landing
Theme URI: https://mobilewallpapers.in
Author: CodeArt
Author URI: https://codeart.co.in
Description: One-page landing site for mobilewallpapers.in. Funnels traffic to quotesframe.com/digital/. All homepage copy and images are editable from the "Homepage Content" page (Pages -> the page with slug "home"). Site-wide settings (logo, header link, footer) are editable from Theme Options.
Version: 1.0
Requires PHP: 7.4
Text Domain: mobilewallpapers
*/

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --wall: #f7f6f4;
  --gold: #b8915f;
  --gray: #7a7873;
  --line: #e5e2dc;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }

/* Accessible focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ HEADER ============ */
header {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img { height: 26px; width: auto; display: block; }

.logo svg { display: block; flex-shrink: 0; }

.logo-text {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo-text .light { color: var(--gray); font-weight: 400; }

.header-cta {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ============ HERO ============ */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin: 0 auto;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero-sub {
  font-size: 16.5px;
  color: var(--gray);
  max-width: 44ch;
  margin: 26px auto 0;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  margin-top: 36px;
  transition: background 0.25s ease;
}

.btn-primary:hover { background: #2a2a2a; }

.btn-arrow { transition: transform 0.2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ============ PHONE SHOWCASE ============ */
.showcase {
  padding: 20px 16px 96px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.phone {
  width: 148px;
  height: 300px;
  border-radius: 28px;
  background: #111;
  padding: 7px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.28),
    0 10px 24px -12px rgba(0,0,0,0.16);
  position: relative;
  transition: transform 0.35s ease;
}

.phone:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
.phone:nth-child(2) { transform: rotate(-1deg) translateY(-8px); z-index: 2; }
.phone:nth-child(3) { transform: rotate(3deg) translateY(4px); z-index: 2; }
.phone:nth-child(4) { transform: rotate(7deg) translateY(16px); }

.showcase:hover .phone { transform: none; }

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.phone-screen > * { position: relative; z-index: 1; }

.phone-time {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

.phone-date {
  font-size: 9.5px;
  opacity: 0.85;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.phone-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.92;
  max-width: 90px;
}

/* ============ TRUST STRIP ============ */
.trust {
  background: var(--wall);
  padding: 56px 0;
  text-align: center;
}

.trust p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  max-width: 30ch;
  margin: 0 auto;
  color: #2a2a2a;
}

.trust .signature {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-top: 20px;
}

/* ============ FEATURE ROW ============ */
.features {
  padding: 84px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ============ SHOP THE COLLECTION ============ */
.shop-row {
  padding: 20px 0 84px;
}

.shop-row-header {
  text-align: center;
  margin-bottom: 40px;
}

.shop-row-header .eyebrow { margin-bottom: 14px; }

.shop-row-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.shop-card {
  display: block;
  background: var(--wall);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -14px rgba(0,0,0,0.2);
}

.shop-card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
}

.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-meta {
  padding: 4px 16px 20px;
  text-align: center;
}

.shop-card-title {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.shop-card-link {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

/* ============ FINAL CTA ============ */
.final-cta {
  padding: 96px 0 100px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  max-width: 16ch;
  margin: 0 auto;
  line-height: 1.2;
}

.final-cta .hero-sub { margin-top: 18px; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  font-size: 12.5px;
  color: var(--gray);
}

.footer-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .phone { width: 110px; height: 224px; border-radius: 22px; }
  .phone-screen { border-radius: 17px; padding: 12px 9px; }
  .phone-time { font-size: 19px; }
  .phone-quote { font-size: 9.5px; max-width: 70px; }
  .trust p { font-size: 20px; }
  .btn { padding: 14px 24px; font-size: 12px; }
  .container { padding: 0 20px; }
  .phone:nth-child(4) { display: none; } /* only 3 phones on mobile, so they stay on one row */
}

@media (max-width: 420px) {
  .phone { width: 92px; height: 188px; }
  .phone-time { font-size: 16px; }
  .phone-date { font-size: 8px; }
  .phone-quote { font-size: 8.5px; max-width: 60px; }
  .showcase { gap: 12px; padding: 20px 10px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
