/*
Theme Name: My Gel Studio Landing
Theme URI: https://example.com
Author: My Gel Studio
Description: Landing plus separate Privacy and Terms pages (page.php). Footer legal menu or Customizer fallbacks for both URLs.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-gel-studio

Install: Zip this folder, then WordPress Admin → Appearance → Themes → Add New → Upload Theme.
Set your homepage under Settings → Reading if you use a static front page (optional; front-page.php is included).
*/

/* Palette mirrors SwiftUI defaults in Extensions.swift (appBackground, beige tones, accent) */
:root {
  --app-bg: #faf8f2;
  --card-bg: #ffffff;
  --beige-light: #f5f0e6;
  --beige-medium: #e6ddd1;
  --beige-dark: #d1c7b8;
  --accent: #d1c7b8;
  --charcoal: #333333;
  --neutral-mid: #999999;
  --shadow-soft: 0 8px 32px rgba(51, 51, 51, 0.06);
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.mgs-landing-body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 18px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--app-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.mgs-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.mgs-skip-link:focus {
  left: 8px;
  top: 8px;
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 8px;
}

/* Visually hidden heading for accessibility (logo carries visible branding) */
.mgs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Coming soon ribbon */
.mgs-banner {
  background: linear-gradient(135deg, var(--beige-medium) 0%, var(--beige-dark) 100%);
  color: var(--charcoal);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mgs-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mgs-banner .mgs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--charcoal);
  opacity: 0.5;
  animation: mgs-pulse 2s ease-in-out infinite;
}

@keyframes mgs-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.mgs-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.mgs-intro {
  text-align: center;
  padding: 1rem 0 2.5rem;
}

.mgs-logo {
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(51, 51, 51, 0.08));
}

.mgs-tagline {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 1.1rem;
  color: var(--neutral-mid);
  font-weight: 400;
}

.mgs-overview {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--beige-light);
  margin-bottom: 2.5rem;
}

.mgs-overview h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
}

.mgs-overview p {
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.mgs-overview p:last-child {
  margin-bottom: 0;
}

.mgs-section-title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 1.35rem;
  letter-spacing: -0.02em;
}

.mgs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.mgs-feature {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--beige-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mgs-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(51, 51, 51, 0.09);
}

.mgs-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--beige-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.mgs-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.mgs-feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--neutral-mid);
  line-height: 1.5;
}

.mgs-cta {
  text-align: center;
  padding: 1.5rem 0 0;
}

.mgs-cta-note {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--beige-light);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--charcoal);
  border: 1px solid var(--beige-medium);
}

.mgs-footer {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--neutral-mid);
}

.mgs-footer-legal {
  margin-bottom: 1rem;
}

.mgs-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
}

.mgs-legal-menu li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.mgs-legal-menu li:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: var(--neutral-mid);
  text-decoration: none;
  user-select: none;
}

.mgs-legal-menu a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.mgs-legal-menu a:hover {
  color: var(--beige-dark);
}

.mgs-footer-copy {
  margin: 0;
}

.mgs-footer a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Standalone Pages (Terms, Privacy, etc.) — template page.php */
body.mgs-subpage .mgs-page-shell {
  max-width: 760px;
}

.mgs-page-header {
  padding: 1.25rem 0 0;
  margin-bottom: 0.5rem;
}

.mgs-back-home {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.mgs-back-home:hover {
  text-decoration: underline;
  color: var(--beige-dark);
}

.mgs-page-main {
  padding-bottom: 2rem;
}

.mgs-page-article {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--beige-light);
  margin-bottom: 2rem;
}

.mgs-page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.mgs-entry-content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
}

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

.mgs-entry-content .mgs-legal-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--neutral-mid);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--beige-light);
}

.mgs-entry-content .last-updated {
  font-size: 0.9rem;
  color: var(--neutral-mid);
  margin-bottom: 2rem;
}

.mgs-entry-content > *:last-child {
  margin-bottom: 0;
}

.mgs-entry-content h2,
.mgs-entry-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
}

.mgs-entry-content p {
  margin: 0 0 1rem;
}

.mgs-entry-content ul,
.mgs-entry-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.mgs-entry-content li {
  margin: 0.35rem 0;
}

.mgs-entry-content a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mgs-entry-content a:hover {
  color: var(--beige-dark);
}

@media (prefers-reduced-motion: reduce) {
  .mgs-banner .mgs-dot {
    animation: none;
  }
}
