/*
Theme Name: Webinfotek
Theme URI: https://www.webinfotek.in
Author: Webinfotek
Description: Custom creative black & white theme for Webinfotek Agency.
Version: 1.0
License: GPL v2 or later
Text Domain: webinfotek
*/

/* ==================================================
   COLOR SYSTEM
================================================== */


:root {
  --black: #000;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-300: #cfcfcf;
  --gray-400: #b0b0b0;
  --gray-500: #999;
  --gray-600: #666;
  --gray-700: #444;
  --gray-800: #151515;
  --primary: #000;
  --secondary: #ed2224;
}

/* ==================================================
   BASE
================================================== */

html,
body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gray-300);
}

section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 90px; /* header height + breathing room */
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* ==================================================
   CONTAINER
================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* ==================================================
   FIXED HEADER (SCROLL-SNAP SAFE)
================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);

  transition: background-color 0.3s ease,
              box-shadow 0.3s ease;
}

main {
  padding-top: 80px;  /*header height */
}

/* Sticky visual state */
.site-header.is-sticky {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ==================================================
   HEADER LAYOUT
================================================== */

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

/* Logo */
.logo-img {
  max-height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
  transform: scale(1.05);
}

/* ==================================================
   MAIN NAVIGATION
================================================== */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav li {
  position: relative;
}

/* Nav links */
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}

/* Underline animation */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav li.current-menu-item a::after,
.main-nav li.current-menu-ancestor a::after {
  width: 100%;
}

/* ==================================================
   OPTIONAL NAV CTA
================================================== */

.main-nav .menu-item-cta a {
  padding: 10px 22px;
  border-radius: 30px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: all 0.25s ease;
}

.main-nav .menu-item-cta a::after {
  display: none;
}

.main-nav .menu-item-cta a:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* ==================================================
   MOBILE SAFETY
================================================== */

@media (max-width: 768px) {

  .site-header {
    backdrop-filter: none;
    background: #000;
  }

  .main-nav ul {
    gap: 18px;
  }

}


/* ==================================================
   TYPOGRAPHY
================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-intro {
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* ==================================================
   GLOBAL ALIGNMENT
================================================== */

section > .container > h2,
section > .container > .section-intro {
  text-align: center;
}

.hero,
.hero h1,
.hero-subtext,
.about,
.cta-content {
  text-align: center;
}


/* ==================================================
   HERO BUTTON SPACING – MOBILE
================================================== */

  .hero-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px; /* 👈 spacing between buttons */
    justify-content: center;
  }

@media (max-width: 768px) {
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px; /* 👈 spacing between buttons */
  }
}

/* ==================================================
   BUTTON SYSTEM
================================================== */

.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-dark:hover {
  background: transparent;
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ==================================================
   HERO
================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000 60%, #1a1a1a 100%);
}

.hero-headline {
  font-size: 5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-subtext {
  font-size: 2.2rem;
  color: var(--gray-300);
  margin: 20px 0 30px;
}

/* ==================================================
   ABOUT
================================================== */

.about {
  background: var(--white);
  color: var(--black);
}

.about h2 {
  color: var(--black);
}

.about p {
  max-width: 720px;
  margin: 0 auto 16px;
  color: #333;
}


/* ==================================================
   SERVICES
================================================== */

.services {
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--gray-800);
  padding: 40px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* ==================================================
   PRICING (PRESERVED)
================================================== */

.pricing {
  background: var(--white);
  color: var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pricing-features li {
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pricing-features li:last-child {
  border-bottom: none;
}
/* ==================================================
   CLIENT LOGO SLIDER (FINAL – CPT SAFE)
================================================== */

.clientLogoSwiper {
  margin-top: 40px;
  padding: 10px 0 30px;
}

/* IMPORTANT for auto-width Swiper */
.clientLogoSwiper .swiper-wrapper {
  align-items: center;
}

.clientLogoSwiper .swiper-slide {
  width: auto;
  min-width: 260px;              /* 👈 slightly wider */
  display: flex;
  justify-content: center;
}

/* Logo Card */
.client-logo {
  background: #fff;
  border-radius: 12px;
  padding: 10px 24px;
  height: 100px;
  min-width: 180px;
  max-width: 240px;              /* 👈 give Swiper room */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Logo Image */
.client-logo img {
  width: auto;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

/* Filters */
.work-filters {
  margin: 30px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #fff;
  color: #000;
}

/* Hide filtered slides safely */
.clientLogoSwiper .swiper-slide.is-hidden {
  opacity: 0;
  pointer-events: none;
  width: 0 !important;
  margin: 0 !important;
}

/* Swiper-safe filtering */
.clientLogoSwiper .swiper-slide.is-hidden {
  display: none !important;
}




/* ==================================================
   PARALLAX & REVEAL
================================================== */

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================================================
   MOBILE OVERRIDES
================================================== */

@media (max-width: 768px) {

  body {
    scroll-snap-type: none;
  }

  section {
    min-height: auto;
    padding: 40px 0;
    scroll-snap-align: none;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-subtext {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin: 20px 0 30px;
}

  .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .parallax-bg {
    background-attachment: scroll;
  }
}


/* ==================================================
   CTA – QUOTE SECTION
================================================== */

.cta-quote {
  background: var(--white);
  color: var(--black);
}

.cta-quote .cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  padding: 60px 40px;
}

.cta-quote .cta-content {
  max-width: 65%;
}

.cta-quote .cta-content h2 {
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--black);
}

.cta-quote .cta-content p {
  margin: 0;
  font-size: 1.05rem;
  color: #333;
}

.cta-quote .cta-action {
  display: flex;
  align-items: center;
}

/* CTA button override (dark on light) */
.cta-quote .btn-dark {
  background: var(--black);
  color: var(--white);
  padding: 14px 36px;
}

.cta-quote .btn-dark:hover {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .cta-quote .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .cta-quote .cta-content {
    max-width: 100%;
  }

  .cta-quote .cta-action {
    margin-top: 24px;
  }

}


/* ==================================================
   MOBILE HAMBURGER NAV
================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ed2224;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  right: 10px;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* Animate to X */
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* =========================
   MOBILE MENU PANEL
========================= */

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 80px; /* header height */
    left: 0;
    width: 100%;
    background: #000;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 9998;
  }

  .site-header.nav-open .main-nav {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .main-nav a::after {
    display: none;
  }
}

/* ==================================================
   CF7 GRID – 2 COLUMN (MODAL OPTIMIZED)
================================================== */

.cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0px 24px;
}

.cf7-grid .cf7-full {
  grid-column: 1 / -1;
}

.cf7-field {
  display: flex;
  flex-direction: column;
}

.cf7-field label {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #333;
}

/* Force CF7 wrapper to behave */
.cf7-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs */
.cf7-field input,
.cf7-field select,
.cf7-field textarea {
  width: 100% !important;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* =========================
   SELECT ARROW FIX
========================= */

.cf7-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1.41 0L6 4.59 10.59 0 12 1.41 6 7.41 0 1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.cf7-field textarea {
  resize: vertical;
  min-height: 100px;
  resize: none;
}

/* Submit */
.cf7-grid input[type="submit"] {
  margin: 10px auto 0;
  max-width: 260px;
  display: block;
}

/* Mobile stack */
@media (max-width: 768px) {
  .cf7-grid {
    grid-template-columns: 1fr;
  }

  .cf7-grid input[type="submit"] {
    max-width: 100%;
  }
}

/* ==================================================
   CF7 MODAL – BOOTSTRAP STYLE (CLEAN)
================================================== */

.cf7-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cf7-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Overlay */
.cf7-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);

  opacity: 0;
  transition: opacity 0.35s ease;
}

.cf7-modal.is-open .cf7-modal-overlay {
  opacity: 1;
}

/* Modal panel */
.cf7-modal-content {
  position: relative;
  background: #fff;
  color: #000;
  max-width: 600px;
  margin: 80px auto;
  padding: 20px 40px;
  border-radius: 20px;

  transform: translateY(20px) scale(0.96);
  opacity: 0;

  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cf7-modal.is-open .cf7-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .cf7-modal-content {
    margin: 60px 16px;
    padding: 28px;
  }
}

/* ==================================================
   MODAL CLOSE BUTTON
================================================== */

.cf7-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  line-height: 1;

  background: transparent;
  color: #000;

  border: none;
  border-radius: 50%;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.cf7-modal-close:hover,
.cf7-modal-close:focus-visible {
  background: rgba(0,0,0,0.08);
  transform: rotate(90deg);
  outline: none;
}

.cf7-modal-close:active {
  transform: scale(0.9) rotate(90deg);
}

/* ================================
   MODAL SCROLL FIX (MOBILE)
================================ */

.cf7-modal-content {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

/* Mobile specific */
@media (max-width: 768px) {
  .cf7-modal-content {
    max-height: calc(100vh - 180px);
  }
}

/* ==================================================
   CF7 SUBMIT BUTTON – MATCH PRIMARY DARK BUTTON
================================================== */

.cf7-grid input[type="submit"],
.wpcf7 input[type="submit"] {
  background: #000;
  color: #fff;

  border: 1px solid #000;
  border-radius: 999px;

  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: all 0.25s ease;

  display: block;
  margin: 20px auto 0; /* center */
}

/* Hover / focus */
.cf7-grid input[type="submit"]:hover,
.cf7-grid input[type="submit"]:focus-visible {
  background: transparent;
  color: #000;
  outline: none;
}

/* Disabled (CF7 during submit) */
.wpcf7 input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================================================
   CONTACT SECTION – DIRECT DETAILS
================================================== */

.contact-section {
  background: var(--white);
  color: var(--black);
  text-align: center;
}

.contact-section h2 {
  color: var(--black);
  margin-bottom: 10px;
}

.contact-section .section-intro {
  color: #555;
  margin-bottom: 40px;
}

/* ================================
   CONTACT DIRECT DETAILS
================================ */

.contact-direct {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Individual contact item */
.contact-item {
  background: #ffffff;
  color: #000000;
  padding: 20px 34px;
  border-radius: 16px;

  display: flex;
  align-items: center;
  gap: 14px;

  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;

  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-item a {
  color: #000000;
  font-weight: 700;
  text-decoration: none;
}

/* Icons */
.contact-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Hover polish */
.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}

/* =========================
   MOBILE STACK
========================= */

@media (max-width: 768px) {

  .contact-direct {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    text-align: center;
  }
}




/* Google read more – stacked version */
.home-testimonials .google-read-more {
  margin-top: 28px;
}

.google-read-more {
  display: flex;
  justify-content: center;
}

.google-link-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #555;
}

.google-text {
  font-size: 0.95rem;
}

.google-logo {
  display: block;
  transition: transform 0.2s ease;
}

.google-link-stacked:hover .google-logo,
.google-link-stacked:focus-visible .google-logo {
  transform: scale(1.04);
}

.google-link-stacked:hover .google-text,
.google-link-stacked:focus-visible .google-text {
  text-decoration: underline;
}


/* typing text animation */
.hero-headline::after {
  content: '|';
  margin-left: 4px;
  opacity: 0.6;
  animation: blink 1s infinite;
  position: relative;
  top: -0.12em; /* 👈 move cursor up slightly */
  color: var(--secondary);
}

@keyframes blink {
  0%, 50%, 100% { opacity: 0; }
  25%, 75% { opacity: 0.6; }
}

/* hero animation background canvas */
/* Hero background nodes */
#hero {
  position: relative;
  overflow: hidden;
}

#hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 2;
}
