﻿/* 
 * Arell Alüminyum - Corporate Website Styles
 * Phase 3: 2025 Premium Enterprise Design
 */

:root {
  /* Color Palette - "Global Enterprise" */
  --color-primary: #020b16;
  /* Almost Black Navy */
  --color-primary-light: #111e33;
  --color-secondary: #f0f4f8;
  /* Ultra light grey */
  --color-accent: #c6a469;
  /* Refined Metallic Gold */
  --color-accent-dark: #b08d55;
  --color-text-main: #0f172a;
  /* Slate 900 */
  --color-text-light: #64748b;
  /* Slate 500 */
  --color-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-border: #e2e8f0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Layout */
  --container-width: 1400px;
  /* Wide screen standard */
  --header-height: 100px;

  /* Sizing */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows - "Soft Depth" */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.7;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  max-width: 70ch;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-main);
}

.text-accent {
  color: var(--color-accent);
}

.text-white {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

/* Layout Utilities */
.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  /* 128px standard spacing */
  position: relative;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-dark-gradient {
  background: linear-gradient(135deg, #020b16 0%, #0f2a4a 100%);
  color: var(--color-white);
}

/* Buttons - "Corporate Sharp" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-family: var(--font-display);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(198, 164, 105, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 164, 105, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header.scrolled,
.header.light-bg {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  height: 90px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 44px;
  width: auto;
  transition: var(--transition-normal);
}

.nav-links {
  display: flex;
  gap: 3.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  opacity: 0.9;
}

.header.scrolled .nav-link,
.header.light-bg .nav-link {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.header.scrolled .mobile-toggle,
.header.light-bg .mobile-toggle {
  color: var(--color-primary);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 1000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  list-style: none;
}

.dropdown-menu li a {
  color: #020b16 !important;
  padding: 0.75rem 1.5rem;
  display: block;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #c6a469 !important;
  padding-left: 2rem;
}

/* Hero Section - Option A: Minimalist Premium */
.hero-premium {
  position: relative;
  height: 100vh;
  min-height: 800px;
  width: 100%;
  background-color: var(--color-primary);
  /* Fallback Image */
  background-image: url('../../foto/flayer/291071061_1073991949874463_8655108045151999174_n..webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg,
      rgba(2, 11, 22, 0.95) 0%,
      rgba(2, 11, 22, 0.8) 40%,
      rgba(2, 11, 22, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-right: 2rem;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 2rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards 0.2s;
}

.hero-desc {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards 0.4s;
}

.hero-btn-group {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Detail Hero - "Kibar & Okunaklı" Redesign */
.page-hero {
  position: relative;
  height: 40vh;
  /* Reduced height for elegance */
  min-height: 350px;
  background: linear-gradient(135deg, #020b16 0%, #0f2a4a 100%);
  /* Solid Premium Gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
  /* Header handles its own spacing if fixed, or we pad body */
  padding-top: var(--header-height);
}

/* Subtle abstract pattern overlay */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(198, 164, 105, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  z-index: 1;
}

.page-hero::after {
  display: none;
}

.page-hero-bg {
  display: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.page-hero-content h1 {
  color: var(--color-white) !important;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

.page-hero-content h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1.5rem auto 0;
}

.page-hero-content p.lead {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.5px;
  text-shadow: none;
}

/* Services Layout */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
}

.sidebar-box {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-sm);
  position: sticky;
  top: 120px;
}

.sidebar-menu li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-menu a {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--color-text-main);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--color-accent);
  padding-left: 10px;
}

/* Masonry Grid Premium */
.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
  background-color: var(--color-primary);
  /* Loading placeholder color */
}

.masonry-img {
  width: 100%;
  display: block;
  transition: transform 0.7s var(--transition-fast), opacity 0.5s ease;
}

.masonry-item:hover .masonry-img {
  transform: scale(1.03);
  opacity: 0.9;
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(2, 11, 22, 0.9), transparent);
  color: white;
  opacity: 1;
  /* Always visible for readability as requested */
  transition: padding 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
  padding-bottom: 2.5rem;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-box {
    position: static;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 8rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav-links .nav-link {
    color: var(--color-primary);
    font-size: 1.25rem;
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

/* Skip Navigation Link - Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Improved Footer Contrast */
.footer p,
.footer-links li {
  opacity: 0.85;
}

/* Mobile Dropdown Touch Toggle */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1rem;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-menu li a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
}