/*
Theme Name: VigilTech
Theme URI: https://vigiltech.com.tr
Author: VigilTech
Author URI: https://vigiltech.com.tr
Description: Güvenlik kameraları ve CCTV sistemleri için profesyonel WordPress teması. Mobil uyumlu, hızlı ve modern tasarım.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vigiltech
Tags: business, one-page, responsive, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* ── CSS VARIABLES ── */
:root {
  --bg: #F0F4F8;
  --white: #FFFFFF;
  --dark: #0D2137;
  --mid: #4A6580;
  --accent: #1A5FA8;
  --accent-light: #E8F0F9;
  --border: #CBD8E6;
  --green: #1B6B3A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; font-weight: 300; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: 15px; font-weight: 500; }
p  { font-size: 15px; color: var(--mid); line-height: 1.7; font-weight: 300; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: white; border: none;
  padding: 13px 28px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #1450A0; transform: translateY(-1px); color: white; }

.btn-outline {
  background: transparent; color: white;
  border: 0.5px solid rgba(255,255,255,0.25);
  padding: 13px 28px; border-radius: 8px; font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); color: white; }

/* ── NAVIGATION ── */
.site-header {
  background: var(--dark);
  height: 66px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .custom-logo { height: 44px; width: auto; display: block; }
.site-branding .custom-logo-link { display: flex; align-items: center; }
.site-branding .logo-mark {
  width: 30px; height: 30px; background: var(--accent);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.site-branding:hover .logo-mark { transform: rotate(15deg) scale(1.1); }
.site-branding .logo-mark svg { width: 17px; height: 17px; fill: white; }
.site-branding .site-title { font-size: 15px; font-weight: 500; color: white; letter-spacing: -0.3px; }

.main-navigation ul { display: flex; gap: 4px; }
.main-navigation a {
  font-size: 14px; color: rgba(255,255,255,0.6);
  padding: 8px 14px; border-radius: 6px; display: block;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.main-navigation a::after {
  content: ''; position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 1.5px; background: var(--accent);
  border-radius: 2px; transition: transform 0.25s ease;
}
.main-navigation a:hover { color: white; background: rgba(255,255,255,0.07); }
.main-navigation a:hover::after { transform: translateX(-50%) scaleX(1); }

.header-cta {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 9px 22px; border-radius: 6px; font-size: 13px; font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.header-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: white; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: absolute; top: 66px; left: 0; right: 0;
  background: var(--dark); border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px; z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.7); font-size: 15px; padding: 12px 16px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.mobile-menu a:hover { background: rgba(255,255,255,0.07); color: white; }
.mobile-menu .mob-cta { margin-top: 8px; background: var(--accent); color: white; border: none; padding: 13px; border-radius: 8px; font-size: 14px; font-weight: 500; width: 100%; }

/* ── HERO ── */
.hero-section {
  background: var(--dark);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  opacity: 0.04; font-size: 280px; color: white; font-weight: 700;
  letter-spacing: -10px; user-select: none; pointer-events: none;
}
.hero-inner { max-width: 600px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: rgba(255,255,255,0.5); border: 0.5px solid rgba(255,255,255,0.15);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
  font-family: 'DM Mono', monospace;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #4CAF7D; }
.hero-section h1 { color: white; margin-bottom: 20px; }
.hero-section h1 strong { font-weight: 500; color: #7BBFFF; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 460px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--accent);
  padding: 20px 48px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: white; }
.trust-item svg { width: 18px; height: 18px; opacity: 0.8; fill: none; stroke: white; stroke-width: 1.5; }
.trust-item span { font-size: 13px; opacity: 0.9; }

/* ── STATS ── */
.stats-section { display: flex; background: var(--white); border-bottom: 0.5px solid var(--border); }
.stat-item { flex: 1; padding: 32px 40px; border-right: 0.5px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 34px; font-weight: 300; letter-spacing: -1.5px; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--mid); margin-top: 4px; }

/* ── SERVICES ── */
.services-section { padding: 72px 0; }
.section-label { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--mid); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -1px; color: var(--dark); margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,33,55,0.08); border-color: #A8C0D8; }
.service-icon {
  width: 44px; height: 44px; background: var(--accent-light);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background 0.2s;
}
.service-card:hover .service-icon { background: #D0E4F5; }
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 13px; }

/* ── WHY ── */
.why-section { padding: 72px 0; background: var(--white); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-left h2 { margin-bottom: 16px; }
.why-left p { margin-bottom: 28px; }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { font-size: 14px; color: var(--mid); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.checklist li svg { width: 17px; height: 17px; stroke: var(--green); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }

/* ── FORM ── */
.contact-form-wrap {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.form-title { font-size: 16px; font-weight: 500; color: var(--dark); margin-bottom: 4px; }
.form-subtitle { font-size: 13px; color: var(--mid); margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-label { font-size: 11px; color: var(--mid); font-family: 'DM Mono', monospace; letter-spacing: 0.5px; display: block; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea,
.wpcf7-text,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 11px 14px; font-size: 14px;
  color: var(--dark); font-family: inherit; width: 100%;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: none; height: 90px; }
.wpcf7-submit { background: var(--accent); color: white; border: none; padding: 13px 28px; border-radius: 8px; font-size: 14px; font-weight: 500; width: 100%; margin-top: 4px; transition: background 0.2s; }
.wpcf7-submit:hover { background: #1450A0; }

/* ── GUARANTEE ── */
.guarantee-bar {
  background: var(--accent-light); border-top: 0.5px solid var(--border);
  padding: 24px 48px; display: flex; gap: 32px; flex-wrap: wrap;
}
.guarantee-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--accent); }
.guarantee-item svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

/* ── BRANDS ── */
.brands-section {
  padding: 32px 48px; border-bottom: 0.5px solid var(--border);
  background: var(--bg); display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.brands-label { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--mid); letter-spacing: 1px; }
.brand-list { display: flex; gap: 28px; flex-wrap: wrap; }
.brand-item { font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--mid); opacity: 0.6; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark); padding: 44px 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 500; color: white; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-nav a:hover { color: white; }

/* ── CONTACT FORM 7 ── */
.wpcf7 { width: 100%; }
.wpcf7 p { margin-bottom: 14px; color: var(--dark); }
.wpcf7 label { font-size: 11px; color: var(--mid); font-family: 'DM Mono', monospace; letter-spacing: 0.5px; display: block; margin-bottom: 6px; text-transform: uppercase; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,95,168,0.1);
}
.wpcf7 textarea { resize: none; height: 100px; }
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover { background: #1450A0; transform: translateY(-1px); }
.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* CF7 mesajları */
.wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: none !important;
}
.wpcf7-mail-sent-ok {
    background: #EAF4EE !important;
    color: #1B6B3A !important;
    border-left: 3px solid #1B6B3A !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    border-left: 3px solid #B91C1C !important;
}
.wpcf7-not-valid-tip {
    font-size: 12px !important;
    color: #B91C1C !important;
    margin-top: 4px !important;
}
.wpcf7 .wpcf7-not-valid {
    border-color: #B91C1C !important;
}

/* ── WORDPRESS CORE ── */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.skip-link { position: absolute; top: -9999px; }
.skip-link:focus { top: 0; left: 0; background: var(--accent); color: white; padding: 8px 16px; z-index: 9999; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .main-navigation, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero-section { padding: 56px 0 48px; }
  .hero-bg-text { font-size: 120px; right: -10px; }
  .hero-section h1 { font-size: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; text-align: center; }
  .trust-bar { padding: 16px 20px; justify-content: flex-start; gap: 10px; }
  .stats-section { display: grid; grid-template-columns: 1fr 1fr; }
  .stat-item { border-bottom: 0.5px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 26px; }
  .stat-item { padding: 20px; }
  .services-section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-section { padding: 48px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .guarantee-bar { padding: 20px; gap: 16px; }
  .brands-section { padding: 24px 20px; }
  .site-footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .trust-bar { flex-direction: column; }
}
