/*
Theme Name: Firma TR
Theme URI: https://firma-tr.com
Author: Firma-TR
Description: Türkiye firma rehberi için modern, bağımsız WordPress teması.
Version: 0.6.0
Text Domain: firma-tr
*/
:root{
  --navy:#0d2843;
  --navy-2:#163b5d;
  --gold:#c88c24;
  --gold-2:#e2aa3b;
  --cream:#fff8ed;
  --bg:#ffffff;
  --text:#17283b;
  --muted:#6c7887;
  --line:#e6eaf0;
  --white:#fff;
  --shadow:0 12px 35px rgba(16,35,58,.08);
  --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Segoe UI",Tahoma,Arial,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
svg{width:1em;height:1em;fill:currentColor}
.ft-container{width:min(1180px,calc(100% - 32px));margin-inline:auto}

/* HEADER */
.ft-header-wrap{background:#fff;border-bottom:1px solid #edf0f3;position:relative;z-index:60}
.ft-header{min-height:58px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:26px}
.ft-brand{display:flex;align-items:center;gap:8px;min-width:210px}
.ft-logo-pin{width:29px;height:36px;display:block;flex:0 0 auto}
.ft-brand-copy{line-height:.92;display:flex;flex-direction:column;justify-content:center}
.ft-brand-name{font-size:25px;font-weight:900;letter-spacing:-1.15px;color:var(--navy);white-space:nowrap}
.ft-brand-name span{color:#c88c24}
.ft-brand-tag{font-size:9px;color:#58697a;letter-spacing:.45px;margin-top:5px;white-space:nowrap}
.ft-nav{display:flex;justify-content:center;align-items:center;gap:24px;font-size:12px;font-weight:600}
.ft-nav a{padding:20px 0;position:relative}
.ft-nav a:hover:after,.ft-nav a.current:after{content:"";position:absolute;left:0;right:0;bottom:11px;height:2px;background:var(--gold)}
.ft-nav-search{font-size:18px;display:flex;align-items:center;color:var(--navy)}
.ft-nav-search:after{display:none!important}
.ft-header-actions{display:flex;align-items:center;gap:10px}
.ft-login{background:var(--navy);color:#fff;padding:9px 15px;border-radius:7px;font-size:12px;font-weight:700;box-shadow:0 4px 10px rgba(13,40,67,.10)}
.ft-menu-toggle{display:none;border:0;background:none;font-size:24px;color:var(--navy)}

/* HERO */
.ft-home-hero{
  position:relative;
  min-height:330px;
  background:
    linear-gradient(90deg,rgba(255,249,238,.98) 0%,rgba(255,249,238,.95) 39%,rgba(255,249,238,.45) 58%,rgba(255,249,238,.06) 78%,rgba(255,249,238,0) 100%),
    url("assets/hero-istanbul.jpg") 72% center/cover no-repeat;
  overflow:hidden;
}
.ft-home-hero-inner{padding:32px 0 72px;position:relative;z-index:2}
.ft-eyebrow{font-size:10px;letter-spacing:2.8px;color:#7b8795;font-weight:800}
.ft-home-hero h1{font-size:43px;line-height:1.02;letter-spacing:-1.6px;margin:9px 0 7px;color:var(--navy);max-width:690px}
.ft-home-hero h1 strong{color:var(--gold)}
.ft-home-hero p{font-size:16px;max-width:560px;margin:0 0 18px;color:#263a4f}
.ft-searchbar{max-width:705px;background:#fff;border-radius:11px;box-shadow:0 8px 25px rgba(10,34,58,.12);display:grid;grid-template-columns:1.22fr .86fr auto;padding:6px;gap:5px;border:1px solid rgba(15,36,61,.07)}
.ft-search-field{display:flex;align-items:center;gap:10px;padding:0 12px;border-right:1px solid var(--line)}
.ft-search-field:last-of-type{border-right:0}
.ft-search-field svg{font-size:20px;color:var(--navy)}
.ft-searchbar input,.ft-searchbar select{width:100%;border:0;outline:0;background:transparent;padding:12px 0;color:var(--text);font-size:14px}
.ft-searchbar button{border:0;background:linear-gradient(180deg,#dba33a,#b97b17);color:#fff;font-weight:800;border-radius:8px;padding:0 26px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.ft-popular-search{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:15px;font-size:11px;color:#fff}
.ft-popular-search span{color:#5b6570;font-weight:700}
.ft-popular-search a{background:rgba(18,36,58,.42);backdrop-filter:blur(6px);padding:6px 10px;border-radius:999px}

/* STATS */
.ft-stat-band{margin-top:-34px;position:relative;z-index:10}
.ft-stat-card{background:#fff;border-radius:13px;box-shadow:0 13px 28px rgba(12,38,65,.11);display:grid;grid-template-columns:repeat(4,1fr);padding:13px 16px;border:1px solid #edf0f3}
.ft-stat-item{display:flex;align-items:center;justify-content:center;gap:14px;padding:5px 18px;border-right:1px solid var(--line)}
.ft-stat-item:last-child{border-right:0}
.ft-stat-icon{width:45px;height:45px;border-radius:50%;background:#fff7e7;color:var(--gold);display:grid;place-items:center;font-size:22px}
.ft-stat-num{font-weight:900;font-size:20px;color:var(--navy);line-height:1.1}
.ft-stat-label{font-size:12px;color:var(--muted);margin-top:3px}

/* SECTIONS */
.ft-section{padding:28px 0;background:#fff}
.ft-section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}
.ft-section-head h2{font-size:22px;line-height:1.1;margin:0 0 4px;color:var(--navy);font-weight:800}
.ft-section-head p{font-size:13px;margin:0;color:var(--muted)}
.ft-section-link{font-size:12px;font-weight:800;color:var(--navy);border-bottom:1px solid #aeb8c3;padding-bottom:3px}

/* CATEGORY CARDS */
.ft-category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.ft-category-card{background:#fff;border:1px solid #e0e5eb;border-radius:8px;min-height:110px;padding:16px 10px 12px;text-align:center;transition:.2s;box-shadow:0 2px 8px rgba(12,35,58,.018)}
.ft-category-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d7dde5}
.ft-category-icon{height:37px;display:grid;place-items:center;color:var(--gold);font-size:32px;margin-bottom:7px}
.ft-category-title{font-weight:800;font-size:13px;color:var(--navy)}
.ft-category-count{font-size:10px;color:#8a96a4;margin-top:6px}

/* CITIES */
.ft-city-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.ft-city-card{background:#fff;border:1px solid #e0e5eb;border-radius:7px;overflow:hidden}
.ft-city-photo{aspect-ratio:1.4/1;background:#dfe5ec;overflow:hidden}
.ft-city-photo img{width:100%;height:100%;object-fit:cover}
.ft-city-body{padding:9px 10px}
.ft-city-name{font-weight:800;font-size:12px;color:var(--navy)}
.ft-city-count{font-size:10px;color:#8b96a4;margin-top:4px}

/* FEATURED */
.ft-featured-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ft-firm-card{background:#fff;border:1px solid #dfe5eb;border-radius:8px;overflow:hidden;position:relative;box-shadow:0 2px 8px rgba(14,38,63,.025)}
.ft-firm-photo{aspect-ratio:1.9/1;overflow:hidden;background:#e7ebef}
.ft-firm-photo img{width:100%;height:100%;object-fit:cover}
.ft-rating{position:absolute;right:9px;top:8px;background:#f2c24a;color:#17283b;border-radius:999px;padding:4px 8px;font-weight:800;font-size:11px}
.ft-firm-body{padding:11px 12px 13px}
.ft-firm-title{font-weight:800;font-size:14px;color:var(--navy)}
.ft-firm-meta{font-size:10px;color:#7d8996;margin:6px 0}
.ft-firm-desc{font-size:11px;color:#677482;min-height:36px}
.ft-firm-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
.ft-firm-actions a{border-radius:7px;padding:8px 9px;text-align:center;font-size:11px;font-weight:800;background:#f0f2f4}
.ft-firm-actions a:last-child{background:var(--navy);color:#fff}

/* CTA */
.ft-cta{padding:16px 0 28px}
.ft-cta-box{background:linear-gradient(100deg,#0b243d,#123a5c);border-radius:8px;color:#fff;padding:17px 22px;display:grid;grid-template-columns:1.3fr 1fr auto;gap:20px;align-items:center}
.ft-cta-title{font-size:18px;font-weight:900}
.ft-cta-title span{color:#e2aa3b}
.ft-cta-sub{font-size:12px;color:#cfdae6;margin-top:3px}
.ft-cta-features{display:flex;gap:18px;font-size:11px;color:#d7e0e9}
.ft-cta-button{background:linear-gradient(180deg,#e3aa3d,#bd8119);color:#10273e;border-radius:7px;padding:12px 22px;font-weight:900;font-size:12px}

/* INTERNAL PAGES */
.ft-location-hero{background:linear-gradient(120deg,#0b2a4a,#1c5f8f);color:#fff;padding:45px 0}
.ft-location-hero h1{font-size:38px;margin:0 0 8px}
.ft-location-hero p{margin:0;color:#d9e6f2}
.ft-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ft-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ft-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.ft-card-body{padding:17px}
.ft-cat-card{display:block;padding:19px;min-height:135px}
.ft-cat-icon{width:44px;height:44px;border-radius:12px;background:#fff2c9;display:grid;place-items:center;color:var(--gold);font-size:22px;margin-bottom:12px}
.ft-count,.ft-meta{color:var(--muted);font-size:13px}
.ft-badge{display:inline-flex;background:#edf7ef;color:#237944;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}
.ft-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;padding-top:22px}
.ft-detail-main,.ft-sidebar-box{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.ft-detail-main{padding:24px}
.ft-sidebar-box{padding:18px;margin-bottom:14px}
.ft-detail-title{font-size:34px;margin:6px 0 8px;color:var(--navy)}
.ft-contact-row{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.ft-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:9px;font-weight:800;font-size:13px;border:0}
.ft-btn-primary{background:var(--gold);color:#fff}
.ft-btn-dark{background:var(--navy);color:#fff}
.ft-map-placeholder{min-height:220px;border-radius:12px;background:#eef3f7;border:1px dashed #b9c5d1;display:grid;place-items:center;padding:20px;text-align:center}
.ft-breadcrumb{font-size:12px;color:#798694;margin:14px 0}
.ft-empty{background:#fff;border:1px dashed #cbd4de;border-radius:12px;padding:28px;text-align:center}

/* FOOTER */
.ft-footer{background:#0b243d;color:#cdd8e4;padding:34px 0 14px;margin-top:28px}
.ft-footer-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr .9fr;gap:30px}
.ft-footer-title{color:#fff;font-weight:900;margin-bottom:8px}
.ft-footer p,.ft-footer li{font-size:11px;line-height:1.8}
.ft-footer ul{list-style:none;padding:0;margin:0}
.ft-footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:24px;padding-top:12px;font-size:10px;color:#99aabb}

/* RESPONSIVE */
@media(max-width:1000px){
  .ft-category-grid,.ft-city-grid{grid-template-columns:repeat(4,1fr)}
  .ft-stat-card{grid-template-columns:repeat(2,1fr)}
  .ft-stat-item:nth-child(2){border-right:0}
  .ft-stat-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .ft-featured-grid{grid-template-columns:repeat(2,1fr)}
  .ft-nav{display:none}
  .ft-menu-toggle{display:block}
}
@media(max-width:760px){
  .ft-header{grid-template-columns:1fr auto}
  .ft-header-actions .ft-login{display:none}
  .ft-brand-name{font-size:22px}
  .ft-brand-tag{font-size:8px}
  .ft-home-hero{min-height:auto;background-position:62% center}
  .ft-home-hero-inner{padding:38px 0 74px}
  .ft-home-hero h1{font-size:36px;max-width:390px}
  .ft-home-hero p{font-size:15px;max-width:360px}
  .ft-searchbar{grid-template-columns:1fr;padding:8px;max-width:100%}
  .ft-search-field{border-right:0;border-bottom:1px solid var(--line)}
  .ft-searchbar button{padding:13px}
  .ft-popular-search{display:none}
  .ft-stat-band{margin-top:-35px}
  .ft-stat-card{grid-template-columns:repeat(2,1fr);padding:10px}
  .ft-stat-item{padding:10px 5px;gap:8px}
  .ft-stat-icon{width:38px;height:38px;font-size:18px}
  .ft-stat-num{font-size:17px}
  .ft-category-grid{grid-template-columns:repeat(3,1fr)}
  .ft-city-grid{grid-template-columns:repeat(2,1fr)}
  .ft-featured-grid{grid-template-columns:1fr}
  .ft-cta-box{grid-template-columns:1fr}
  .ft-cta-features{flex-wrap:wrap}
  .ft-grid,.ft-grid-3{grid-template-columns:1fr}
  .ft-detail-layout{grid-template-columns:1fr}
  .ft-footer-grid{grid-template-columns:1fr 1fr}
}
