/* ==========================================================================
   Gündoğdu Polimer Design System & Stylesheet
   Created with modern, premium aesthetics & strict 8px layout rules.
   ========================================================================== */

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

/* --- Custom Variables (Design Tokens) --- */
:root {
  /* Brand Palette */
  --primary-color: #0f2b5c;      /* Navy Blue - Core brand color */
  --primary-dark: #071733;       /* Deeper shade for high contrast/hover */
  --primary-light: #183e7e;      /* Lighter shade for gradients/borders */
  --accent-color: #e02e2e;       /* Crimson Red - Precision accent */
  --accent-hover: #b81d1d;       /* Darker red for active/hover */
  --secondary-color: #4a90e2;    /* Electric Blue from logo */
  
  /* Neutral Palette */
  --neutral-bg-light: #f8fafc;   /* Soft slate off-white */
  --neutral-bg-dark: #090e18;    /* Dark space for footer/hero variants */
  --neutral-card-bg: #ffffff;    /* Card background */
  --neutral-border: #e2e8f0;     /* Border gray */
  --neutral-text-main: #1e293b;  /* Slate 800 - High legibility */
  --neutral-text-muted: #64748b; /* Slate 500 - Auxiliary text */
  
  /* 8px Spacing System */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Typography Sizing & Weight */
  --font-headings: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-md: 1.125rem;  /* 18px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */
  --text-2xl: 2rem;     /* 32px */
  --text-3xl: 2.75rem;  /* 44px */
  --text-4xl: 3.5rem;   /* 56px */

  /* Shadows derived from Brand Navy (no pure black/gray) */
  --shadow-sm: 0 2px 4px rgba(15, 43, 92, 0.05);
  --shadow-md: 0 8px 16px rgba(15, 43, 92, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 43, 92, 0.12);
  --shadow-accent: 0 8px 20px rgba(224, 46, 46, 0.2);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --border-width: 1px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Resets & Global Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--neutral-text-main);
  background-color: var(--neutral-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- Focus Outline Accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  position: relative;
}

/* Elegant subtitle/accent line on Section Headers */
.section-title {
  margin-bottom: var(--space-6);
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background-color: var(--accent-color);
  margin-top: var(--space-2);
  border-radius: 2px;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-2);
  color: var(--neutral-text-muted);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-12) 0;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

/* Responsive Grid Breakpoints */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Broken/Asymmetric Grid Layouts */
.asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 1024px) {
  .asymmetric-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .asymmetric-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* --- Navigation / Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid var(--neutral-border);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-headings);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Active State for Mobile Toggle */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background-color: var(--neutral-card-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  transition: left var(--transition-normal);
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: var(--space-4);
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-headings);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-color);
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  background-image: url('../images/hero2.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 1;
  background-repeat: no-repeat;
  padding: var(--space-12) 0 var(--space-8) 0;
  min-height: calc(85vh - 80px);
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    background-position: center right;
  }
}

.hero-content {
  max-width: 580px;
  background-color: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 43, 92, 0.1);
  box-shadow: var(--shadow-lg);
}

.hero-subtitle {
  font-family: var(--font-headings);
  font-size: var(--text-sm);
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: var(--text-3xl);
  color: var(--primary-color);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

.hero-desc {
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
}

/* --- Interactive Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 43, 92, 0.15);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #ffffff;
  border: 1px solid var(--accent-color);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --- Hero Image Illustration Area --- */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  z-index: -1;
  opacity: 0.4;
}

/* --- Custom Cards System --- */
.card {
  background-color: var(--neutral-card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: var(--border-width) solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Visual element derived from brand color */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.8;
}

.card-accent::before {
  background-color: var(--accent-color);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  color: var(--accent-color);
}

/* --- Product Sections & Filter styling --- */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--neutral-border);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: var(--neutral-bg-light); */
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  height: 160px;
}

.product-image-container img, 
.product-image-container svg {
  max-height: 120px;
  transition: transform var(--transition-normal);
  border-radius: 12px 12px;
}

.product-card:hover .product-image-container img,
.product-card:hover .product-image-container svg {
  transform: scale(1.08);
}

.product-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(15, 43, 92, 0.08);
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.product-spec-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--neutral-border);
}

.product-spec-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

.product-spec-table td:last-child {
  text-align: right;
}

/* --- Features / Value Prop List --- */
.feat-list {
  list-style: none;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.feat-icon-svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* --- Interactive Contact Form --- */
.contact-grid {
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-card {
  padding: var(--space-4);
}

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

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-1);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--neutral-border);
  background-color: var(--neutral-bg-light);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Map Embed container */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-width) solid var(--neutral-border);
  margin-top: var(--space-3);
}

/* --- Footer --- */
.footer {
  background-color: var(--neutral-bg-dark);
  color: #ffffff;
  padding: var(--space-8) 0 var(--space-4) 0;
  border-top: 3px solid var(--accent-color);
}

.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
  }
}

.footer-logo {
  height: 50px;
  margin-bottom: var(--space-2);
  filter: brightness(0) invert(1); /* Invert logo for dark background */
}

.footer-heading {
  color: #ffffff;
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-xs);
  color: #94a3b8;
}

/* --- Section Dividers / Design Accents --- */
.accent-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  width: 100%;
}

/* --- Inner Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: var(--space-8) 0;
  position: relative;
}

.page-header h1 {
  color: #ffffff;
}

.page-header p {
  color: #cbd5e1;
  margin-top: var(--space-1);
}

/* Interactive Accordions for FAQs or details */
.accordion {
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  margin-bottom: var(--space-2);
}

.accordion-header {
  padding: 16px 20px;
  font-family: var(--font-headings);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  padding: 0 20px 16px 20px;
  display: none;
}

.accordion.open .accordion-content {
  display: block;
}

/* --- Statistics Counter Block (Premium aesthetic) --- */
.stat-box {
  text-align: center;
  padding: var(--space-3);
  border-top: 4px solid var(--primary-color);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
}
