/*
Theme Name: Gebze Yangın Tema
Theme URI: https://gebzeyangin.net
Author: Gebze Yangın Algılama Sistemleri
Description: Kurumsal Yangın Algılama Sistemleri Teması
Version: 1.0
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --red:        #CC2222;
  --red-dark:   #991A1A;
  --red-light:  #E63333;
  --gray-900:   #1A1A1A;
  --gray-800:   #2C2C2C;
  --gray-700:   #3E3E3E;
  --gray-500:   #767676;
  --gray-300:   #C8C8C8;
  --gray-100:   #F4F4F4;
  --white:      #FFFFFF;
  --font:       'Barlow', sans-serif;
  --transition: 0.25s ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     4px;
  --container:  1200px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-100);
}

.section--dark {
  background: var(--gray-900);
  color: var(--white);
}

.section__header {
  margin-bottom: 56px;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--gray-500);
}

.section--dark .section__header h2 { color: var(--white); }
.section--dark .section__header p  { color: var(--gray-300); }

/* ============================================
   HEADER
============================================ */
.site-header {
  background: var(--gray-900);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-logo__tagline {
  font-size: 0.72rem;
  color: var(--red-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* NAV */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.site-nav .nav-cta a {
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
}

.site-nav .nav-cta a:hover {
  background: var(--red-dark);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
============================================ */
.hero {
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,34,34,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero__bg-pattern {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204,34,34,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.hero h1 span {
  color: var(--red-light);
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,34,34,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
}

.btn--outline-dark {
  background: transparent;
  color: var(--gray-800);
  border-color: var(--gray-300);
}
.btn--outline-dark:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  background: var(--red);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }

.stat-item__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================
   SERVICE CARDS
============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(204,34,34,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   PRODUCT CARDS
============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 24px;
}

.product-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.product-card__link:hover { gap: 10px; }

/* ============================================
   BRANDS
============================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all var(--transition);
  filter: grayscale(1);
  opacity: 0.65;
}

.brand-card:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.brand-card img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* ============================================
   REFERENCES
============================================ */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reference-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.reference-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.reference-card__logo {
  height: 56px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.reference-card__logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.reference-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.reference-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   BLOG
============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-card__meta span {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card__meta .cat {
  color: var(--red);
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card h3 a:hover { color: var(--red); }

.blog-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
  background: var(--gray-900);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,34,34,0.15) 0%, transparent 60%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.page-hero__breadcrumb a { color: var(--gray-300); }
.page-hero__breadcrumb a:hover { color: var(--red-light); }
.page-hero__breadcrumb span { color: var(--gray-500); }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--gray-300);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* ============================================
   CONTACT
============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: rgba(204,34,34,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-info__text strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-info__text span,
.contact-info__text a {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 600;
}

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

.contact-map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.contact-map iframe {
  width: 100%;
  height: 240px;
  display: block;
  border: none;
}

/* FORM */
.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 28px;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,34,34,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}

.form-notice.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-notice.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 16px 0 24px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--red-light); }

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--gray-500);
  align-items: flex-start;
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  stroke: var(--red-light);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   SINGLE POST / PAGE CONTENT
============================================ */
.post-content {
  max-width: 780px;
  margin: 0 auto;
}

.post-content h2 { margin: 36px 0 16px; }
.post-content h3 { margin: 28px 0 12px; }
.post-content p  { margin-bottom: 20px; line-height: 1.8; }
.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content img {
  border-radius: var(--radius);
  margin: 28px 0;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================
   UTILITY
============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

.divider {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px 0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .brands-grid    { grid-template-columns: repeat(4, 1fr); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  .site-nav       { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--gray-900); padding: 16px; }
  .site-nav.open  { display: block; }
  .site-nav ul    { flex-direction: column; gap: 4px; }
  .nav-toggle     { display: flex; }

  .hero           { padding: 72px 0; min-height: auto; }
  .services-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .brands-grid    { grid-template-columns: repeat(3, 1fr); }
  .references-grid { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .section        { padding: 56px 0; }
}

@media (max-width: 480px) {
  .brands-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: 1fr; }
  .stat-item      { border-right: none; }
  .hero__actions  { flex-direction: column; }
  .btn            { justify-content: center; }
}
