/*

Chvátal Stavby — stavbychvatal.cz
Redesign: Barlow Condensed + Nunito Sans, dark footer, stats section, scroll reveal

*/


/*---------------------------------------
  CUSTOM PROPERTIES
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --cream-color:                  #F5F1E8;
  --primary-color:                #C8860A;
  --primary-light:                #E8A828;
  --secondary-color:              #1E2B3C;
  --section-bg-color:             #F5F1E8;
  --dark-color:                   #0F1A27;
  --p-color:                      #4A5568;

  --body-font-family:             'Nunito Sans', 'DM Sans', sans-serif;
  --heading-font-family:          'Barlow Condensed', sans-serif;

  --h1-font-size:                 72px;
  --h2-font-size:                 50px;
  --h3-font-size:                 36px;
  --h4-font-size:                 28px;
  --h5-font-size:                 22px;
  --h6-font-size:                 18px;
  --p-font-size:                  17px;
  --menu-font-size:               13px;
  --copyright-text-font-size:     15px;

  --font-weight-normal:           400;
  --font-weight-medium:           600;
  --font-weight-bold:             700;
}

body {
  background: var(--white-color);
  font-family: var(--body-font-family);
}


/*---------------------------------------
  TYPOGRAPHY
-----------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family);
  color: var(--dark-color);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 {
  font-size: var(--h1-font-size);
  letter-spacing: 0.01em;
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.7;
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white-color);
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

.custom-border-radius {
  border-radius: 16px;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.small-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  font-family: var(--body-font-family);
}


/*---------------------------------------
  SCROLL REVEAL
-----------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/*---------------------------------------
  CUSTOM ICON
-----------------------------------------*/
.custom-icon {
  display: inline-block;
  height: 45px;
  width: 45px;
  line-height: 45px;
  border: 2px solid var(--white-color);
  text-align: center;
  border-radius: 50%;
  font-size: 20px;
  position: relative;
}

.custom-icon::before,
.custom-icon::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.custom-icon::before {
  border: 2px solid transparent;
}

.custom-icon::after {
  border: 0 solid transparent;
}

.custom-icon:hover {
  border-color: transparent;
}

.custom-icon:hover::before {
  border-top-color: var(--primary-color);
  border-right-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  transition: border-top-color .15s linear, border-right-color .15s linear .1s, border-bottom-color .15s linear .2s;
}

.custom-icon:hover::after {
  border-top: 2px solid var(--primary-color);
  border-left-width: 2px;
  border-right-width: 2px;
  transform: rotate(270deg);
  transition: transform .4s linear 0s, border-left-width 0s linear .35s;
}


/*---------------------------------------
  CUSTOM BUTTON
-----------------------------------------*/
.custom-btn {
  background: var(--secondary-color);
  border-radius: 8px;
  color: var(--white-color);
  font-size: var(--copyright-text-font-size);
  font-weight: var(--font-weight-bold);
  font-family: var(--body-font-family);
  padding: 13px 28px;
  letter-spacing: 0.04em;
}

.custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 134, 10, 0.35);
}

.custom-bg-primary {
  background: var(--primary-color);
}

.custom-bg-primary:hover {
  background: var(--white-color);
  color: var(--dark-color);
}


/*---------------------------------------
  NAVIGATION
-----------------------------------------*/
.navbar {
  z-index: 9;
  right: 0;
  left: 0;
}

.navbar-brand {
  font-family: var(--heading-font-family);
  font-size: 30px;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.04em;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 22px;
  padding-left: 22px;
}

.navbar-nav .nav-link {
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 15px;
  padding-bottom: 15px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.projects-detail-page .navbar-nav .nav-link.active:hover {
  color: var(--secondary-color);
}

.projects-detail-page .navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}


/*---------------------------------------
  SITE HEADER
-----------------------------------------*/
.site-header {
  background: var(--primary-color);
  padding-top: 9px;
  padding-bottom: 9px;
}

.site-header-icon {
  color: rgba(255,255,255,0.85);
}

.site-header p,
.site-header a {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.site-header .social-icon {
  text-align: right;
}


/*---------------------------------------
  HERO
-----------------------------------------*/
.hero {
  position: relative;
  height: calc(100vh - 120px);
  min-height: 520px;
}

/* Subtle grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.04;
}

.section-hero {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  height: auto;
  padding-top: 160px;
  padding-bottom: 160px;
}

.section-hero::before {
  content: "";
  background: linear-gradient(135deg, rgba(15,26,39,0.85) 0%, rgba(15,26,39,0.5) 60%, transparent 100%);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Grain on section heroes too */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  pointer-events: none;
  opacity: 0.04;
}

.section-hero-text {
  position: relative;
  z-index: 2;
}

.carousel {
  padding-right: 0;
  padding-left: 0;
}

.hero-carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-image-wrap::before {
  content: "";
  background: linear-gradient(135deg, rgba(15,26,39,0.88) 0%, rgba(15,26,39,0.55) 55%, rgba(15,26,39,0.2) 100%);
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-caption {
  z-index: 9;
  top: 30%;
  bottom: 0;
  left: 0;
  text-align: left;
  width: 55%;
  margin-right: 12px;
  margin-left: 12px;
}

.carousel-caption h1,
.carousel-caption h2 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.carousel-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin-left: auto;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-next,
.carousel-control-prev {
  top: auto;
  bottom: 44px;
  opacity: 1;
  width: 60px;
}

.carousel-control-prev {
  left: auto;
  right: 70px;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Highlight accent word in hero */
.text-warning {
  color: var(--primary-light) !important;
}

.text-danger {
  color: var(--primary-color) !important;
}


/*---------------------------------------
  STATS SECTION
-----------------------------------------*/
.stats-section {
  background: var(--secondary-color);
  padding: 48px 0;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  pointer-events: none;
  opacity: 0.03;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 12px 0;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--heading-font-family);
  font-size: 52px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  display: block;
}


/*---------------------------------------
  ABOUT
-----------------------------------------*/
.about-image-wrap {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.about-image-info {
  background: linear-gradient(to top, rgba(15,26,39,0.92), transparent 80%);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 36px 32px;
}

.about-image-info h4 {
  font-family: var(--heading-font-family);
}

.about-image {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-thumb {
  border-radius: 16px;
  margin-bottom: 24px;
  padding: 36px;
}

.about-thumb.bg-warning {
  background-color: var(--primary-color) !important;
}

.about-thumb.bg-danger {
  background-color: var(--secondary-color) !important;
}


/*---------------------------------------
  SERVICES
-----------------------------------------*/
.services {
  background: var(--section-bg-color);
}

.nav-tabs {
  border-bottom: 0;
}

.nav-tabs .nav-link,
.nav-tabs .nav-link span {
  color: var(--p-color);
  display: block;
  text-align: left;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border: 0;
  border-left: 5px solid transparent;
  background: transparent;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 24px;
  padding: 24px 28px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white-color);
  border-radius: 0 12px 12px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-tabs .nav-link h3,
.nav-tabs .nav-link span {
  position: relative;
  z-index: 1;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-left-color: var(--primary-color);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.nav-tabs .nav-item.show .nav-link::before,
.nav-tabs .nav-link.active::before,
.nav-tabs .nav-link:focus::before,
.nav-tabs .nav-link:hover::before {
  opacity: 1;
}

.nav-tabs .nav-link.active h3,
.nav-tabs .nav-link:focus h3,
.nav-tabs .nav-link:hover h3 {
  color: var(--primary-color);
}

.tab-content img {
  border-radius: 16px;
}


/*---------------------------------------
  PROJECTS
-----------------------------------------*/
.projects-thumb {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.35s;
  cursor: pointer;
}

.projects-thumb-large {
  min-height: 356px;
}

.projects-thumb:hover {
  background: var(--white-color);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

.projects-thumb:hover .projects-image {
  transform: scale(1.06);
}

.projects-thumb:hover .projects-title-wrap {
  padding-bottom: 30px;
}

.projects-thumb:hover .custom-btn,
.projects-btn-wrap .custom-btn:hover {
  background: var(--primary-color);
}

.projects-title-wrap {
  background: linear-gradient(to top, rgba(15,26,39,0.95), rgba(15,26,39,0.4) 70%, transparent);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 30px 25px 12px 25px;
  transition: all 0.25s;
}

.projects-small-title {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-family: var(--body-font-family);
}

.projects-title {
  color: var(--white-color);
  font-family: var(--heading-font-family);
}

.projects-image {
  border-radius: 16px;
  width: 100%;
  height: auto;
  transition: all 0.35s;
}

.projects-thumb-large .projects-image {
  object-fit: cover;
  height: 100%;
}

.projects-btn-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.projects-btn-wrap .custom-btn {
  font-size: 26px;
  padding: 7px 14px;
  border-radius: 8px;
}


/*---------------------------------------
  CONTACT INFO
-----------------------------------------*/
.contact-thumb {
  position: relative;
  bottom: 140px;
  margin-bottom: -140px;
}

.contact-info {
  border-radius: 16px;
  padding: 36px;
}

.google-map {
  border-radius: 12px;
}

.contact-icon {
  color: var(--primary-color);
  font-size: 28px;
}


/*---------------------------------------
  CONTACT SECTION
-----------------------------------------*/
.contact-container-wrap {
  background-color: var(--primary-color);
  padding-bottom: 120px;
  position: relative;
}

/* Grain on amber contact section */
.contact-container-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  pointer-events: none;
  opacity: 0.04;
}

.contact-form {
  margin-top: 30px;
  margin-right: 30px;
  position: relative;
  z-index: 1;
}


/*---------------------------------------
  CUSTOM FORM
-----------------------------------------*/
.custom-form .form-control {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--dark-color);
  transition: all 0.3s;
  outline: none;
  font-family: var(--body-font-family);
}

.custom-form .form-control::placeholder {
  color: rgba(15,26,39,0.45);
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  background: rgba(255,255,255,0.55);
  border-bottom-color: var(--dark-color);
}

.custom-form button[type="submit"] {
  background: var(--secondary-color);
  border-radius: 8px;
  border: 0;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  font-family: var(--body-font-family);
  letter-spacing: 0.05em;
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--dark-color);
  color: var(--white-color);
  transform: translateY(-1px);
}


/*---------------------------------------
  SITE FOOTER — dark
-----------------------------------------*/
.site-footer {
  background: var(--dark-color);
  padding-top: 44px;
  padding-bottom: 44px;
}

.site-footer .copyright-text {
  color: rgba(255,255,255,0.55);
  font-size: var(--copyright-text-font-size);
}

/* Footer nav links */
.site-footer a:not(.social-icon-link) {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.site-footer a:not(.social-icon-link):hover {
  color: var(--primary-color);
}

/* Override Bootstrap text-dark in footer */
.site-footer .text-dark {
  color: rgba(255,255,255,0.55) !important;
}


/*---------------------------------------
  SOCIAL ICON
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: var(--copyright-text-font-size);
  color: rgba(255,255,255,0.7);
  display: inline-block;
  vertical-align: top;
  margin: 2px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  transition: all 0.3s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Social icon in amber header — keep dark icon */
.site-header .social-icon-link {
  background: rgba(255,255,255,0.25);
  color: var(--dark-color);
}

.site-header .social-icon-link:hover {
  background: var(--dark-color);
  color: var(--primary-color);
}


/*---------------------------------------
  SERVICE BLOCK (sluzby.html)
-----------------------------------------*/
.service-block-icon {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 16px;
  display: block;
}

.service-list li {
  padding: 7px 0;
  border-bottom: 1px solid #e8e4dc;
  font-size: 16px;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li i {
  color: var(--primary-color);
  margin-right: 8px;
}


/*---------------------------------------
  FILTER BUTTONS (reference.html)
-----------------------------------------*/
.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--dark-color);
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--body-font-family);
  letter-spacing: 0.04em;
  margin: 4px;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-1px);
}


/*---------------------------------------
  CONTACT CARDS (kontakt.html)
-----------------------------------------*/
.contact-card {
  border-radius: 16px;
  padding: 36px;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}

.contact-card-icon {
  font-size: 34px;
  color: var(--primary-color);
  margin-bottom: 16px;
  display: block;
}

.contact-card h4 {
  margin-bottom: 8px;
  font-family: var(--heading-font-family);
}

.contact-card p,
.contact-card a {
  color: var(--p-color);
  font-size: 17px;
}

.contact-card a:hover {
  color: var(--primary-color);
}


/*---------------------------------------
  GALLERY (reference.html)
-----------------------------------------*/
.gallery-item {
  margin-bottom: 24px;
}

.gallery-item-inner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item-inner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-item-inner:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,26,39,0.92), transparent);
  padding: 22px 20px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item-inner:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay small {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.gallery-overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--heading-font-family);
}


/*---------------------------------------
  RESPONSIVE STYLES
-----------------------------------------*/
@media screen and (min-width: 1600px) {
  .projects-thumb-large {
    min-height: 416px;
  }
}

@media screen and (max-width: 1280px) {
  .contact svg {
    bottom: 0;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 26px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 17px;
  }

  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-hero {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .custom-btn {
    font-size: var(--copyright-text-font-size);
    padding: 10px 20px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0;
  }

  .navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .site-header .social-icon {
    text-align: left;
    margin-top: 10px;
  }

  .carousel-caption {
    width: 100%;
  }

  .about-thumb {
    padding: 26px;
  }

  .about-image {
    height: auto;
    margin-bottom: 24px;
  }

  .contact-container-wrap {
    padding-bottom: 50px;
  }

  .contact-form {
    margin-right: 0;
    margin-top: 60px;
    margin-bottom: 50px;
  }

  .contact-thumb {
    bottom: 0;
    margin-bottom: 0;
  }

  .site-footer {
    text-align: center;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stats-section {
    padding: 36px 0;
  }

  .stat-number {
    font-size: 42px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 23px;
  }

  h5 {
    font-size: 19px;
  }

  .contact-icon {
    font-size: 24px;
  }

  .site-header p {
    font-size: 13px;
  }

  .carousel-control-next,
  .carousel-control-prev {
    bottom: 20px;
  }

  .nav-tabs .nav-link {
    margin-right: 0;
    margin-left: 0;
    padding: 16px;
  }

  .contact-info {
    padding: 26px 20px;
  }

  .site-footer-wrap {
    flex-direction: column;
  }

  .copyright-text {
    padding-bottom: 10px;
  }

  .stat-number {
    font-size: 38px;
  }
}


/*---------------------------------------
  BOOTSTRAP OVERRIDES
-----------------------------------------*/
.bg-warning {
  background-color: var(--primary-color) !important;
}

.bg-danger {
  background-color: var(--secondary-color) !important;
}
