/*
Theme Name: WWorld Professional
Template: twentytwentyfour
Version: 2.0
Author: WWorld
Description: Dark luxury corporate theme inspired by Foster Facility – bold typography, cinematic sections, professional services aesthetic.
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap");

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --black:     #070707;
  --dark:      #0e0e0e;
  --dark2:     #161616;
  --dark3:     #1e1e1e;
  --border:    #2a2a2a;
  --gold:      #c8a96e;
  --gold2:     #e8c98e;
  --white:     #f5f0e8;
  --white2:    #d4cfc5;
  --grey:      #888880;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --radius:    2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white2);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-family: var(--font-cond); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
p  { color: var(--white2); margin-bottom: 1.2rem; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold2); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header,
header.wp-block-template-part {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,7,7,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.wp-block-navigation,
nav.site-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

.wp-block-navigation a,
nav a {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white2) !important;
  padding: 0.4rem 1rem;
  transition: color var(--transition);
}

.wp-block-navigation a:hover { color: var(--gold) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section,
.wp-block-cover:first-of-type {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(200,169,110,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200,169,110,0.04) 0%, transparent 50%);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* Hero noise texture */
.hero-section .noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.0;
  max-width: 900px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--grey);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--black) !important;
  background: var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn-primary:hover,
.wp-block-button__link:hover {
  background: transparent;
  color: var(--gold) !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--border);
  color: var(--white2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section, .section {
  padding: 120px 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}

.service-card {
  background: var(--dark);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { background: var(--dark2); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--grey);
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
  transition: gap var(--transition);
}

.service-link:hover { gap: 0.8rem; }
.service-link::after { content: '→'; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ============================================================
   ABOUT / SPLIT SECTION
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.split-image {
  position: relative;
  overflow: hidden;
  background: var(--dark3);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.8s ease, opacity var(--transition);
}

.split-image:hover img { transform: scale(1.03); opacity: 0.85; }

.split-content {
  background: var(--dark);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.quote-section {
  background: var(--dark2);
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 20rem;
  color: var(--gold);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.4;
  position: relative;
}

cite {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.site-footer,
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--grey);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: var(--grey);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--grey);
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
}

/* ============================================================
   FORMS
   ============================================================ */
input, textarea, select {
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  width: 100%;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--gold);
}

input::placeholder, textarea::placeholder {
  color: var(--grey);
  opacity: 0.6;
}

/* ============================================================
   CARDS / POSTS
   ============================================================ */
.wp-block-post-template,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
}

article.wp-block-post,
.post-card {
  background: var(--dark);
  overflow: hidden;
  transition: background var(--transition);
}

article.wp-block-post:hover,
.post-card:hover { background: var(--dark2); }

.wp-block-post-featured-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--transition), transform 0.6s ease;
}

article:hover .wp-block-post-featured-image img {
  opacity: 1;
  transform: scale(1.02);
}

.wp-block-post-title a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white) !important;
  text-decoration: none;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal – přidáno přes JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
hr, .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  section, .section { padding: 80px 0; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .wp-block-navigation { height: 60px; }
  blockquote { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.5rem 1rem; }
}

/* ============================================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================================ */
.wp-site-blocks { padding-top: 72px; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.wp-block-cover {
  background-color: var(--black) !important;
}

.wp-block-cover__background {
  opacity: 0.4 !important;
}

.has-background-dim::after {
  background: linear-gradient(135deg, rgba(7,7,7,0.8) 0%, rgba(7,7,7,0.4) 100%) !important;
}

/* Gutenberg color palette override */
.has-contrast-color { color: var(--white) !important; }
.has-base-color { color: var(--black) !important; }
.has-accent-color { color: var(--gold) !important; }
.has-contrast-background-color { background-color: var(--dark) !important; }
.has-base-background-color { background-color: var(--black) !important; }
