/* Підключення шрифтів (приклад) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');


:root {
	--main-dark: #004535;
	--main-light: #99BE84;
	--main-bg: #f8fdf9; /* Дуже світлий відтінок для фону */
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Відступ зверху, щоб контент не ховався під фіксованою навігацією */
    padding-top: 70px; 
}



/* Стилізація кнопки відкриття (на сторінці) */
.btn-trigger {
	background-color: var(--main-light);
	color: var(--main-dark);
	border: 2px solid var(--main-dark);
	font-weight: 600;
	transition: all 0.3s ease;
}
.btn-trigger:hover {
	background-color: var(--main-dark);
	color: white;
}

/* --- Стилізація Модального вікна --- */

/* Заокруглення самого вікна */
.custom-modal-content {
	border: none;
	border-radius: 20px;
	overflow: hidden; /* Щоб шапка не вилазила за кути */
	box-shadow: 0 15px 35px rgba(0, 69, 53, 0.2);
}

/* Шапка вікна */
.custom-modal-header {
	background-color: var(--main-dark);
	color: white;
	border-bottom: 4px solid var(--main-light);
	padding: 20px 30px;
}

.custom-modal-header .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%); /* Робимо хрестик білим */
}

/* Тіло вікна */
.custom-modal-body {
	background-color: var(--main-bg);
	padding: 30px;
}

/* Стилізація полів вводу (Inputs) */
.form-label {
	color: var(--main-dark);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

.form-control {
	border: 2px solid #e1e1e1;
	border-radius: 10px;
	padding: 12px;
	background-color: white;
	transition: all 0.3s;
}

/* Ефект при натисканні на поле (Focus) */
.form-control:focus {
	border-color: var(--main-light);
	box-shadow: 0 0 0 0.25rem rgba(153, 190, 132, 0.25); /* Тінь кольору light-green */
	outline: none;
}

/* Футер вікна */
.modal-footer {
	border-top: none;
	background-color: var(--main-bg);
	padding-bottom: 30px;
	padding-right: 30px;
}

/* Головна кнопка "Надіслати" */
.btn-submit {
	background-color: var(--main-dark);
	color: white;
	padding: 10px 30px;
	border-radius: 50px; /* Овальна кнопка */
	font-weight: bold;
	border: 2px solid var(--main-dark);
	transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
	background-color: var(--main-light);
	color: var(--main-dark);
	border-color: var(--main-light);
	transform: translateY(-2px); /* Легкий підйом кнопки */
}

/* Кнопка "Закрити" */
.btn-cancel {
	color: #666;
	font-weight: 500;
}
.btn-cancel:hover {
	color: var(--main-dark);
}

.bg-top-nav {
	background:#FFF !important;
}

/* --- Блок Header з Parallax --- */
.parallax-header {
    /* Встановлення фонового зображення */
    background-image: url('../img/parallax-bg-4.jpg');

    /* Висота блоку на весь екран */
    height: 100vh; 
    
    /* Parallax ефект */
    background-attachment: fixed;
    background-position: center 10px;
    background-repeat: no-repeat;
    background-size: cover;

    /* Для центрування контенту */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Затемнення для кращої читабельності тексту */
.parallax-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 10, 0.3); /* Чорний з 50% прозорістю */
}

/* Контент всередині хедера */
.header-content {
    position: relative; /* Щоб був поверх затемнення */
    z-index: 1;
    padding: 20px;
	width: 98%;
}

.header-content h1{
	color: #161A18;
	font-weight: 700;
	text-shadow: 1px 1px 1px rgba(235,235,235, 0.3);
}

.header-content p{
	line-height: 36px;
}

.header-content .btn-primary {
    background-color: #99BE84; /* Основний колір кнопки */
	border: none;
	color: #004535;
    padding: 12px 30px;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s;
}

.header-content .btn-primary:hover {
	color: #32423C;
    background-color: #FFB860; /* Колір кнопки при наведенні */
    border-color: #004535;
}

@media (max-width: 768px) {
	.header-content .btn-primary {
		padding: 8px 20px;
		font-size: 14px !important;
	}
	
	.header-content h1{
		margin-top: 250px;
		color: #FFF;
		text-shadow: 1px 1px 10px rgba(35,35,35, 0.9);
	}

	.header-content p{
		color: aliceblue;
		line-height: 36px;
	}
	
	.parallax-header {
		background-position: center top;
		background-image: url('../img/parallax-bg-7.jpg');
	}
}

/* --- Блок Content --- */
#about img {
    max-width: 400px;
    height: auto;
}

#services {
	background: #EBF1EB;
}

.card-img-top {
    height: 270px;
    object-fit: cover; /* Зображення заповнює блок, зберігаючи пропорції */
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); /* Ефект "підняття" картки */
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.c-link {
	font-weight: 700;
	color: #004535;
	transition: color 0.3s;
	cursor: pointer;
}

.c-link:hover {
	color: #FFB860;
}

.c-link i{
	position: relative;
	top: 2px;
		
}



/* --- КЛЮЧОВІ ПРАВИЛА ДЛЯ ПРОКРУТКИ --- */
#certificatesCarousel .carousel-inner {
    overflow: hidden;
}

#certificatesCarousel .row {
    flex-wrap: nowrap;
}
/* ------------------------------------ */

.certificate-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.certificate-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

/* Стилізація кнопок каруселі */
#certificatesCarousel .carousel-control-prev,
#certificatesCarousel .carousel-control-next {
    width: 5%; /* Звужуємо кнопки */
}

#certificatesCarousel .carousel-control-prev-icon,
#certificatesCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Темний напівпрозорий фон */
    border-radius: 50%;
    padding: 1.2rem; /* Збільшуємо розмір іконки */
    background-size: 50% 50%;
}




/* --- Блок Footer --- */
footer a:hover {
    text-decoration: underline !important;
}

.hidden-phone {
    text-decoration: none;
    color: #333;
    border-bottom: 1px dashed #333; /* Пунктир показує інтерактивність */
    cursor: pointer;
    transition: 0.3s;
}

.hidden-phone:hover {
    color: #007bff;
    border-color: #007bff;
}

/* Стиль після відкриття (опціонально) */
.hidden-phone.revealed {
    border-bottom: none;
    color: #28a745;
    font-weight: bold;
}

#contact {
	background: #1B2D27;
}

/* Плавний скрол */
html {
    scroll-behavior: smooth;
}