/* ============================================
   TechItEasy - Redesigned Static Site
   Colors from original brand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #034ea2;
  --primary-dark: #1e4b75;
  --primary-light: #235787;
  --accent: #f7941d;
  --cta: #c3512f;
  --text: #444444;
  --text-light: #686868;
  --heading: #2b2b2b;
  --bg: #ffffff;
  --bg-light: #f8f9fc;
  --bg-alt: #f4f4f4;
  --border: #eaecee;
  --white: #ffffff;
  --shadow: 0 2px 20px rgba(3, 78, 162, 0.08);
  --shadow-lg: 0 8px 40px rgba(3, 78, 162, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-light); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: #e8850f;
  border-color: #e8850f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--cta {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}
.btn--cta:hover {
  background: #b44427;
  border-color: #b44427;
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: var(--white);
  transform: translateY(-2px);
}
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.header__logo img {
  height: 50px;
  width: auto;
}
.header__nav { display: flex; align-items: center; gap: 8px; }
.header__nav a {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.header__nav a:hover,
.header__nav a.active {
  background: var(--bg-light);
  color: var(--primary-dark);
}
.header__nav a.active {
  position: relative;
}
.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 12px;
}
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-switcher__btn:hover { border-color: var(--primary); }
.lang-switcher__btn svg { width: 16px; height: 16px; }
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.lang-switcher__menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.lang-switcher__menu button:hover { background: var(--bg-light); }
.lang-switcher__menu button.active { color: var(--primary); font-weight: 700; }

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}
.header__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__toggle.active span:nth-child(2) { opacity: 0; }
.header__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a2540 100%);
  color: var(--white);
  overflow: hidden;
  margin-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.08;
  z-index: 1;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}
.section-header__desc {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-card__desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.service-card__list {
  list-style: none;
  padding: 0;
}
.service-card__list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.9rem;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Features Section --- */
.features {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2540 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E");
}
.features .section-header__title { color: var(--white); }
.features .section-header__label { color: var(--accent); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}
.feature-card__title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.feature-card__desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 24px;
}
.cta-banner__title span { border-bottom: 3px solid rgba(255,255,255,0.5); }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow); }
.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item__icon--wa { background: #25D366; }
.contact-item__text h4 { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2px; }
.contact-item__text p { font-weight: 600; color: var(--heading); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg-light);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
  margin-top: 24px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer {
  background: #0a1628;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo img { height: 40px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer__copy { font-size: 0.85rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer__links a:hover { color: var(--accent); }

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6); }
}

/* --- Broadband Page --- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.vendor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-height: 100px;
}
.vendor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vendor-card img { max-height: 50px; max-width: 120px; object-fit: contain; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.why-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}
.why-card__title { font-size: 1.2rem; margin-bottom: 12px; }
.why-card__desc { color: var(--text-light); font-size: 0.95rem; }

/* --- Blog / Post Listing --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card__body { padding: 24px; }
.post-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.post-card__title a { color: var(--heading); }
.post-card__title a:hover { color: var(--primary); }
.post-card__date { font-size: 0.8rem; color: var(--text-light); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2540 100%);
  color: var(--white);
  padding: 120px 0 60px;
  margin-top: 80px;
  text-align: center;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero__subtitle { opacity: 0.8; font-size: 1.1rem; }

/* --- Team Page --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--bg-light);
}
.team-card__name { font-size: 1.15rem; margin-bottom: 4px; }
.team-card__role { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__toggle { display: block; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .header__nav.open a { padding: 12px 16px; width: 100%; }
  .lang-switcher { display: none; }
  .header__nav.open .lang-switcher-mobile { display: flex; gap: 8px; padding: 12px 16px; }
  .lang-switcher-mobile button {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: none;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
  }
  .lang-switcher-mobile button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }
  .hero { min-height: 70vh; }
  .hero__title { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid, .why-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .whatsapp-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
}

/* --- Animations (on scroll) --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
