/*
Theme Name: Megapanel Modern
Theme URI: https://megapanel.com.tr
Author: Megapanel
Author URI: https://megapanel.com.tr
Description: Modern, endüstriyel kurumsal tema - Alüminyum Çatı, Cephe, Asma Tavan Sistemleri
Version: 1.0.0
License: GPL v2 or later
Text Domain: megapanel-modern
Domain Path: /languages
Requires PHP: 8.0
Requires at least: 6.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-navy: #001F6B;
  --color-red: #FF1A1A;
  --color-light-gray: #F8F9FA;
  --color-white: #FFFFFF;
  --color-dark-text: #1a1a1a;
  --color-gray-text: #6c757d;
  --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-dark-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  padding-top: 0;
}

#page {
  padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-gray-text);
  font-weight: 400;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-red);
}

/* Header & Navigation */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}

.header-top {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 12px 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.header-top a {
  color: var(--color-white);
  margin: 0 20px;
}

.header-top a:hover {
  color: var(--color-red);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
  min-width: 200px;
}

.logo img {
  max-height: 45px;
  width: auto;
  margin-right: 12px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
}

nav a {
  font-weight: 500;
  color: var(--color-dark-text);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover,
nav a.current {
  color: var(--color-red);
  background-color: rgba(255, 26, 26, 0.05);
}

.cta-button {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #E30000;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-navy);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #001a45 100%);
  color: var(--color-white);
  padding: 140px 2rem 6rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.stat-item {
  border-left: 3px solid var(--color-red);
  padding-left: 1rem;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #E30000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 26, 26, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  padding: 1rem 2rem;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-3px);
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--color-navy);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-red) 100%);
  border-radius: 2px;
}

.section-title p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-light-gray);
  padding: 2rem;
  border-radius: 8px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--color-red);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-gray-text);
  margin-bottom: 1rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-red);
}

/* Testimonials */
.testimonials-section {
  background-color: var(--color-light-gray);
  padding: 4rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.stars {
  color: #FFD700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-gray-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}

.testimonial-company {
  font-size: 0.85rem;
  color: var(--color-gray-text);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  group: 'hover';
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 107, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-light-gray);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.1);
}

/* Footer */
footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-red);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--color-red);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    position: sticky;
  }

  .nav-wrapper {
    padding: 1rem;
  }

  nav ul {
    gap: 0;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    display: none;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: 120px 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.text-navy { color: var(--color-navy); }
.text-red { color: var(--color-red); }
.text-gray { color: var(--color-gray-text); }

.bg-navy { background-color: var(--color-navy); }
.bg-red { background-color: var(--color-red); }
.bg-light { background-color: var(--color-light-gray); }
