/* ========================================== */
/* DESIGN SYSTEM & VARIABLES                  */
/* ========================================== */
@font-face {
  font-family: 'Libre Franklin';
  src: url('fonts/libre-franklin-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; 
  font-style: normal;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-cyrillic-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

:root {
  --bg: oklch(0.0921 0.0120 342.70);
  --surface: oklch(0.1150 0.0120 342.70);
  --text: oklch(0.9141 0.0120 342.70);
  --primary: oklch(0.8150 0.1887 342.70);
  --accent: oklch(0.4347 0.1594 12.70);
  --border: oklch(0.1905 0.0120 342.70);

  --font-heading: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ========================================== */
/* MASTHEAD / HEADER (Magazine Style)         */
/* ========================================== */
.masthead {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.masthead-inner {
  display: flex;
  flex-direction: column;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--primary);
}

/* Navigation Checkbox Hack */
.nav-toggle-btn {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  height: 20px;
  justify-content: center;
  z-index: 110;
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-menu a {
  font-family: var(--font-heading);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; 
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary);
}

.masthead-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  opacity: 0.8;
}

/* ========================================== */
/* MAGAZINE LAYOUT PARADIGM & COLUMNS        */
/* ========================================== */
.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 2.5fr;
  gap: 4rem;
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Clean up last section border */
section:last-of-type {
  border-bottom: none;
}

.col-num {
  font-family: var(--font-body);
  font-size: 6rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--primary);
  position: relative;
  user-select: none;
}

.col-num::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background-color: var(--border);
  margin-top: 1.5rem;
}

.col-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.col-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.col-content p {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.95;
}

/* ========================================== */
/* REAL DEPTH & OVERLAPS                      */
/* ========================================== */

/* Overlap 1: Photo breaking boundaries */
.overlap-photo-container {
  position: relative;
  z-index: 10;
  margin-bottom: -12rem;
  margin-top: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  overflow: hidden;
}

.overlap-photo-container img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.overlap-photo-container:hover img {
  transform: scale(1.02);
}

/* Overlap 2: Giant overlapping background text */
.giant-bg-wrap {
  position: absolute;
  right: -5%;
  top: 10%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.giant-bg-text {
  font-family: var(--font-body);
  font-size: 18rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  opacity: 0.04;
}

/* Overlap 3: Badge straddling the section line */
.straddle-badge {
  position: absolute;
  top: 0;
  left: 10%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: #fff;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 2px;
  z-index: 20;
}

/* ========================================== */
/* Hero Block Customizations                  */
/* ========================================== */
.hero-grid {
  grid-template-columns: 1.5fr 3.5fr;
  padding-top: 2rem;
  padding-bottom: 8rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
}

.hero-image-wrap {
  margin-top: 3rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Block specific images */
.about-image-wrap {
  margin-top: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.service-image-wrap {
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.service-image-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.btn:hover {
  color: var(--bg);
  border-color: var(--primary);
}

.btn:hover::before {
  left: 0;
}

/* Form & Contact layout */
.contact-grid {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 6rem 4rem;
  margin: 6rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-status {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 1rem;
  display: none;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-left: 1px solid var(--border);
  padding-left: 3rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.detail-value {
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

a.detail-value:hover {
  color: var(--primary);
}

/* ========================================== */
/* FOOTER                                     */
/* ========================================== */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 4rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

/* ========================================== */
/* MOBILE BREAKPOINTS & COLLAPSE DESIGN       */
/* ========================================== */
@media (max-width: 1024px) {
  .magazine-grid {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 4rem 0;
  }
  
  .col-num {
    grid-column: 1 / -1;
    font-size: 4.5rem;
  }
  
  .col-num::after {
    display: none;
  }
  
  .overlap-photo-container {
    margin-bottom: -6rem;
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .masthead {
    margin-bottom: 2rem;
  }
  
  /* Mobile navigation layout via pure CSS checkbox */
  .nav-toggle-btn {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 100;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  }
  
  #nav-toggle:checked ~ .nav-menu {
    display: flex;
  }
  
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  
  #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  /* Collapse layouts */
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 4rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .col-title {
    font-size: 1.8rem;
  }
  
  /* SAFE OVERLAP ACTIVE ON MOBILE */
  .overlap-photo-container {
    margin-bottom: -3rem; 
    margin-top: 1.5rem;
    position: relative;
    z-index: 15;
  }
  
  .overlap-photo-container img {
    height: 250px;
  }
  
  .giant-bg-wrap {
    display: none;
  }
  
  .straddle-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    width: fit-content;
  }
  
  .contact-grid {
    padding: 3rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
  }
  
  .contact-details {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}