/*
Theme Name: EL One Page
Theme URI: https://samank.me/
Author: Saman.K
Author URI: https://samank.me/
Description: A minimal, dark one-page theme by Saman.K.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el-theme
Tags: one-page, minimal, dark
*/

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --border:   #222222;
  --text:     #e8e4dc;
  --muted:    #6b6760;
  --accent:   #e8e4dc;
  --ff-serif: 'Gentium Basic', 'EB Garamond', Georgia, serif;
  --ff-sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Full-width dark wrappers — inner content constrained by max-width */
.section-wrap,
.support-wrap {
  width: 100%;
  background-color: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: transparent;
  transition: background var(--transition), padding var(--transition);
}

.site-nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}
.site-nav.scrolled .nav-logo,
.site-nav.scrolled .nav-links a {
  color: var(--muted);
  text-shadow: 0 0 6px rgba(255,240,180,0.25);
}
.site-nav.scrolled .nav-links a:hover {
  color: var(--text);
}

.nav-logo {
  font-family: 'Gentium Basic', Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #1a1208;
  text-shadow: 0 0 12px rgba(255,240,180,0.9), 0 0 24px rgba(255,220,120,0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-family: 'Gentium Basic', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links a {
  color: #1a1208;
  text-shadow: 0 0 12px rgba(255,240,180,0.9), 0 0 24px rgba(255,220,120,0.5);
  transition: color var(--transition);
}
.nav-links a:hover { color: #000; }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Ensure the painting is always wide enough to honour the 1/8–5/8 crop rule.
   background-size: cover + position 27% keeps sun & boat centred at all widths. */
@media (max-aspect-ratio: 4/3) {
  .hero-bg {
    background-size: auto 100%;
    background-position: 15% center;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* Focal point: sun & boat sit at ~27% from left edge of painting.
     At any viewport width, this keeps them centred on screen.
     min visible left = 1/8 of image, max visible right = 5/8 of image. */
  background-position: 15% center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

/* Only darken the bottom portion — painting stays natural above */
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10,10,10,0.6) 50%,
    rgba(10,10,10,0.92) 100%
  );
  pointer-events: none;
}

/* Title block — top of hero */
.hero-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 10rem 3rem 4rem;
  background: transparent;
  z-index: 10;
}

.hero-top-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Gentium Basic', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #1a1208;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px rgba(255,240,180,0.9), 0 0 24px rgba(255,220,120,0.5);
}

.hero-tagline {
  font-family: 'Gentium Basic', Georgia, serif;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: #1a1208;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255,240,180,0.9), 0 0 24px rgba(255,220,120,0.5);
}

/* Bottom scroll indicator */
.hero-bottom {
  position: absolute;
  bottom: 2.5rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.scroll-indicator:hover { color: rgba(245,240,232,0.95); }

.scroll-label {
  font-family: var(--ff-sans);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ─── Sections ──────────────────────────────────── */
.section {
  padding: 7rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure page never shows white outside content */
#page, #content, .site, main {
  background-color: var(--bg);
  width: 100%;
}

.section-label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 3rem;
  background: var(--border);
}

.about-text {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.75;
  color: var(--text);
}

.about-text p + p { margin-top: 1.5em; }

/* ─── About extras ───────────────────────────────── */
.about-intro p {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.75;
  color: var(--text);
}
.about-divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}
.about-saman {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.about-name {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35em;
  white-space: nowrap;
}
.about-saman p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── Support Section ────────────────────────────── */
.support-section {
  padding: 7rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}
.support-heading {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.75rem;
}
.support-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 1.25rem;
}
.support-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}
.support-methods {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.support-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}
.support-method:last-child { border-bottom: none; }
.support-method--link:hover { background: var(--surface); }
.method-icon { font-size: 1rem; min-width: 1.5rem; padding-top: 0.1em; }
.method-title { font-family: var(--ff-serif); font-size: 1.05rem; margin-bottom: 0.2rem; }
.method-desc { font-family: var(--ff-sans); font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.method-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
  align-self: center;
  transition: color var(--transition), transform var(--transition);
}
.support-method--link:hover .method-arrow { color: var(--text); transform: translate(3px, -3px); }
.support-method--crypto { flex-direction: column; gap: 0.5rem; }
.crypto-inner { display: flex; flex-direction: column; gap: 0.4rem; }
.crypto-address {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  display: block;
}
.support-thanks {
  margin-top: 3rem;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Hamburger button ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1208;
  box-shadow: 0 0 6px rgba(255,240,180,0.6);
  transition: all 0.3s ease;
  transform-origin: center;
}

.site-nav.scrolled .nav-toggle span {
  background: var(--text);
  box-shadow: none;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.5rem; }
  .site-nav.scrolled { padding: 0.75rem 1.5rem; }

  .nav-logo { font-size: 2.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    z-index: 150;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--text);
    text-shadow: none;
    font-size: 1.5rem;
  }

  .hero, .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .support-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Extra Sections ─────────────────────────────── */
.extra-section { border-top: 1px solid var(--border); }
.extra-section-content { font-size: 1.1rem; line-height: 1.8; }
.extra-section-content p { margin-bottom: 1.25em; }
.extra-section-content h2 { font-family: var(--ff-serif); font-weight: 400; font-size: 1.75rem; margin-bottom: 0.75em; }
.extra-section-content h3 { font-family: var(--ff-serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.5em; }
.extra-section-content a { color: var(--text); border-bottom: 1px solid var(--border); transition: border-color var(--transition); }
.extra-section-content a:hover { border-color: var(--text); }
