/*
Theme Name: Pupkin
Theme URI: https://www.studiotf1.com/
Author: StudioTF1
Author URI: https://www.studiotf1.com/
Description: Custom WordPress theme for Pupkin — light palette, media+text about cards, HLS video hero.
Version: 1.0.0
License: Private
Text Domain: pupkin
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Colours ── */
  --text:         #1a1a1a;          /* main body text */
  --bg:           #E4E4D2;          /* page background */
  --surface:      #f0f0e0;          /* input / card surface */
  --muted:        rgba(26,26,26,0.55); /* secondary text */
  --border:       rgba(0,0,0,0.08); /* subtle dividers */
  --text-opacity: 0.60;             /* hero content opacity */

  /* ── Accent ── */
  --accent:       #d4a843;          /* primary brand gold */
  --accent-dark:  #b8891f;          /* hover state */

  /* ── Footer ── */
  --footer-text:  rgba(255,255,255,0.55);
  --footer-bg:    #03001E;

  /* ── Media+text cards ── */
  --mb-text:      var(--footer-text);
  --mb-bg:        #b6b685;
  --mb-spacing:   90px;             /* vertical gap between cards */
  --mb-image-popout: -50px;         /* image overflow outside card edge */

  /* ── Typography ── */
  --font-display: 'Sora', 'Georgia', serif;
  --font-body:    'Sora', system-ui, sans-serif;

  /* ── Layout ── */
  --nav-h:        80px;             /* fixed header height */
  --radius:       4px;              /* border-radius default */

  /* ── Logos ── */
  --logo-size-desktop:  60px;
  --logo-size-mobile:   48px;
  --logo-center-height: 30px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  /* sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

/* ─── GLOBAL TYPOGRAPHY ───────────────────────────────────── */
/* h1–h4 are identical everywhere; only size differs per section  */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2rem,   5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-size: clamp(0.95rem,1.5vw, 1.2rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1em;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-dark); }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li { line-height: 1.75; }

/* ─── FORM ELEMENTS (global defaults) ─────────────────────── */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.25s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
textarea { resize: vertical; }

@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-Thin.woff2') format('woff2'),url('assets/fonts/Sora-Thin.woff') format('woff'); font-weight:100; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-ExtraLight.woff2') format('woff2'),url('assets/fonts/Sora-ExtraLight.woff') format('woff'); font-weight:200; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-Light.woff2') format('woff2'),url('assets/fonts/Sora-Light.woff') format('woff'); font-weight:300; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-Regular.woff2') format('woff2'),url('assets/fonts/Sora-Regular.woff') format('woff'); font-weight:400; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-Medium.woff2') format('woff2'),url('assets/fonts/Sora-Medium.woff') format('woff'); font-weight:500; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-SemiBold.woff2') format('woff2'),url('assets/fonts/Sora-SemiBold.woff') format('woff'); font-weight:600; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-Bold.woff2') format('woff2'),url('assets/fonts/Sora-Bold.woff') format('woff'); font-weight:700; font-display:swap; }
@font-face { font-family:'Sora'; src:url('assets/fonts/Sora-ExtraBold.woff2') format('woff2'),url('assets/fonts/Sora-ExtraBold.woff') format('woff'); font-weight:800; font-display:swap; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(247,245,242,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* Logo left */
.header-logo-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-logo-left img,
.header-logo-left .custom-logo {
  height: var(--logo-size-desktop);
  width: auto;
  display: block;
  transform: rotate(-4deg);
}
/* WP wraps custom logo in <a class="custom-logo-link"> */
.header-logo-left .custom-logo-link {
  display: flex;
  align-items: center;
}
.header-logo-left .custom-logo-link img {
  height: var(--logo-size-desktop);
  width: auto;
  transform: rotate(-4deg);
}

/* Logo center */
.header-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo-center img {
  height: var(--logo-center-height);
  width: auto;
  display: block;
  opacity: var(--text-opacity);
}

/* Right side: lang switcher */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Default: dark text (when header has background) */
.lang-switch a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s, color 0.3s;
}
.lang-switch a:hover,
.lang-switch a.current { opacity: 1; }
.lang-switch span {
  color: var(--text);
  opacity: 0.25;
  transition: color 0.3s;
}
/* On transparent header (hero): force white so it's visible over video */
.site-header:not(.scrolled) .lang-switch a {
  color: #fff;
  opacity: 0.7;
}
.site-header:not(.scrolled) .lang-switch a:hover,
.site-header:not(.scrolled) .lang-switch a.current {
  color: #fff;
  opacity: 1;
}
.site-header:not(.scrolled) .lang-switch span {
  color: rgba(255,255,255,0.4);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 9002;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 767px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
    height: 56px;
  }
  .nav-toggle { display: none !important; }
  .header-logo-center { justify-content: center; }
  .header-logo-left img,
  .header-logo-left .custom-logo,
  .header-logo-left .custom-logo-link img {
    height: var(--logo-size-mobile) !important;
    width: auto !important;
  }
  .header-logo-center img {
    height: 30px !important;
    width: auto !important;
  }
  .lang-switch { font-size: 0.65rem; gap: 3px; }
  #primary-nav { display: none !important; }
}
@media (min-width: 768px) {
  .nav-toggle { display: none !important; }
}
@media (max-width: 380px) {
  .lang-switch { display: none; }
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.45) 100%
  );
}

.hero-content {
  font-size: clamp(0.8rem, 2vw, 1.6rem);
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 clamp(24px, 6vw, 80px);
  max-width: 860px;
  opacity: var(--text-opacity);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  opacity: var(--text-opacity);
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(212,168,67,0.3);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 24px rgba(212,168,67,0.4);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── SECTION SHARED ──────────────────────────────────────── */
.section {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 8vw, 120px);
  max-width: 1300px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.section-body {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}


/* ─── ABOUT SECTION ───────────────────────────────────────── */
.about-section {
  background: var(--bg);
  padding: clamp(80px, 10vw, 120px) 0;
}

.about-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
}
.about-section-inner > .section-label,
.about-section-inner > .section-title {
  text-align: center;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: var(--mb-spacing);
}


/* ─── MEDIA AREA FIX ─────────────────────────────────────── */
/* ─── CARD BASE ─── */
.wp-block-media-text {
  padding: 40px;
  background: var(--mb-bg);
  /* border-radius: var(--radius); */
  overflow: visible;
  position: relative;
  display: flex;
  align-items: flex-start;
  column-gap: 12px;
  width: 70%;
  margin: 0 auto;
}

/* Media container */
.wp-block-media-text__media {
  position: relative;
  overflow: visible;
  align-self: start;
  margin-top: -5px;
}

/* Image — consistent size + top offset */
.wp-block-media-text__media img {
  width: 160px;
  max-width: 160px;
  height: auto;
  display: block;
  position: relative;
  /* top: var(--mb-image-popout); */
  z-index: 2;
}

/* LEFT image offset */
.wp-block-media-text:not(.has-media-on-the-right) {
  transform: translateX(+5%);
}
.wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__media {
  margin-left: var(--mb-image-popout);
  margin-right: auto; /* align to left edge */
}

.wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__media img {
  left: var(--mb-image-popout);
}

/* RIGHT image offset */
.wp-block-media-text.has-media-on-the-right {
  transform: translateX(-5%);
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  margin-right: var(--mb-image-popout);
  margin-left: auto; /* align to right edge */
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media img {
  right: var(--mb-image-popout);
}

/* ─── TEXT ─── */
.wp-block-media-text__content {
  margin: 0 !important;
  padding: 0 !important;
}
.wp-block-media-text__content h2,
.wp-block-media-text__content h3,
.about-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wp-block-media-text__content p,
.about-card-content p {
  font-size: 0.95rem;
  color: var(--mb-text);
  line-height: 1.75;
}

/* ─── MOBILE ─── */
@media (max-width: 767px) {
  .about-cards .wp-block-media-text,
  .about-card {
    grid-template-columns: 1fr !important;
    padding: 28px 24px;
    gap: 24px;
  }

  .wp-block-media-text__media img {
    width: 100px;
    max-width: 100px;
    top: 0;
    left: 0;
    right: 0;
  }
}



/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px clamp(24px, 6vw, 100px) 48px;
}
.footer-col--brand {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
  text-align: left;
}
.footer-copy {
  font-size: 0.85rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

/* Brand column */
.footer-col--brand {}
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 24px;
  opacity: 0.9;
}

.footer-nav-title {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
/* Nav columns */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.footer-nav-list a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--footer-text);
  transition: color 0.2s;
  display: inline-block;
}
.footer-nav-list a:hover { color: var(--accent); }


@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-cards .wp-block-media-text,
  .about-card { transition: none; }
}

/* ─── SCROLL ARROW ────────────────────────────────────────── */
.scroll-hint { display: none; }

/* ─── PAGE HERO (about, contact, policies) ──────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) clamp(24px, 8vw, 120px) 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}

/* ─── POLICY CONTENT ──────────────────────────────────────── */
.policy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 8vw, 120px) 80px;
  box-sizing: border-box;
}
.policy-content h1,
.policy-content h2,
.policy-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.policy-content h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.policy-content h3 { font-size: clamp(1rem, 2vw, 1.2rem); }
.policy-content p,
.policy-content li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 780px;
}
.policy-content ul,
.policy-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* ─── CONTACT PAGE ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 24px;
}
.contact-detail-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-detail-value {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.contact-detail-value:hover { color: var(--accent); }

/* Status notices */
.cf-notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 32px;
  font-weight: 500;
}
.cf-notice--success {
  background: #edf7ed;
  color: #2e7d32;
  border-left: 3px solid #4caf50;
}
.cf-notice--error {
  background: #fdecea;
  color: #c62828;
  border-left: 3px solid #f44336;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
/* form-row inputs inherit global input styles; only overrides below */
.form-row textarea { min-height: 140px; }
.form-submit { margin-top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

