/* 
 * Design System CSS for Tekrota Ahşap
 * Unified styling for consistent corporate identity
 */

/* ==========================================================================
   ROOT VARIABLES - Corporate Identity Guide
   ========================================================================== */
:root {
  /* Colors */
  --primary-color: #0055a4;
  --primary-dark: #003d75;
  --primary-light: #1976d2;
  --secondary-color: #ff6b35;
  --accent-color: #ffc107;
  
  --white: #ffffff;
  --black: #000000;
  
  --background-dark: #1a1a1a;
  --background-primary: #ffffff;
  --background-secondary: #f8f9fa;
  --background-light: #f5f5f5;
  
  --text-color: #2c2c2c;
  --text-light: #666666;
  --text-lighter: #999999;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.8);
  
  --border-color: #e9ecef;
  --border-light: #f0f0f0;
  
  --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Montserrat', sans-serif;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.5rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;
  --spacing-4xl: 6rem;
  
  /* Borders - Sharp Angular Design */
  --border-radius-sm: 0;
  --border-radius-md: 0;
  --border-radius-lg: 0;
  --border-radius-xl: 0;
  --border-radius-full: 9999px; /* Keep for specific circular elements */
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Layout */
  --header-height: 90px;
  --header-height-sticky: 70px;
  --container-max-width: 1320px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   1. PAGE HERO COMPONENT
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--background-dark);
  color: var(--white);
}

/* Modifier for the full-height homepage hero */
.page-hero--full {
  height: 100vh;
  height: 100dvh;
  min-height: 700px;
}

/* Modifier for the shorter inner-page hero */
.page-hero--inner {
  height: 50vh;
  min-height: 450px;
  max-height: 550px;
}

.page-hero__background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1.5px), 
    var(--overlay-gradient);
  background-size: 12px 12px, 100% 100%;
  z-index: 2;
}

.page-hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.page-hero__content .container {
  padding-top: var(--header-height);
  width: 100%;
}

.page-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-hero__content .highlight {
  color: var(--primary-light);
  position: relative;
}

.page-hero__content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  max-width: 650px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.page-hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* Breadcrumbs for inner pages */
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--spacing-xl);
  font-size: var(--font-size-sm);
}

.page-hero__breadcrumb a {
  color: var(--text-on-dark-muted);
  transition: color 0.3s ease;
}

.page-hero__breadcrumb a:hover {
  color: var(--white);
}

.page-hero__breadcrumb span {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 16px 32px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
  border-radius: 0; /* Sharp corners */
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn.primary-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 85, 164, 0.3);
}

.btn.outline-light-btn {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn.outline-light-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn.outline-dark-btn {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--text-color);
}

.btn.outline-dark-btn:hover {
  background-color: var(--text-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.with-icon {
  gap: var(--spacing-xs);
}

.btn i {
  font-size: 14px;
}

/* ==========================================================================
   3. SECTION COMPONENTS
   ========================================================================== */

.section-padding {
  padding: var(--spacing-4xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-header.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

.section-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Background variations */
.bg-light {
  background-color: var(--background-light);
}

.bg-secondary {
  background-color: var(--background-secondary);
}

/* ==========================================================================
   4. ANIMATIONS
   ========================================================================== */

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text.delay-1 {
  transition-delay: 0.1s;
}

.reveal-text.delay-2 {
  transition-delay: 0.2s;
}

.reveal-text.delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   5. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
  .page-hero--inner {
    min-height: 400px;
    height: auto;
    padding: 100px 0 80px;
  }
  
  .page-hero__content h1 {
    font-size: clamp(2rem, 6vw, var(--font-size-3xl));
  }
  
  .section-padding {
    padding: var(--spacing-3xl) 0;
  }
  
  .section-title {
    font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  }
}

@media (max-width: 768px) {
  .page-hero__content {
    text-align: center;
  }
  
  .page-hero__content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-hero__buttons {
    justify-content: center;
  }
  
  .page-hero__breadcrumb {
    justify-content: center;
  }
  
  .btn {
    min-width: 140px;
    padding: 14px 28px;
  }
  
  .section-padding {
    padding: var(--spacing-2xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }
}

@media (max-width: 576px) {
  .page-hero--inner {
    min-height: 350px;
    padding: 80px 0 60px;
  }
  
  .page-hero__content h1 {
    font-size: clamp(1.5rem, 8vw, var(--font-size-2xl));
    letter-spacing: 0;
  }
  
  .page-hero__content p {
    font-size: var(--font-size-base);
  }
  
  .page-hero__buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
    min-width: auto;
  }
  
  .section-subtitle {
    font-size: var(--font-size-xs);
    letter-spacing: 1px;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, var(--font-size-2xl));
  }
  
  .section-description {
    font-size: var(--font-size-base);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .page-hero--inner {
    min-height: 300px;
    padding: 60px 0;
  }
}