/* =========================
   iTechPortal.pk Complete CSS
   Compact Spacing + Divided Sections + Orange Accent
========================= */

:root {
  --bg-1: #0f2027;
  --bg-2: #203a43;
  --bg-3: #2c5364;
  --accent: #ff9800;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-dark: rgba(0, 0, 0, 0.35);
  --section-padding-top: 70px;
  --section-padding-bottom: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  color: #ffffff;
  line-height: 1.7;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
}

p {
  opacity: 0.9;
}

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

/* =========================
   HEADER & NAV (RESPONSIVE + TOGGLE)
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 22px;
  font-weight: 600;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 14px;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    display: none;
  }

  .nav.active {
    display: flex;
  }
}

/* =========================
   SECTIONS (UNIFORM & COMPACT PADDING)
========================= */
section {
  padding: var(--section-padding-top) 0 var(--section-padding-bottom);
  text-align: center;
  position: relative;
}

.hero {
  padding-top: 100px;
  padding-bottom: 80px;
}

.about, .services, .cta, .contact {
  padding-top: var(--section-padding-top);
  padding-bottom: var(--section-padding-bottom);
}

.about h2, .services h2, .cta h2, .contact h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 16px;
}

.about p, .cta p, .contact p {
  max-width: 760px;
  margin: 0 auto;
}

/* Alternating background for visual separation */
section:nth-of-type(even) {
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =========================
   HERO SECTION
========================= */
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 20px;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 25px;
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.primary:hover {
  background: #e68a00;
}

.btn.secondary {
  border: 1px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #000;
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 35px 28px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  margin-bottom: 14px;
}

/* =========================
   CTA SECTION
========================= */
.cta {
  background: rgba(0, 0, 0, 0.35);
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
  background: rgba(0,0,0,0.35);
  text-align: center;
  padding-top: var(--section-padding-top);
  padding-bottom: var(--section-padding-bottom);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: rgba(0, 0, 0, 0.55);
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 45px;
  font-size: 14px;
  opacity: 0.7;
}

/* =========================
   RESPONSIVE FIXES
========================= */
@media (max-width: 768px) {
  .nav {
    gap: 14px;
  }

  .hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-card .blog-img {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.blog-featured-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-featured-img:hover {
    transform: scale(1.05);
}

.blog-card h3 {
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}


/* Remove default bullets and spacing from menu */
.nav ul, .nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul {
    display: flex;
    gap: 24px; /* spacing between menu items */
}

.nav ul li a {
    color: #fff; /* menu text color */
    text-decoration: none;
    font-weight: 500;
    padding: 10px 5px;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #ff9800; /* hover accent */
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* =========================
   CONTACT FORM 7 – ORANGE GLASS FIELDS
========================= */

/* =========================
   CONTACT FORM 7 – FINAL FIX
   (Theme Colors Preserved)
========================= */

/* Global safety */
.wpcf7,
.wpcf7 form {
  width: 100%;
  margin: 0;
}

.wpcf7 * {
  box-sizing: border-box;
}

/* Label styling */
.wpcf7 label {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  font-size: 14px;
  opacity: 0.9;
}

/* Base field styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  max-width: 100%;
  background: transparent !important;
  border: 1.5px solid var(--accent) !important;
  color: #ffffff !important;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Placeholder color */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #ffb347 !important;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.25);
}

/* Textarea */
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

/* Select field fix */
.wpcf7 select {
  appearance: none;
  cursor: pointer;
}

/* Submit button */
.wpcf7 input[type="submit"] {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

/* Hover */
.wpcf7 input[type="submit"]:hover {
  background: #e68a00;
}

/* Messages */
.wpcf7-response-output {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
}

/* Error messages */
.wpcf7-not-valid-tip {
  color: #ffb347;
  font-size: 13px;
  margin-top: 6px;
}

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

@media (max-width: 768px) {

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

  .wpcf7 label {
    margin-bottom: 12px;
  }

  .wpcf7 input,
  .wpcf7 textarea,
  .wpcf7 select {
    font-size: 14px;
    padding: 13px 14px;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

/* Remove browser autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================
   CONTACT FORM 7 – LEFT ALIGNMENT
========================= */

.wpcf7 {
  text-align: left;
}

/* Labels */
.wpcf7 label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Form fields */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  text-align: left;
}

/* Submit button alignment */
.wpcf7 input[type="submit"],
.wpcf7 button {
  display: inline-block;
  margin-left: 0;
  margin-right: auto;
}

/* =========================
   CONTACT SECTION LAYOUT
========================= */

.contact {
  background: rgba(0,0,0,0.35);
  padding-top: 70px;
  padding-bottom: 70px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start; /* Left-align everything */
}

.contact-card {
  flex: 1 1 400px; /* Grow/shrink, min width 400px */
  background: var(--glass);
  padding: 35px 28px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Heading & text inside contact card */
.contact-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 25px;
  opacity: 0.85;
  max-width: 700px;
}

/* Left align Contact Form 7 fields inside card */
.contact-card .wpcf7 {
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-card {
    flex: 1 1 100%;
  }
}

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

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.single-post-title {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 10px;
}

.single-post-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.single-post-featured img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.single-post-share {
    margin-bottom: 25px;
}

.single-post-share span {
    font-weight: 600;
    margin-right: 10px;
}

.single-post-share a {
    margin-right: 15px;
    color: #ff9800;
    text-decoration: none;
}

.single-post-share a:hover {
    text-decoration: underline;
}

.single-post-content p {
    margin-bottom: 18px;
    line-height: 1.7;
}

.single-post-separator {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 40px 0;
}

.single-post-recent h3 {
    margin-bottom: 20px;
}

.single-post-recent .service-card {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.single-post-recent .service-card:hover {
    transform: translateY(-5px);
}

.single-post-recent .service-card h4 a {
    color: #fff;
    text-decoration: none;
}

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

@media (max-width:768px) {
    .single-post-container {
        padding: 30px 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

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

.service-card {
  display: flex;
  flex-direction: column;
}

.service-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-date {
  font-size: 14px;
  opacity: 0.7;
}

.read-more {
  margin-top: auto;
  font-weight: 600;
}

/* Blog / Archive tweaks */
.archive-page .blog-featured-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.archive-page .blog-featured-img:hover {
    transform: scale(1.05);
}

.archive-page .service-date {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.archive-page .service-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.archive-page .read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent);
}

