/*
 * Tuğra Workwear - Main Styles
 * CSS Reset & Variables
 */

:root {
  /* Colors */
  --color-navy: #0B1D3A;
  --color-navy-light: #163057;
  --color-dark: #222222;
  --color-gold: #CBA052;
  --color-gold-hover: #b0873d;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9F9F9;
  --color-text: #4A4A4A;
  --color-text-light: #888888;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --container-padding: 1rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Z-Index */
  --z-dropdown: 90;
  --z-header: 100;
  --z-modal: 200;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
}

/* ==========================================================================
   Lenis Smooth Scroll Base
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-navy-light);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}

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

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: var(--z-header);
  height: 80px;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 70px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  max-height: 55px;
  width: auto;
  transition: max-height 0.3s ease;
}

.header.scrolled .logo-img {
  max-height: 45px;
}

.header__nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__item {
  position: relative;
}

.nav__link {
  font-weight: 500;
  color: var(--color-dark);
  padding: 0.5rem 0;
}

.nav__link:hover {
  color: var(--color-gold);
}

/* Dropdown */
.nav__item--dropdown:hover .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  min-width: 180px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: var(--z-dropdown);
}

.dropdown__link {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
}

.dropdown__link:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-gold);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 0.5rem;
}

.lang-switcher:hover .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
}

.lang-switcher__menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lang-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
}

.lang-btn:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-gold);
}

.burger-menu {
  display: none;
  font-size: 1.5rem;
  color: var(--color-navy);
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 80px; /* Offset for header */
  background-color: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.hero__container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__images {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  object-position: bottom;
}

.hero__content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

/* ==========================================================================
   Trust Pillars
   ========================================================================== */
.trust-pillars {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-alt);
  position: relative;
  z-index: 10;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.15); /* Soft edge transition */
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.trust__card {
  background-color: var(--color-white);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.trust__card:hover {
  transform: translateY(-5px);
}

.trust__icon {
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.trust__card-title {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   About Intro Text Section
   ========================================================================== */
.about-intro {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
  position: relative;
  z-index: 5;
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .about-intro__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.about-intro__title {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  border-left: 3px solid var(--color-gold);
  padding-left: 10px;
}

.about-intro__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  padding-left: 13px;
}

/* ==========================================================================
   Brands Section (Basic styling, GSAP logic will handle sticky behavior)
   ========================================================================== */
.brands-container {
  /* Scrollytelling container */
  position: relative;
}

.brand-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-white);
  position: relative;
  z-index: 5;
}

.brand-layer {
  padding: var(--space-md) 0;
}

.brand-logo {
  max-height: 150px;
  width: auto;
  margin-bottom: var(--space-sm);
  display: block;
}

.layer__title {
  font-size: 3rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.layer__desc {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.layer__subtitle {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.layer__text {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  max-width: 600px;
}

/* ==========================================================================
   B2B Form Section
   ========================================================================== */
.b2b-form-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-alt);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-subtitle {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-navy);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

/* Feedback Messages */
.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease forwards;
}
.form-feedback--success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.form-feedback--error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.feedback-icon {
  font-size: 1.25rem;
  font-weight: bold;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loader for button */
.loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-sm);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.logo-img-footer {
  max-height: 70px;
  width: auto;
  /* Koyu lacivert arka planda logonun belirgin olması için,
     eğer logo siyah/lacivert içeriyorsa parlaklık filtresi gerekebilir. */
}

.footer__contact h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.contact-list li svg {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}

.contact-list li a {
  transition: color 0.3s ease;
}

.contact-list li a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* ==========================================================================
   Brand Logos
   ========================================================================== */
.brand-logo {
  max-height: 150px;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background-color: var(--color-gold);
  color: var(--color-navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--color-white);
  color: var(--color-gold);
  transform: translateY(-5px);
}


#brand-falkreen .brand-logo,
#brand-vonkrell .brand-logo,
#brand-steinfur .brand-logo {
  max-height: 190px;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 992px) {
  .hero__title { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero__container {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding-top: var(--space-xl);
  }
  .hero__images {
    height: 40vh;
    min-height: 300px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .burger-menu { display: block; }
  .header__nav { 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: var(--space-md) var(--container-padding);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    display: none; 
  }
  .header__nav.active {
    display: block;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero { padding-top: 60px; }
  .section-title { font-size: 2rem; }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .dropdown__menu {
  left: auto;
  right: 0;
}

html[dir="rtl"] .lang-switcher__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .checkbox-label {
  flex-direction: row-reverse;
}
