/* ============================================================
   CLICKMORY THEME - v1.1.2
   Light Theme | Primary: #599978 | BG: #58595b | Avenir Fonts
   ============================================================ */

/* ---- Custom Fonts ---- */
@font-face {
    font-family: 'Avenir';
    src: url('../fonts/Avenir.ttc') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvenirNext';
    src: url('../fonts/Avenir_Next.ttc') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvenirNextCondensed';
    src: url('../fonts/Avenir_Next_Condensed.ttc') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---- CSS Variables ---- */
:root {
    --primary-color: #599978;
    --primary-dark: #437a5e;
    --primary-light: #7ab898;
    --gradient: linear-gradient(135deg, #599978, #437a5e);
    --bg-color: #58595b;
    --bg-light: #FFFEF6; 
    --bg-section: #eef1ec;
    --card-bg: #ffffff;
    --card-border: rgba(89, 153, 120, 0.15);
    --text-dark: #58595b;
    --text-body: #58595b;
    --text-muted: #58595b;
    --text-light: #ffffff;
    --shadow-sm: 0 4px 15px rgba(89, 153, 120, 0.1);
    --shadow-md: 0 10px 30px rgba(89, 153, 120, 0.18);
    --font-primary: 'AvenirNext', 'Avenir', sans-serif;
    --font-condensed: 'AvenirNextCondensed', 'Avenir', sans-serif;
    /* --font-body: 'AvenirNextCondensed', 'Avenir', sans-serif; */
    /* --font-condensed: 'AvenirNextCondensed', 'Avenir', sans-serif; */
    --font-body: 'Avenir', 'AvenirNext', sans-serif;
}


/* ---- Base ---- */
html, body {
    overflow-x: hidden;
    padding-top: 0px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-body);
    margin: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-dark);
}

p {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.5;
}

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

img, iframe {
    max-width: 100%;
}

/* ---- Navbar ---- */
.navbar {
    backdrop-filter: blur(12px);
    background: #FFFEF6 !important;
    box-shadow: 0 2px 20px rgba(89, 153, 120, 0.12);
    transition: background 0.3s ease;
}

.navbar .nav-link {
    color: var(--text-dark) !important;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-brand img,
.navbar-brand .custom-logo {
    height: 85px !important;
    width: auto;
}

.navbar-brand .custom-logo-link {
    display: inline-block;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23599978' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTION - YouTube Video Background
   ============================================================ */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* YouTube iframe wrapper */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

/* Dark overlay on video */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

/* Hero content on top */
.hero-cinematic .container {
    position: relative;
    z-index: 2;
}

/* Typography */
.hero-title {
    font-family: var(--font-condensed);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
}

/* ---- Buttons ---- */
.btn,
.btn-gradient {
    background: var(--gradient);
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover,
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    font-weight: 600;
    font-family: var(--font-primary);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color) !important;
}

/* ---- Card Box ---- */
.card-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.card-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* ---- About Section ---- */
.about-modern {
    background: var(--bg-section);
    color: var(--text-dark);
}

.about-modern h2 {
    font-family: var(--font-primary);
    letter-spacing: -1px;
    color: var(--text-dark);
}

.about-modern p {
    color: var(--text-body);
}

.about-modern h6 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

.about-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.about-content.service-card{
text-align: left;
}

.about-content h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
}

/* Stats */
#about .fw-bold {
    color: var(--primary-color);
}

/* Image Collage */
.image-collage {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.image-collage .img {
    position: absolute;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.img-main {
    width: 70%;
    height: 100%;
    left: 0;
    top: 0;
}

.img-small {
    width: 45%;
    height: 48%;
    right: 0;
}

.img-top { top: 0; }
.img-bottom { bottom: 0; }

/* ---- Services Section ---- */
.services-modern {
    background: var(--bg-light);
    color: var(--text-dark);
}

.services-modern p {
    color: var(--text-muted);
    text-align: left;
}

.services-modern h6 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    /* text-align: center; */
    transition: 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card ul{
    margin-left: 0px;
    /* padding-left: 0px; */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-card img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    /* border-radius: 12px; */
}

.service-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card h5 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card h4::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--gradient);
    margin: 8px auto;
    transition: 0.3s;
}

.service-card:hover h4::after {
    width: 50%;
}

/* ---- Portfolio ---- */
.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-box img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.5s;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(89, 153, 120, 0.85), transparent);
    display: flex;
    align-items: end;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-box:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.portfolio-video iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.portfolio-content {
    padding: 15px;
    text-align: center;
}

.portfolio-content h5 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 18px;
    font-family: var(--font-primary);
}

.portfolio-content .brand {
    font-size: 13px;
    color: var(--text-muted);
}

/* Filter Buttons */
.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--bg-section);
    padding: 70px 20px;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.cta-section p {
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* ---- Testimonials ---- */
#testimonial {
    background-color: var(--bg-section);
}

#testimonial h2 {
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.testimonial-card p {
    color: var(--text-body);
}

/* ---- Contact Section ---- */
#contact {
    background-color: var(--bg-section);
}

.contact-info h3 {
    color: var(--text-dark) !important;
    font-family: var(--font-primary);
}

.contact-info p {
    color: var(--text-body) !important;
}

/* ---- Hero Form ---- */
.hero-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--card-border);
    color: var(--text-dark);
}

.hero-form h4 {
    font-family: var(--font-primary);
    color: var(--text-dark);
}

.hero-form label {
    width: 100%;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-body);
    font-family: var(--font-body);
}

.hero-form .wpcf7-form p {
    margin-bottom: 10px !important;
}

.hero-form input,
.hero-form textarea,
.hero-form select,
.hero-form .wpcf7 input,
.hero-form .wpcf7 textarea,
.hero-form .wpcf7 select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #d0d8d0;
    background: #f7faf8 !important;
    color: var(--text-dark) !important;
    font-family: var(--font-body);
    transition: border 0.2s;
}

.hero-form input:focus,
.hero-form textarea:focus,
.hero-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(89, 153, 120, 0.15);
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
    color: #9aab9a !important;
}

.hero-form textarea {
    height: 100px;
    resize: none;
}

.hero-form select,
.hero-form .wpcf7 select {
    background: #f7faf8 !important;
    color: var(--text-dark) !important;
}

.hero-form select option {
    background: #fff;
    color: var(--text-dark);
}

.hero-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

/* Submit button */
.hero-form .wpcf7 input[type="submit"],
.hero-form .wpcf7-submit,
.wpcf7 input.wpcf7-submit {
    background: var(--gradient) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 50px !important;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    width: fit-content;
    transition: all 0.3s ease;
}

.hero-form .wpcf7 input[type="submit"]:hover,
.wpcf7 input.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(89, 153, 120, 0.4);
}

.hero-form .wpcf7 input[type="submit"]:active {
    transform: scale(0.96);
}

/* ---- Footer ---- */
.footer-modern {
    background: #58595b;
    padding: 20px 0 0px;
    position: relative;
    color: #f0f0f0;
}

.footer-modern::before {
    /* content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient); */
}

.footer-title {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    color: #ffffff;
}

.footer-title::after {
    /* content: "";
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    display: block;
    margin-top: 6px; */
}

.footer-text {
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-body);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-right: 10px;
    border-radius: 50%;
    background: #437a5e;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:visited{
    color: #fff;
}

.social-icons a:hover {
    background: var(--gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(89, 153, 120, 0.4);
}

/* .social-icons a:hover:nth-child(1) {
    background: #25D366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
} */

.social-icons a:hover i {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    font-size: 14px;
    color: #aaaaaa;
    font-family: var(--font-body);
}

.footer-bottom a {
    text-decoration: none;
    color: var(--primary-light);
}

/* ---- Misc ---- */
.link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.link:hover {
    color: var(--primary-color);
}

.navbar .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 0;
}

.navbar .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}
a:visited{
    color: var(--text-dark);
}

.dropdown-item{
    text-transform: uppercase;
}

.dropdown-item:hover{
    color: #599978;
}

.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #599978;
  border: 1px solid rgba(89,153,120,.4);
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .25s, color .25s, box-shadow .25s;
}

.work-btn svg {
  transition: transform .25s;
}

.work-btn:hover {
  background: #599978;
  color: #fff;
  box-shadow: 0 0 18px rgba(89,153,120,.3);
}

.work-btn:hover svg {
  transform: translateX(3px);
  stroke: #fff;
}

.s-icon{
    width: 50px;
    height: 50px;
    object-fit: contain;
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-cinematic {
        min-height: 40vh;
    }

    .hero-form {
        margin-top: 30px;
    }

    .image-collage {
        height: 300px;
    }
}


/* ── Mobile submenu ── */
@media (max-width: 991.98px) {

  #nav .nav-link,
  #nav .dropdown-item {
    color: #1a1a1a !important;
  }

  #nav .dropdown-menu {
    display: none;
    position: static !important;
    float: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid #599978;
    background: transparent;
    padding-left: 1rem;
    margin: 0;
  }

  #nav .dropdown-menu.open {
    display: block !important;
  }

  #nav .dropdown-menu .dropdown-item {
    color: #444 !important;
    font-size: 0.88rem;
    padding: 6px 12px;
  }

  /* Toggle button */
  .submenu-toggle {
    background: none;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    color: #599978;
    font-size: 1.1rem;
    line-height: 1;
    margin-left: auto;
    transition: transform 0.25s;
  }

  .submenu-toggle.active span {
    display: inline-block;
    transform: rotate(45deg);
  }
}

/* ── Desktop hover ── */
@media (min-width: 992px) {
  .submenu-toggle { display: none !important; }

  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-link.dropdown-toggle::after {
    border-top-color: #599978; /* match your brand color */
    opacity: 0.8;
  }

  .navbar .nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
    opacity: 1;
  }
}

nav .nav-item.active .nav-link.active{
    color: #599978 !important;
}


    .hero {
      position: relative;
      height: 100vh;
      width: 100%;
      overflow: hidden;
      /* margin-top: 50px; */
    }

    .hero video {
    position: absolute;
    top: 0px;
    left: 0px;
    min-width: 100%;
    min-height: 100%;
    /* transform: translate(-50%, -50%); */
    object-fit: contain;
    z-index: 1;
    width: 100%;
    /* height: 100%; */
    }

    .overlay {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      background: rgba(0, 0, 0, 0.3);
      text-align: center;
      flex-direction: column;
    }

    .overlay h1 {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .overlay button {
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      background: white;
      color: black;
    }

    .mute-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 3;
      background: rgba(0,0,0,0.6);
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
    }

    .wpcf7-spinner{
        position: absolute !important;
        margin-top: 8px !important;
    }

    /* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero{
        height: auto;
    }
    .hero video{
        position: relative;
    }
}