/*
Theme Name: Yasin Telecom Theme
Theme URI: https://yasintelecom.store
Author: Yasin Telecom
Author URI: https://yasintelecom.store
Description: Custom WordPress theme for Yasin Telecom.
Version: 1.0.0
Requires at least: 6.0
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: yasintelecom
Tags: e-commerce, electronics, responsive, custom-logo, custom-menu, featured-images
*/

:root {
  --yt-primary: #0F172A;
  --yt-accent: #2563EB;
  --yt-bg: #F8FAFC;
  --yt-text: #1E293B;
  --yt-muted: #64748B;
  --yt-border: #E2E8F0;
  --yt-white: #FFFFFF;
  --yt-radius: 14px;
  --yt-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --yt-container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--yt-bg);
  color: var(--yt-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--yt-primary);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.yt-container {
  width: 100%;
  max-width: var(--yt-container);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  background: var(--yt-white); padding: 10px 16px; border-radius: 8px;
  width: auto; height: auto; clip: auto;
}

/* ---------- Buttons ---------- */
.yt-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--yt-accent);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.yt-btn:hover { background: #1D4ED8; text-decoration: none; transform: translateY(-1px); }
.yt-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .35);
}
.yt-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.yt-btn--dark { background: var(--yt-primary); }
.yt-btn--dark:hover { background: #1e293b; }

/* ---------- Top bar ---------- */
.yt-topbar {
  background: var(--yt-primary);
  color: #CBD5E1;
  font-size: .85rem;
}
.yt-topbar .yt-container {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.yt-topbar a { color: #fff; }
.yt-topbar__phone { font-weight: 600; }

/* ---------- Header ---------- */
.yt-header {
  background: var(--yt-white);
  border-bottom: 1px solid var(--yt-border);
  position: sticky; top: 0; z-index: 50;
}
.yt-header__inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 14px; padding-bottom: 14px;
  flex-wrap: wrap;
}
.yt-brand { display: flex; align-items: center; gap: 10px; }
.yt-brand__title {
  font-size: 1.35rem; font-weight: 800; color: var(--yt-primary);
  margin: 0; letter-spacing: -0.03em;
}
.yt-brand__title a { color: inherit; }
.yt-brand__tagline { margin: 0; font-size: .78rem; color: var(--yt-muted); }

.yt-nav { margin-left: auto; }
.yt-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.yt-nav li { position: relative; }
.yt-nav a { color: var(--yt-primary); font-weight: 600; font-size: .95rem; }
.yt-nav a:hover { color: var(--yt-accent); text-decoration: none; }
.yt-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--yt-border); border-radius: 10px;
  box-shadow: var(--yt-shadow); padding: 10px; flex-direction: column; gap: 8px;
}
.yt-nav li:hover > .sub-menu, .yt-nav li:focus-within > .sub-menu { display: flex; }

.yt-search form { display: flex; align-items: center; }
.yt-search input[type="search"] {
  border: 1px solid var(--yt-border); border-radius: 999px 0 0 999px;
  padding: 9px 14px; min-width: 180px; font: inherit; outline: none;
}
.yt-search input[type="search"]:focus { border-color: var(--yt-accent); }
.yt-search button {
  border: 1px solid var(--yt-accent); background: var(--yt-accent); color: #fff;
  padding: 9px 16px; border-radius: 0 999px 999px 0; cursor: pointer; font: inherit;
}

.yt-menu-toggle {
  display: none; background: var(--yt-primary); color: #fff; border: 0;
  border-radius: 8px; padding: 9px 14px; cursor: pointer; font: inherit;
}

/* ---------- Hero ---------- */
.yt-hero {
  background: linear-gradient(135deg, #0F172A 0%, #172554 55%, #2563EB 130%);
  color: #fff; padding: 80px 0;
}
.yt-hero h1 { color: #fff; }
.yt-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.yt-hero__eyebrow {
  display: inline-block; background: rgba(37, 99, 235, .25);
  border: 1px solid rgba(148, 163, 184, .35);
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.yt-hero p.yt-hero__lead { color: #CBD5E1; font-size: 1.06rem; max-width: 46ch; }
.yt-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.yt-hero__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 20px; padding: 26px; backdrop-filter: blur(6px);
}
.yt-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.yt-hero__stat strong { display: block; font-size: 1.6rem; color: #fff; }
.yt-hero__stat span { font-size: .85rem; color: #94A3B8; }

/* ---------- Sections ---------- */
.yt-section { padding: 68px 0; }
.yt-section--alt { background: #fff; }
.yt-section__head { max-width: 640px; margin-bottom: 34px; }
.yt-section__head p { color: var(--yt-muted); margin: 0; }

.yt-grid { display: grid; gap: 22px; }
.yt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.yt-grid--4 { grid-template-columns: repeat(4, 1fr); }

.yt-card {
  background: #fff; border: 1px solid var(--yt-border); border-radius: var(--yt-radius);
  padding: 24px; box-shadow: var(--yt-shadow); transition: transform .18s ease;
}
.yt-card:hover { transform: translateY(-3px); }
.yt-card h3 { margin-bottom: .35em; }
.yt-card p { margin: 0; color: var(--yt-muted); font-size: .95rem; }
.yt-card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(37, 99, 235, .1); color: var(--yt-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
}

/* ---------- Posts ---------- */
.yt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 48px 0; }
.yt-layout--full { grid-template-columns: minmax(0, 1fr); }

.yt-post {
  background: #fff; border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius); overflow: hidden; margin-bottom: 26px;
}
.yt-post__thumb img { width: 100%; object-fit: cover; }
.yt-post__body { padding: 24px; }
.yt-post__meta { font-size: .82rem; color: var(--yt-muted); margin-bottom: 10px; }
.yt-post__title { margin: 0 0 .5em; font-size: 1.4rem; }
.yt-post__title a { color: var(--yt-primary); }
.yt-post__title a:hover { color: var(--yt-accent); text-decoration: none; }

.yt-entry-content { line-height: 1.8; }
.yt-entry-content blockquote {
  border-left: 4px solid var(--yt-accent); margin: 24px 0; padding: 6px 20px; color: var(--yt-muted);
}
.yt-entry-content img { border-radius: 10px; }

.yt-sidebar .widget {
  background: #fff; border: 1px solid var(--yt-border); border-radius: var(--yt-radius);
  padding: 20px; margin-bottom: 20px;
}
.yt-sidebar .widget-title { font-size: 1.05rem; margin-bottom: .6em; }
.yt-sidebar ul { list-style: none; margin: 0; padding: 0; }
.yt-sidebar li { padding: 6px 0; border-bottom: 1px dashed var(--yt-border); }
.yt-sidebar li:last-child { border-bottom: 0; }

.yt-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.yt-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  background: #fff; border: 1px solid var(--yt-border); color: var(--yt-primary);
}
.yt-pagination .page-numbers.current { background: var(--yt-accent); color: #fff; border-color: var(--yt-accent); }

.yt-page-header { background: #fff; border-bottom: 1px solid var(--yt-border); padding: 46px 0; }
.yt-page-header p { margin: 0; color: var(--yt-muted); }

/* ---------- Footer ---------- */
.yt-footer { background: var(--yt-primary); color: #CBD5E1; padding-top: 56px; margin-top: 40px; }
.yt-footer h3, .yt-footer .widget-title { color: #fff; font-size: 1.05rem; }
.yt-footer a { color: #E2E8F0; }
.yt-footer a:hover { color: #fff; }
.yt-footer__widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 40px; }
.yt-footer ul { list-style: none; margin: 0; padding: 0; }
.yt-footer li { padding: 5px 0; }

.yt-legal {
  border-top: 1px solid rgba(148, 163, 184, .25);
  padding: 30px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.yt-legal dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .92rem; }
.yt-legal dt { color: #94A3B8; }
.yt-legal dd { margin: 0; color: #fff; }
.yt-legal__note { font-size: .88rem; color: #94A3B8; margin: 0; }

.yt-copyright {
  border-top: 1px solid rgba(148, 163, 184, .25);
  padding: 18px 0; font-size: .85rem; color: #94A3B8;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Comments / forms ---------- */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--yt-border);
  border-radius: 10px; font: inherit; margin-bottom: 12px;
}
.comment-list { list-style: none; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .yt-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .yt-hero__grid { grid-template-columns: 1fr; }
  .yt-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 782px) {
  .yt-grid--3, .yt-footer__widgets { grid-template-columns: 1fr; }
  .yt-legal { grid-template-columns: 1fr; }
  .yt-menu-toggle { display: inline-block; margin-left: auto; }
  .yt-nav { flex-basis: 100%; margin-left: 0; display: none; }
  .yt-nav.is-open { display: block; }
  .yt-nav ul { flex-direction: column; gap: 10px; }
  .yt-nav .sub-menu { position: static; display: flex; box-shadow: none; }
  .yt-search { flex-basis: 100%; }
  .yt-search input[type="search"] { flex: 1; min-width: 0; }
  .yt-hero { padding: 56px 0; }
}
