/* =====================================================
   FINCHI – base.css
   Global foundation (NO section-specific styling)
   Mobile-first • Modular • Scalable
   ===================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

/* ---------------------------
   Design Tokens (Brand System)
---------------------------- */
:root {
  /* Brand colors */
  --c-black: #0a0a0a;
  --c-white: #ffffff;
  --c-gold: #ae865f; /* Finchi Gold */
  --c-orange: #f79410; /* Finchi Orange */
  --c-grey: #58595b;

  /* Text colors */
  --c-text: rgba(255, 255, 255, 0.92);
  --c-muted: rgba(255, 255, 255, 0.68);
  --c-faint: rgba(255, 255, 255, 0.48);

  /* Surfaces */
  --c-surface: rgba(255, 255, 255, 0.06);
  --c-border: rgba(255, 255, 255, 0.14);

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-tight: 0 8px 18px rgba(0, 0, 0, 0.35);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Spacing scale */
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 14px;
  --sp-4: 18px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Layout */
  --container-max: 1120px;
  --container-padding: 18px;

  /* Typography */
  --font-base: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 44px;

  --lh-tight: 1.15;
  --lh-normal: 1.45;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 260ms;
  --t-slow: 420ms;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(247, 148, 16, 0.35);

  color-scheme: dark;
}

/* ---------------------------
   Global Base Styles
---------------------------- */
body {
  background: var(--c-black);
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  overflow-x: hidden;
}

/* ---------------------------
   Typography Defaults
---------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--sp-3);
  line-height: var(--lh-tight);
  letter-spacing: -0.4px;
}

p {
  margin: 0 0 var(--sp-3);
  color: var(--c-muted);
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-5);
}

/* ---------------------------
   Layout Helpers
---------------------------- */
.container {
  width: min(var(--container-max), calc(100% - (var(--container-padding) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-7);
}

/* ---------------------------
   Buttons (Global Component)
---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;

  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;

  transition: background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--c-orange);
  color: #111;
}

.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(247, 148, 16, 0.25);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--c-border);
  color: var(--c-text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--full {
  width: 100%;
}

/* ---------------------------
   Accessibility
---------------------------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--container-padding);
  top: 10px;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  border-radius: var(--r-md);
  transform: translateY(-150%);
  transition: transform var(--t-med) var(--ease);
  z-index: 9999;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------------------------
   Reduced Motion
---------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------
   Responsive Tweaks
---------------------------- */
@media (min-width: 768px) {
  :root {
    --container-padding: 24px;
  }

  .section-title {
    font-size: var(--fs-3xl);
  }
}

/* Reserve space for the sticky cart bar on mobile */
@media (max-width: 899px){
  body{ padding-bottom: 96px; }
}


/* =========================
   VISUAL TUNING (global tokens + polish)
   Non-functional changes only
   ========================= */

:root{
  --finchi-bg: #070707;
  --finchi-surface: rgba(255,255,255,.04);
  --finchi-surface-2: rgba(255,255,255,.06);
  --finchi-border: rgba(255,255,255,.10);
  --finchi-border-2: rgba(255,255,255,.14);
  --finchi-text: rgba(255,255,255,.92);
  --finchi-muted: rgba(255,255,255,.70);

  --finchi-gold: #d6b56a;   /* pezsgő arany */
  --finchi-gold-2: #f0d08a;

  --finchi-radius-lg: 22px;
  --finchi-radius-md: 16px;
  --finchi-radius-sm: 12px;

  --finchi-shadow-1: 0 10px 34px rgba(0,0,0,.42);
  --finchi-shadow-2: 0 16px 54px rgba(0,0,0,.55);

  --finchi-ease: cubic-bezier(.2,.8,.2,1);
}

html{
  text-rendering: geometricPrecision;
}

body{
  color: var(--finchi-text);
}

/* a11y: subtle but visible focus */
:focus-visible{
  outline: 2px solid rgba(214,181,106,.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* smoother micro-interactions */
a, button, .btn, .offer-card, .blog-card, .featured-card, .contact-card{
  transition: transform .22s var(--finchi-ease), box-shadow .22s var(--finchi-ease), border-color .22s var(--finchi-ease), background-color .22s var(--finchi-ease), color .22s var(--finchi-ease), opacity .22s var(--finchi-ease);
}

.section-title, h1, h2, h3{
  letter-spacing: -0.02em;
}

p{
  color: var(--finchi-muted);
}

.container{
  max-width: 1160px;
}

/* consistent section spacing */
section{
  scroll-margin-top: 92px;
}
@media (min-width: 1024px){
  section{ scroll-margin-top: 104px; }
}

/* =========================
   FINCHI SECTION RHYTHM SYSTEM
   Premium spacing + seamless transitions (visual-only).
   ========================= */

:root{
  --finchi-section-pad: 96px;
  --finchi-section-pad-lg: 120px;
  --finchi-section-pad-sm: 64px;
  --finchi-section-pad-lg-sm: 84px;
}

/* Default rhythm for all main sections (hero excluded) */
:is(.section, .featured, .about, .faq, .contact, .home-blog-cta){
  padding: var(--finchi-section-pad) 0;
}

/* Stronger “chapter change” before FAQ (About -> FAQ) + extra breathing room before Blog */
.faq{
  padding-top: var(--finchi-section-pad-lg);
  padding-bottom: var(--finchi-section-pad-lg);
}

/* Keep the Blog CTA from feeling cramped after the FAQ */
.home-blog-cta{
  padding-top: var(--finchi-section-pad);
  padding-bottom: calc(var(--finchi-section-pad) + 6px);
}

/* Responsive rhythm */
@media (max-width: 768px){
  :is(.section, .featured, .about, .faq, .contact, .home-blog-cta){
    padding: var(--finchi-section-pad-sm) 0;
  }
  .faq{
    padding-top: var(--finchi-section-pad-lg-sm);
    padding-bottom: var(--finchi-section-pad-lg-sm);
  }
}

/* Subtle separators without lines: soft top fade for non-hero sections */
:is(.section, .featured, .about, .faq, .contact, .home-blog-cta){
  position: relative;
}
:is(.section, .featured, .about, .faq, .contact, .home-blog-cta)::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-1px;
  height: 22px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0));
  opacity: .22;
}



/* Prevent background scroll when mobile menu is open */
html.is-menu-open,
body.is-menu-open {
  height: 100%;
  overflow: hidden;
}

/* iOS rubber-band scroll prevention */
html.is-menu-open {
  overscroll-behavior: none;
}

