/*
Theme Name: YAPI-MAR Teknik Servis
Theme URI: https://yapi-mar.com
Author: YAPI-MAR
Author URI: https://yapi-mar.com
Description: Professional WordPress theme for YAPI-MAR Teknik Servis - 30+ years of technical excellence in HVAC, mechanical, electrical, and elevator services
Version: 1.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yapimar
Tags: business, corporate, responsive, custom-colors, custom-logo
*/

:root {
  --grey-50: #f7f8f9;
  --grey-100: #eef0f3;
  --grey-200: #dde1e7;
  --grey-300: #b8c0cc;
  --grey-400: #8a95a5;
  --navy: #1b2d4f;
  --navy-d: #111e35;
  --navy-l: #243764;
  --orange: #e8711a;
  --orange-l: #f28c3d;
  --ant: #333333;
  --ant-l: #555555;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(27, 45, 79, 0.1);
  --shadow-h: 0 12px 48px rgba(27, 45, 79, 0.18);
  --trans: 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ant);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===================================
   SERVICE ICON ANIMATIONS
   =================================== */

@keyframes rotate-fan {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-fan {
  animation: rotate-fan 3s linear infinite;
}

@keyframes pulse-gear {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.animate-gear {
  animation: pulse-gear 2s ease-in-out infinite;
}

@keyframes slide-door {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
.animate-door {
  animation: slide-door 2s ease-in-out infinite;
}

@keyframes flash-lightning {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}
.animate-lightning {
  animation: flash-lightning 1.5s ease-in-out infinite;
}

@keyframes expand-signal {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}
.animate-signal {
  animation: expand-signal 2s ease-in-out infinite;
}

@keyframes swing-crane {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
.animate-crane {
  animation: swing-crane 3s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes move-elevator {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-elevator {
  animation: move-elevator 2.5s ease-in-out infinite;
}

.service-card:hover .animate-fan,
.service-card:hover .animate-gear,
.service-card:hover .animate-door,
.service-card:hover .animate-lightning,
.service-card:hover .animate-signal,
.service-card:hover .animate-crane,
.service-card:hover .animate-elevator {
  animation-play-state: paused;
}

/* ===================================
   SCROLL REVEAL
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.elementor-editor-active .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* ===================================
   SERVICE CARD CLICKABLE STYLES
   =================================== */
.service-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Hidden SEO text - visible to crawlers, not to users */
.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Service Icon Container */
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-l) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .service-icon {
    width: 64px;
    height: 64px;
  }
}
.service-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover .service-icon::before {
  opacity: 1;
}

/* ===================================
   SERVICE CARD BUTTON GROUP
   =================================== */
.service-card {
  cursor: default;
}
.service-btn-group {
  display: flex !important;
  gap: 10px !important;
  margin-top: 16px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
.btn-teklif {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: transparent !important;
  border: 2px solid #e8711a !important;
  color: #e8711a !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.3s, color 0.3s, transform 0.2s !important;
  line-height: 1.4 !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
.btn-teklif:hover {
  background: #e8711a !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.btn-incele {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #1b2d4f !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  border: 2px solid #1b2d4f !important;
  cursor: pointer !important;
  transition: background 0.3s, color 0.3s, transform 0.2s !important;
  line-height: 1.4 !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}
.btn-incele:hover {
  background: #243764 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.btn-incele svg,
.btn-teklif svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===================================
   SERVICE DETAIL MODAL
   =================================== */
.service-modal-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0;
  background: rgba(11, 22, 44, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.service-modal-overlay.open {
  display: flex !important;
}
.service-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(11, 22, 44, 0.28);
  position: relative;
  animation: modalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
  color: #fff;
  padding: 28px 32px 24px;
  border-radius: 20px 20px 0 0;
  position: relative;
}
.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.modal-header p {
  font-size: 0.9rem;
  opacity: 0.82;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-body {
  padding: 28px 32px 32px;
}
.modal-section {
  margin-bottom: 28px;
}
.modal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section h3 .icon-badge {
  background: linear-gradient(135deg, var(--orange), var(--orange-l));
  color: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.modal-section p,
.modal-section li {
  color: var(--ant-l);
  font-size: 0.92rem;
  line-height: 1.75;
}
.modal-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 520px) {
  .modal-section ul {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px 18px 24px;
  }
  .modal-header {
    padding: 22px 20px 18px;
  }
}
.modal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--grey-50);
  border-radius: 8px;
  padding: 8px 12px;
}
.modal-section ul li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
}
.modal-faq {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grey-200);
}
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--grey-50);
  transition: background 0.2s;
  gap: 10px;
}
.faq-q:hover {
  background: var(--grey-100);
}
.faq-q .faq-icon {
  color: var(--orange);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.active .faq-q .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 12px 16px 16px;
  font-size: 0.88rem;
  color: var(--ant-l);
  line-height: 1.7;
  background: #fff;
}
.faq-item.active .faq-a {
  display: block;
}
.modal-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-cta a {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.modal-cta a:hover {
  background: var(--orange-l);
  transform: translateY(-2px);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .container {
    padding: 0 16px;
  }
}
