/*
 Theme Name:   Framebreak Child
 Theme URI:    https://framebreak.ch
 Description:  Framebreak Child Theme — CD 01 Dark Frame by nd · Nikos Diamantis
 Author:       Nikos Diamantis
 Author URI:   https://framebreak.ch
 Template:     kadence
 Version:      1.0.0
 Text Domain:  framebreak-child
*/

/* ============================================================
   FRAMEBREAK — CD 01: DARK FRAME
   Corporate Design by nd · Nikos Diamantis
   ============================================================
   Farben:
     Signal-Rot   #E8001C
     Deep Black   #080808
     Graphite     #181818
     Card BG      #0d0d0d
     Border       #1a1a1a
     Raw White    #F2EDE4
     Text Muted   rgba(242,237,228,0.45)
   Fonts:
     Bebas Neue   — Display / Logo
     Barlow Condensed — Headlines
     Barlow       — Body
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --fb-red:        #E8001C;
  --fb-red-flash:  #FF4040;
  --fb-black:      #080808;
  --fb-graphite:   #181818;
  --fb-card:       #0d0d0d;
  --fb-border:     #1a1a1a;
  --fb-white:      #F2EDE4;
  --fb-muted:      rgba(242, 237, 228, 0.45);
  --fb-muted-low:  rgba(242, 237, 228, 0.2);

  --fb-font-display:  'Bebas Neue', sans-serif;
  --fb-font-heading:  'Barlow Condensed', sans-serif;
  --fb-font-body:     'Barlow', sans-serif;

  --fb-radius:   0px;
  --fb-transition: 0.25s ease;
  --fb-max-width: 1440px;
  --fb-gutter:    60px;
}

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

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

body {
  background-color: var(--fb-black);
  color: var(--fb-white);
  font-family: var(--fb-font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--fb-white);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(4rem, 9vw, 9rem); }
h2 { font-size: clamp(3rem, 6vw, 6rem); }
h3 { font-size: clamp(2rem, 4vw, 4rem); }
h4 {
  font-family: var(--fb-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
h5 {
  font-family: var(--fb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fb-red);
}
h6 {
  font-family: var(--fb-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fb-muted);
}

p {
  font-family: var(--fb-font-body);
  font-weight: 300;
  color: var(--fb-muted);
  line-height: 1.85;
  margin: 0 0 1.2em;
}

a {
  color: var(--fb-white);
  text-decoration: none;
  transition: color var(--fb-transition);
}
a:hover { color: var(--fb-red); }

strong, b { font-weight: 700; color: var(--fb-white); }
em { font-style: italic; color: var(--fb-red); }

/* ── Layout ── */
.container {
  max-width: var(--fb-max-width);
  margin: 0 auto;
  padding: 0 var(--fb-gutter);
}

.section {
  padding: 100px var(--fb-gutter);
}

.section--dark   { background: var(--fb-black); }
.section--card   { background: var(--fb-card); }
.section--graph  { background: var(--fb-graphite); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

/* ── Navigation ── */
.site-header,
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--fb-border);
  height: 68px;
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo,
.custom-logo-link {
  font-family: var(--fb-font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--fb-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-logo span,
.logo-accent { color: var(--fb-red); }

/* Nav Links */
.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 36px;
}
.main-navigation ul li a {
  font-family: var(--fb-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.5);
  transition: color var(--fb-transition);
  padding: 4px 0;
  position: relative;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--fb-red);
  transform: scaleX(0);
  transition: transform var(--fb-transition);
  transform-origin: left;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--fb-white);
}
.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after {
  transform: scaleX(1);
}

/* Body offset for fixed header */
body { padding-top: 68px; }

/* ── Buttons ── */
.wp-block-button__link,
.btn,
button[type="submit"] {
  font-family: var(--fb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all var(--fb-transition);
  display: inline-block;
  text-decoration: none;
  border-radius: 0;
}

.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--fb-red);
  color: var(--fb-white);
}
.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: var(--fb-red-flash);
  color: var(--fb-white);
}

.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--fb-white);
  border: 1px solid rgba(242, 237, 228, 0.25);
}
.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--fb-red);
  color: var(--fb-red);
}

/* ── Hero Section ── */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--fb-gutter) 80px;
  position: relative;
  overflow: hidden;
  background: var(--fb-black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(0.6) contrast(1.2);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.95) 0%,
    rgba(8,8,8,0.5) 50%,
    rgba(8,8,8,0.2) 100%
  );
}

.hero__content { position: relative; z-index: 1; }

.hero__tag {
  font-family: var(--fb-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fb-red);
  margin-bottom: 24px;
  display: block;
}

.hero__title {
  font-family: var(--fb-font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.hero__title .outline {
  -webkit-text-stroke: 2px var(--fb-white);
  color: transparent;
  display: block;
}
.hero__title .red { color: var(--fb-red); display: block; }

.hero__sub {
  max-width: 480px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--fb-muted);
  margin-bottom: 40px;
}

.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Marquee ── */
.marquee-bar {
  background: var(--fb-red);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}
.marquee__track span {
  font-family: var(--fb-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--fb-white);
  padding: 0 36px;
}
.marquee__track .sep { color: rgba(255,255,255,0.3); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Tags (Overline) ── */
.section-tag {
  font-family: var(--fb-font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fb-red);
  display: block;
  margin-bottom: 40px;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--fb-graphite);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(0.2);
}
.portfolio-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--fb-transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__cat {
  font-family: var(--fb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fb-red);
  margin-bottom: 6px;
}
.portfolio-item__title {
  font-family: var(--fb-font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--fb-white);
}

/* ── Service Cards ── */
.service-card {
  background: var(--fb-card);
  padding: 48px 40px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--fb-transition), transform var(--fb-transition);
}
.service-card:hover {
  border-bottom-color: var(--fb-red);
  transform: translateY(-3px);
}
.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: block;
  filter: grayscale(0.3);
}
.service-card__title {
  font-family: var(--fb-font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--fb-white);
  margin-bottom: 16px;
}
.service-card__desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--fb-muted);
}
.service-card__price {
  font-family: var(--fb-font-display);
  font-size: 1.8rem;
  color: var(--fb-red);
  margin-top: 24px;
  display: block;
}

/* ── About / nd Section ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.about-split__left {
  background: var(--fb-card);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--fb-border);
}
.about-split__right {
  background: var(--fb-red);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.about-split__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 16px,
    rgba(0,0,0,0.06) 16px, rgba(0,0,0,0.06) 17px
  );
}

/* nd signature */
.nd-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 3px solid var(--fb-red);
  padding-left: 20px;
  margin-top: 28px;
}
.nd-letters {
  font-family: var(--fb-font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(242,237,228,0.3);
  line-height: 1;
}
.nd-letters strong {
  font-weight: 900;
  color: var(--fb-white);
}
.nd-info {
  font-family: var(--fb-font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(242,237,228,0.35);
  line-height: 1.6;
}
.nd-info b {
  color: var(--fb-red);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

/* ── Contact / CTA Section ── */
.cta-section {
  background: var(--fb-red);
  padding: 100px var(--fb-gutter);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: var(--fb-white);
  margin-bottom: 24px;
}
.cta-section p {
  color: rgba(242,237,228,0.7);
  max-width: 500px;
  margin: 0 auto 40px;
}
.btn-dark {
  background: var(--fb-black);
  color: var(--fb-white);
  font-family: var(--fb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 48px;
  display: inline-block;
  transition: background var(--fb-transition);
}
.btn-dark:hover {
  background: #111;
  color: var(--fb-white);
}

/* ── Footer ── */
.site-footer {
  background: var(--fb-black);
  border-top: 1px solid rgba(232,0,28,0.15);
  padding: 60px var(--fb-gutter) 36px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.footer__logo {
  font-family: var(--fb-font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--fb-white);
}
.footer__logo span { color: var(--fb-red); }
.footer__tagline {
  font-family: var(--fb-font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
  margin-top: 8px;
}
.footer__links {
  display: flex;
  gap: 28px;
}
.footer__links a {
  font-family: var(--fb-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  transition: color var(--fb-transition);
}
.footer__links a:hover { color: var(--fb-red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(242,237,228,0.05);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(242,237,228,0.25);
}

/* ── Forms (Contact Form 7) ── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: 0;
  color: var(--fb-white);
  font-family: var(--fb-font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 16px 20px;
  width: 100%;
  transition: border-color var(--fb-transition);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--fb-red);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(242,237,228,0.25);
  letter-spacing: 0.05em;
}
.wpcf7-form input[type="submit"] {
  background: var(--fb-red);
  color: var(--fb-white);
  font-family: var(--fb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background var(--fb-transition);
  width: auto;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--fb-red-flash);
}

/* ── WooCommerce Overrides ── */
.woocommerce .woocommerce-loop-product__title {
  font-family: var(--fb-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--fb-white);
}
.woocommerce span.price,
.woocommerce ins .amount {
  font-family: var(--fb-font-display);
  font-size: 1.6rem;
  color: var(--fb-red) !important;
}
.woocommerce .button,
.woocommerce button.button {
  background: var(--fb-red) !important;
  color: var(--fb-white) !important;
  font-family: var(--fb-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: background var(--fb-transition) !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--fb-red-flash) !important;
}
.woocommerce ul.products li.product {
  background: var(--fb-card);
  border-bottom: 3px solid transparent;
  transition: border-color var(--fb-transition), transform var(--fb-transition);
}
.woocommerce ul.products li.product:hover {
  border-bottom-color: var(--fb-red);
  transform: translateY(-3px);
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --fb-gutter: 36px;
  }
  .grid-3, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .about-split__left,
  .about-split__right { padding: 60px 36px; }
}

@media (max-width: 768px) {
  :root { --fb-gutter: 24px; }
  .grid-2, .grid-3, .grid-4, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-bottom: 60px; }
  .main-navigation { display: none; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  h1 { font-size: clamp(3.5rem, 14vw, 6rem); }
}
