/*
Theme Name: TechPegasus Native
Theme URI: https://techpegasus.biz
Author: Codex
Description: Native editable WordPress rebuild for TechPegasus.
Version: 1.1.0
Text Domain: techpegasus-native
*/

:root {
  --tp-bg: #000000;
  --tp-surface: #0f0f10;
  --tp-surface-soft: #171717;
  --tp-card: #131313;
  --tp-text: #ffffff;
  --tp-text-soft: #d7d7d7;
  --tp-text-muted: #b7b7b7;
  --tp-gold: #d7b45a;
  --tp-cyan: #16b9f2;
  --tp-line: rgba(255, 255, 255, 0.09);
  --tp-radius: 0;
  --tp-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--tp-text);
  background: var(--tp-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  background: #050505;
  border-bottom: 1px solid #111;
  position: sticky;
  top: 0;
  z-index: 40;
}

.container {
  width: min(calc(100% - 48px), var(--tp-width));
  margin: 0 auto;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.main-nav .menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.custom-menu > .menu-item {
  position: relative;
}

.main-nav a {
  color: var(--tp-text);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
}

.main-nav .current-menu-item > a,
.main-nav a:hover {
  color: var(--tp-cyan);
}

.button-link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.button-link.primary {
  color: #000;
  background: var(--tp-cyan);
  box-shadow: none;
}

.services-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.services-menu > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.services-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  display: none;
  gap: 2px;
  padding: 16px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

@media (min-width: 981px) {
  .services-menu:hover .services-dropdown,
  .services-menu:focus-within .services-dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.services-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 22px;
}

.services-dropdown__link {
  display: block;
  padding: 11px 12px;
  color: var(--tp-text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-dropdown__link:last-child {
  border-bottom: 0;
}

.services-dropdown__link:hover {
  color: var(--tp-cyan);
  background: rgba(255, 255, 255, 0.03);
}

.tp-customize-preview .services-dropdown {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(8px) !important;
}

.button-link.secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72)),
    url('https://static.wixstatic.com/media/1bfdf6_7932c281ef2f43398dfc10c9d75a0ea4~mv2.png/v1/fill/w_980,h_361,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_avif,quality_auto/1bfdf6_7932c281ef2f43398dfc10c9d75a0ea4~mv2.png') center/cover no-repeat;
  padding: 42px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
  align-items: center;
  min-height: 540px;
}

.hero-copy {
  padding: 64px 0 80px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  color: var(--tp-text-soft);
  font-size: 1.03rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: none;
}

.panel {
  padding: 0;
  background: transparent;
  color: #e5edf7;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: min(100%, 430px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  background: transparent;
}

.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--tp-text-soft);
  max-width: 60ch;
}

.services-grid,
.feature-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.service-card,
.feature-card,
.contact-card,
.page-article,
.about-strip {
  padding: 28px;
  border: 1px solid var(--tp-line);
  background: var(--tp-card);
}

.service-card h3,
.feature-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.service-card p,
.feature-card p,
.contact-card p {
  color: var(--tp-text-soft);
  margin: 0;
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  background: #0b0b0b;
}

.contact-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #0b0b0b;
}

.service-card .button-link {
  margin-top: 18px;
}

.about-strip {
  background: var(--tp-card);
}

.page-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)),
    url('https://static.wixstatic.com/media/1bfdf6_0af30aa1bcdb436087e563bda77ce517~mv2.png/v1/crop/x_197,y_157,w_3528,h_2808/fill/w_908,h_724,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/1bfdf6_0af30aa1bcdb436087e563bda77ce517~mv2.png') center/cover no-repeat;
  padding: 72px 0 42px;
}

.page-article {
  padding: 34px;
}

.page-article h2,
.page-article h3 {
  margin-top: 1.8em;
  line-height: 1.2;
}

.page-article p,
.page-article li {
  color: var(--tp-text-soft);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-bottom: 56px;
}

.page-content-wrap {
  padding: 40px 0 56px;
}

.stack {
  display: grid;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--tp-line);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  margin-top: 0;
  padding: 34px 0 46px;
  color: #d2dbea;
  background: #090909;
  border-top: 1px solid #121212;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
}

.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #c8d2e1;
}

.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-menu-list li {
  margin: 0;
}

.notice-box {
  padding: 16px 18px;
  background: rgba(22, 185, 242, 0.1);
  border: 1px solid rgba(22, 185, 242, 0.3);
  color: #8fe6ff;
}

.home-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.icon-tile {
  text-align: center;
}

.icon-tile img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
}

.cost-strip {
  display: grid;
  gap: 18px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cost-box {
  padding: 16px;
  background: var(--tp-surface-soft);
  border: 1px solid var(--tp-line);
  text-align: center;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: var(--tp-card);
  border: 1px solid var(--tp-line);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.gallery-grid img {
  flex: 1 1 calc(33.333% - 11px);
  min-width: 280px;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border: none;
  background: transparent;
}

.service-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-mini-card {
  padding: 22px;
  border: 1px solid var(--tp-line);
  background: var(--tp-card);
}

.service-mini-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  background: #0b0b0b;
}

.service-mini-card h3 {
  margin: 0 0 10px;
}

.service-mini-card p {
  color: var(--tp-text-soft);
}

.contact-mini {
  display: grid;
  gap: 14px;
}

.header-logo {
  width: min(310px, 48vw);
  display: block;
}

@media (max-width: 980px) {
  .gallery-grid img {
    max-width: 100%;
  }
  
  .hero-grid,
  .services-grid,
  .feature-grid,
  .contact-grid,
  .content-layout,
  .footer-grid,
  .home-intro,
  .cost-grid,
  .gallery-grid,
  .service-links-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(calc(100% - 32px), var(--tp-width));
  }

  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 18px 0 22px;
  }

  .brand-mark {
    justify-content: center;
  }

  .header-logo {
    width: min(320px, 78vw);
  }

  .main-nav {
    width: 100%;
  }

  .main-nav .menu {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .custom-menu > .menu-item {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
  }

  .services-menu > a {
    justify-content: center;
  }

  .services-dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none !important;
    min-width: 0;
    width: 100%;
    display: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
    padding: 10px;
  }

  .services-menu.open .services-dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
  }
  
  .services-menu.open > a::after {
    transform: rotate(225deg) translateY(0px) translateX(-2px);
  }

  .services-menu::after {
    display: none;
  }

  .button-link.primary {
    width: 100%;
    max-width: 320px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-copy {
    padding: 12px 0 0;
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo {
    width: min(280px, 72vw);
  }

  .panel {
    order: -1;
  }

  .hero-copy,
  .page-article {
    padding: 24px 0 34px;
  }

  .section {
    padding: 32px 0;
  }

  .service-card,
  .feature-card,
  .contact-card,
  .page-article,
  .about-strip,
  .service-mini-card {
    padding: 22px;
  }

  .cta-inline {
    padding: 20px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--tp-width));
  }

  .site-header {
    position: static;
  }

  .header-logo {
    width: min(280px, 82vw);
  }

  .main-nav a {
    font-size: 1rem;
    padding: 9px 12px;
  }

  .services-dropdown__link {
    font-size: 0.92rem;
    padding: 10px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
    margin: 14px 0 12px;
  }

  .eyebrow {
    font-size: 0.92rem;
  }

  .lead,
  .page-article p,
  .page-article li,
  .service-mini-card p,
  .feature-card p {
    font-size: 0.98rem;
  }

  .hero-logo {
    width: min(230px, 70vw);
  }

  .section-header {
    align-items: start;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .button-link,
  button,
  input[type="submit"] {
    width: 100%;
  }
}
