/*
Theme Name: One Pager
Description: A clean, minimal one-page WordPress theme with a scalable hero, social feed areas, and contact form placement. All content editable via the Customizer.
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: one-pager
Tags: one-column, custom-colors, custom-logo, translation-ready
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #141414;
  --muted: #6b6b6b;
  --border: #e6e6e3;
  --accent: #141414;
  --radius: 12px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px var(--gutter);
  overflow: hidden;
}

.hero__inner { max-width: 820px; position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  word-wrap: break-word;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin: 0;
}

/* Text shadow (edge) applied by JS-free toggle in Customizer */
.has-text-shadow .hero__title,
.has-text-shadow .hero__subtitle {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(0, 0, 0, 0.45);
}

/* ---------- Sections ---------- */
.site-section { padding: clamp(56px, 9vw, 112px) 0; }
.site-section--soft { background: var(--bg-soft); }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
  text-align: center;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Social feeds ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
}

.social-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.social-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}

.social-card__embed { min-height: 60px; }
.social-card__embed > * { max-width: 100%; }

/* ---------- Contact ---------- */
.contact-block {
  max-width: 620px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}
.contact-block input,
.contact-block textarea,
.contact-block select,
.contact-block button {
  font: inherit;
}
.contact-block input[type="text"],
.contact-block input[type="email"],
.contact-block input[type="tel"],
.contact-block textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-block input:focus,
.contact-block textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}
.contact-block input[type="submit"],
.contact-block button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.contact-block input[type="submit"]:hover,
.contact-block button[type="submit"]:hover { opacity: 0.88; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hero { aspect-ratio: 4 / 3; min-height: 320px; }
  .contact-block input[type="submit"],
  .contact-block button[type="submit"] { width: 100%; }
}

/* ---------- Accessibility ---------- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #141414;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}