/*
Theme Name: Kenwoodmongol PD Style
Theme URI: https://kenwoodmongol.mn/
Author: Codex
Description: Upload-ready WordPress homepage theme inspired by a modern technology solutions company layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kenwoodmongol-pd-style
*/

:root{
  --blue:#0066b3;
  --blue-dark:#003b70;
  --blue-deep:#071b35;
  --orange:#f7941d;
  --green:#17a568;
  --text:#1f2937;
  --muted:#697586;
  --line:#e7edf4;
  --soft:#f5f8fc;
  --white:#fff;
  --shadow:0 18px 45px rgba(8,27,53,.10);
  --max:1200px;
  --radius:18px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--text);
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
  background:#fff;
}

a{
  color:inherit;
  text-decoration:none;
}

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

.container{
  width:min(100% - 32px,var(--max));
  margin-inline:auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:999px;
  padding:13px 23px;
  font-weight:800;
  transition:.22s ease;
  box-shadow:0 12px 28px rgba(0,102,179,.18);
}

.btn-primary{
  background:var(--orange);
  color:#fff;
}

.btn-primary:hover,
.btn-blue:hover{
  transform:translateY(-2px);
}

.btn-blue{
  background:var(--blue);
  color:#fff;
}

.btn-light{
  background:#fff;
  color:var(--blue-dark);
  box-shadow:none;
}

.topbar{
  background:var(--blue-deep);
  color:#c9d8ea;
  font-size:13px;
}

.topbar-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:42px;
  flex-wrap:wrap;
}

.topbar-left,
.topbar-right{
  display:flex;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
}

.topbar strong{
  color:#fff;
  font-weight:700;
}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 30px rgba(8,27,53,.04);
}

.header-wrap{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--blue-dark);
  font-size:24px;
  font-weight:900;
  letter-spacing:-.4px;
  white-space:nowrap;
}

.brand-mark{
  width:46px;
  height:46px;
  border-radius:13px;
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
}

.brand small{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.main-nav ul{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  padding:0;
  margin:0;
}

.main-nav li{
  position:relative;
}

.main-nav a{
  display:block;
  padding:30px 14px;
  font-size:14px;
  color:#172033;
  font-weight:800;
}

.main-nav a:hover{
  color:var(--blue);
}

.submenu{
  position:absolute;
  left:0;
  top:100%;
  width:290px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:0 0 14px 14px;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.2s ease;
  overflow:hidden;
}

.main-nav li:hover .submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.submenu a{
  padding:13px 16px;
  border-bottom:1px solid #f1f4f8;
  font-weight:700;
}

.hero{
  position:relative;
  min-height:720px;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(7,27,53,.90),rgba(7,27,53,.62),rgba(7,27,53,.24)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1800&q=85") center/cover no-repeat;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:150px;
  background:linear-gradient(0deg,#fff,rgba(255,255,255,0));
}

.hero-wrap{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 360px;
  gap:42px;
  align-items:end;
  min-height:720px;
  padding:110px 0 100px;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.22);
  color:#d9ecff;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.hero-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:99px;
  background:var(--orange);
}

.hero h1{
  max-width:780px;
  margin:18px 0 16px;
  font-size:64px;
  line-height:1.02;
  letter-spacing:-1.8px;
  font-weight:900;
}

.hero p{
  max-width:690px;
  margin:0 0 28px;
  color:#d8e6f5;
  font-size:18px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-side{
  background:rgba(255,255,255,.95);
  color:var(--text);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero-side-head{
  padding:18px 22px;
  background:var(--orange);
  color:#fff;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.hero-link{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  font-weight:800;
}

.hero-link span{
  color:var(--blue);
}

.section{
  padding:92px 0;
}

.section-soft{
  background:var(--soft);
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:38px;
}

.section-eyebrow{
  color:var(--orange);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.7px;
  margin-bottom:8px;
}

.section-head h2{
  margin:0;
  color:var(--blue-deep);
  font-size:42px;
  line-height:1.1;
  letter-spacing:-.8px;
}

.section-head p{
  max-width:560px;
  margin:10px 0 0;
  color:var(--muted);
}

.project-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.project-tabs span{
  display:inline-flex;
  padding:10px 15px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#4b5565;
  font-size:13px;
  font-weight:800;
}

.project-tabs span:first-child{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.project-card{
  position:relative;
  min-height:380px;
  border-radius:20px;
  overflow:hidden;
  color:#fff;
  background:#123;
  box-shadow:var(--shadow);
}

.project-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(6,18,36,.88));
  z-index:1;
}

.project-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}

.project-body{
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  padding:26px;
}

.project-tag{
  display:inline-flex;
  background:var(--orange);
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:900;
  margin-bottom:12px;
}

.project-body h3{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.18;
}

.project-body p{
  margin:0;
  color:#dce7f3;
  font-size:14px;
}

.stats{
  margin-top:-30px;
  position:relative;
  z-index:2;
}

.stats-panel{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}

.stat{
  padding:34px 24px;
  text-align:center;
  border-right:1px solid var(--line);
}

.stat:last-child{
  border-right:0;
}

.stat strong{
  display:block;
  color:var(--blue);
  font-size:42px;
  line-height:1;
  font-weight:900;
  margin-bottom:8px;
}

.stat span{
  color:var(--muted);
  font-weight:700;
}

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

.solution-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
  min-height:250px;
  box-shadow:0 14px 36px rgba(8,27,53,.06);
  overflow:hidden;
}

.solution-card::after{
  content:"";
  position:absolute;
  right:-36px;
  bottom:-36px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:rgba(0,102,179,.08);
}

.solution-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#e8f3ff;
  color:var(--blue);
  font-size:24px;
  margin-bottom:18px;
}

.solution-card h3{
  margin:0 0 12px;
  color:var(--blue-deep);
  font-size:21px;
}

.solution-card p{
  margin:0 0 18px;
  color:var(--muted);
}

.solution-card a{
  color:var(--blue);
  font-weight:900;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.service-card{
  min-height:210px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:24px 18px;
  text-align:center;
  box-shadow:0 12px 30px rgba(8,27,53,.05);
}

.service-no{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  font-weight:900;
}

.service-card h3{
  font-size:17px;
  line-height:1.25;
  margin:0 0 10px;
  color:var(--blue-deep);
}

.service-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.brands{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}

.brand-box{
  min-height:92px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  display:grid;
  place-items:center;
  color:#7b8796;
  font-weight:900;
  letter-spacing:.4px;
  box-shadow:0 10px 26px rgba(8,27,53,.04);
}

.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.news-card{
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 14px 36px rgba(8,27,53,.06);
}

.news-card img{
  width:100%;
  height:210px;
  object-fit:cover;
}

.news-body{
  padding:22px;
}

.news-meta{
  display:flex;
  gap:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
}

.news-body h3{
  margin:0 0 14px;
  color:var(--blue-deep);
  font-size:21px;
  line-height:1.25;
}

.news-body a{
  color:var(--blue);
  font-weight:900;
}

.contact-cta{
  background:
    linear-gradient(90deg,rgba(0,59,112,.95),rgba(0,102,179,.90)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=85") center/cover no-repeat;
  color:#fff;
  padding:74px 0;
}

.contact-wrap{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:34px;
  align-items:center;
}

.contact-cta h2{
  margin:0 0 12px;
  font-size:42px;
  line-height:1.1;
}

.contact-cta p{
  color:#dbeafe;
  max-width:680px;
}

.contact-card{
  background:#fff;
  color:var(--text);
  border-radius:22px;
  padding:26px;
  box-shadow:var(--shadow);
}

.contact-row{
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.contact-row:last-child{
  border-bottom:0;
}

.contact-row strong{
  display:block;
  color:var(--blue-deep);
  margin-bottom:4px;
}

.site-footer{
  background:#071b35;
  color:#cbd7e7;
  padding:62px 0 22px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr 1.2fr;
  gap:34px;
  margin-bottom:38px;
}

.footer-grid h3{
  margin:0 0 16px;
  color:#fff;
  font-size:18px;
}

.footer-grid p,
.footer-grid li{
  color:#b6c5d8;
  font-size:14px;
}

.footer-grid ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.copyright{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  color:#94a7bd;
  font-size:13px;
}

@media (max-width:1050px){
  .main-nav{
    display:none;
  }

  .hero-wrap,
  .contact-wrap{
    grid-template-columns:1fr;
  }

  .hero-wrap{
    align-items:center;
  }

  .projects-grid,
  .solutions-grid,
  .news-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .services-grid,
  .brands{
    grid-template-columns:repeat(3,1fr);
  }

  .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:720px){
  .topbar-right{
    display:none;
  }

  .header-wrap{
    min-height:72px;
  }

  .brand{
    font-size:19px;
  }

  .header-wrap > .btn{
    display:none;
  }

  .hero,
  .hero-wrap{
    min-height:auto;
  }

  .hero-wrap{
    padding:86px 0 82px;
  }

  .hero h1{
    font-size:40px;
    letter-spacing:-.8px;
  }

  .section{
    padding:66px 0;
  }

  .section-head{
    display:block;
  }

  .section-head h2,
  .contact-cta h2{
    font-size:32px;
  }

  .projects-grid,
  .solutions-grid,
  .news-grid,
  .services-grid,
  .brands,
  .stats-panel,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .stat{
    border-right:0;
    border-bottom:1px solid var(--line);
  }
}

.shop-preview{
  background:#fff;
}

.shop-empty{
  border:1px dashed #b8c6d8;
  border-radius:22px;
  background:#f8fbff;
  padding:34px;
  text-align:center;
}

.shop-empty h3{
  margin:0 0 8px;
  color:var(--blue-deep);
  font-size:24px;
}

.shop-empty p{
  margin:0 auto;
  max-width:620px;
  color:var(--muted);
}

.shop-hero{
  padding:72px 0;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(7,27,53,.94),rgba(0,102,179,.78)),
    url("https://images.unsplash.com/photo-1563013544-824ae1b704d3?auto=format&fit=crop&w=1800&q=85") center/cover no-repeat;
}

.shop-hero h1{
  margin:0 0 10px;
  font-size:48px;
  line-height:1.05;
  letter-spacing:-1px;
}

.shop-hero p{
  margin:0;
  max-width:680px;
  color:#dbeafe;
}

.woocommerce-main .woocommerce,
.shop-preview .woocommerce{
  color:var(--text);
}

.woocommerce ul.products{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin:0;
  padding:0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{
  display:none;
}

.woocommerce ul.products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 36px rgba(8,27,53,.06);
  transition:.22s ease;
}

.woocommerce ul.products li.product:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.woocommerce ul.products li.product a img{
  width:100%;
  aspect-ratio:1 / .78;
  object-fit:cover;
  margin:0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding:18px 18px 6px;
  color:var(--blue-deep);
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}

.woocommerce ul.products li.product .price{
  display:block;
  padding:0 18px 14px;
  color:var(--blue);
  font-size:17px;
  font-weight:900;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  margin:0 18px 20px;
  border-radius:999px;
  background:var(--orange);
  color:#fff;
  font-weight:900;
  border:0;
  padding:12px 18px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{
  background:#e68412;
  color:#fff;
}

.woocommerce div.product{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:42px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary{
  width:auto;
  float:none;
}

.woocommerce div.product .product_title{
  color:var(--blue-deep);
  font-size:38px;
  line-height:1.1;
  margin-bottom:12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:var(--blue);
  font-size:28px;
  font-weight:900;
}

.woocommerce .quantity .qty{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:10px;
}

.woocommerce table.shop_table,
.woocommerce-checkout #payment{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border-top-color:var(--blue);
  background:#f5f8fc;
}

@media (max-width:1050px){
  .woocommerce ul.products{
    grid-template-columns:repeat(2,1fr);
  }

  .woocommerce div.product{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  .shop-hero h1{
    font-size:34px;
  }

  .woocommerce ul.products{
    grid-template-columns:1fr;
  }
}
