/*
Theme Name: NIPC Neftegazservice Bootstrap
Description: Корпоративная WordPress-тема АО «НИПЦ Нефтегазсервис» на Bootstrap 5.3.3.
Version: 4.0
Text Domain: nipc
*/

:root {
    --navy: #0b2341;
    --blue: #1b78a8;
	--orange: #ff6b00;
    --text: #27384b;
    --border: #dbe3e9;
	--white: #ffffff;
	--dark-blue: #2E3F7F;
}

body {
    margin: 0;
	font-family: 'Inter', sans-serif;
	font-optical-sizing: auto;
    font-style: normal;
	color: var(--text);
    line-height: 1.65;
}

.top-company-banner {
	font-family: 'Inter', sans-serif;
	color: var(--white);
    width: 100%;
    text-align: center;
    padding: 6px 0;
    background-color: var(--navy);
	text-transform: none;
    font-weight: 200;
    font-size: 12px;
    box-sizing: border-box;
}

/* Отступ между баннером и шапкой */
.top-company-banner + .site-header {
    margin-top: 0px;
}

.site-header {
	box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
	position: relative; 
	z-index: 1000; 
}

.navbar-brand { margin-right: 40px; }

.navbar-brand img {
    width: auto;
    height: 100px;
	object-fit:  contain;
}

/* Стили для ссылок в главном меню */
.navbar-nav a {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 13px; 		  /*12px 13px*/
    position: relative;           /* важно для позиционирования линии */
    text-decoration: none;        /* убираем стандартное подчёркивание */
    transition: color 0.2s ease;
}

/* Анимация линии */
.navbar-nav a::after {
    content: ' ';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 1.5px;
    background-color: var(--orange);
	transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
    z-index: -1;                  /* линия под текстом, не мешает клику */
}

.navbar-nav a:hover::after,
.navbar-nav a:focus::after {
    width: 85%;                  /* при наведении линия занимает всю ширину */
}

.navbar-nav a:hover,
.navbar-nav a:focus {
    color: var(--navy);
    text-decoration: none;
}

/* Если нужно выделить текущий пункт (активную страницу) */
.navbar-nav .current-menu-item a,
.navbar-nav .current_page_item a {
    color: var(--orange);
    font-weight: 600;
}

.navbar-nav .current-menu-item a::after,
.navbar-nav .current_page_item a::after {
    width: 0%;                  /* у активной страницы линия всегда видна */
}

/* Выпадающие подменю (если будут) */
.dropdown-menu {
    border: 0;
    border-top: 3px solid var(--orange);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(11, 35, 65, .14);
}

.dropdown-item {
    padding: 10px 18px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #eaf3f8;
    color: var(--orange);
}

/*
.page-id-114 .content-area {
	text-transform: uppercase;
	text-align: right;
	font-size: 22px;
    background-image: url('images/bg-contacts.png');
    background-size: fixed;
    background-position: center center;
    background-repeat: no-repeat;
	min-height: 100vh;
    padding: 60px 120px; чтобы контент не прилипал к краям
}
*/

/*
:root {
    --navy: #0b2341;
    --blue: #1b78a8;
    --orange: #ff6b00;
    --text: #27384b;
    --border: #dbe3e9;
}



.site-header { position: relative; z-index: 1000; }
.navbar-brand { margin-right: 40px; }
.navbar-brand img {
    width: 390px;
    height: 120px;
    object-fit: contain;
}

 Главное меню (классическое WP + Bootstrap) 
.navbar-nav .nav-link {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--orange);
	text-decoration: none;
}

 Выпадающее меню Bootstrap 
.dropdown-menu {
    border: 0;
    border-top: 3px solid var(--orange);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(11, 35, 65, .14);
}

.dropdown-item {
    padding: 10px 18px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #eaf3f8;
    color: var(--orange);
}
*/
.hero {
    min-height: 515px;
    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.89) 28%,
            rgba(255,255,255,.30) 57%,
            rgba(255,255,255,.06) 100%
        ),
        url("images/hero-bg.png");
    background-position: center;
    background-size: cover;
}

/*
.min-vh-50 { min-height: 515px; }

.hero h1 {
    color: var(--navy);
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 800;
}
.hero p {
    color: #304257;
    font-size: 20px;
    line-height: 1.55;
}

.btn-warning {
    background-color: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.btn-warning:hover {
    background-color: #e45f00;
    border-color: #e45f00;
    color: #fff;
}
.btn-outline-dark {
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline-dark:hover {
    background-color: var(--navy);
    border-color: var(--navy);
}

.about-section { background: #fff; }
.section-title {
    color: var(--navy);
    font-size: clamp(32px, 3vw, 43px);
}
.section-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    background: var(--orange);
}
.about-text p {
    color: #4c5a6a;
    font-size: 16px;
}

.stats { border-left: 1px solid var(--border); }
.stat {
    min-height: 175px;
    border-right: 1px solid var(--border);
}
.stat-icon {
    height: 46px;
    color: var(--navy);
    font-size: 34px;
    line-height: 46px;
}
.stat-number {
    color: var(--navy);
    font-size: 36px;
    line-height: 1.05;
}
.stat-label {
    color: #263649;
    font-size: 13px;
    line-height: 1.45;
}

.site-footer {
    background: var(--navy);
    color: #fff;
}
.footer-copy { color: #c9d7e3; }
.content-area { min-height: 500px; }
*/

.site-footer {
    background-color: var(--navy);
	color: #ffffff; 
    padding: 20px 0;
    text-align: center;
}

@media (max-width: 1199px) {
    .navbar-brand img { width: 320px; height: 90px; }
    .navbar-nav .nav-link {
        font-size: 11px;
        padding-left: 7px;
        padding-right: 7px;
    }
}

@media (max-width: 991px) {
    .navbar-brand img { width: 320px; height: 82px; }
    .navbar-brand { margin-right: 0; }
    .navbar-nav { padding-top: 15px; }
    .navbar-nav .nav-link { padding: 10px; }
    .hero {
        min-height: 560px;
        background-position: 65% center;
    }
    .min-vh-50 { min-height: 560px; }
    .hero h1 { font-size: clamp(30px, 8vw, 46px); }
    .hero p { font-size: 17px; }
}

@media (max-width: 575px) {
    .navbar-brand img { width: 250px; height: 70px; }
    .hero { min-height: 600px; }
    .min-vh-50 { min-height: 600px; }
    .hero h1 { font-size: 32px; }
    .stats { border-left: 0; }
    .stat { border-bottom: 1px solid var(--border); }
	.site-footer { padding: 12px 0; font-size: 12px;
    }
}
