/* =====================================================
M TAYLOR INC — PROFESSIONAL INDUSTRIAL THEME
Owner-Operator • Stepdeck • Power-Only
===================================================== */

/* ------------------ RESET ------------------ */

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

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

body {
  background-color: #0b0f14;
  color: #e6ebf2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* ================== ADDITIVE FIX #1 ==================
   GLOBAL IMAGE CONTAINMENT (prevents overflow)
===================================================== */
img {
  max-width: 100%;
  height: auto;
}

/* ------------------ SKIP LINK (ACCESSIBILITY) ------------------ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #000;
  color: #ffffff;
  padding: 8px 12px;
  z-index: 2000;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  top: 10px;
}

/* ------------------ VARIABLES ------------------ */
:root {
  --bg: #0b0f14;
  --panel: #111827;
  --panel-alt: #0f1622;
  --border: #1f2937;

  --text: #e6ebf2;
  --muted: #aeb7c4;

  --accent: #256cf0;

  --radius: 14px;
  --radius-sm: 10px;

  --max-width: 1120px;
}

/* ------------------ LAYOUT ------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background-color: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ------------------ HEADER ------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text);
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.6rem;
  background-color: var(--accent);
  border-radius: 2px;
}

/* ------------------ NAV ------------------ */
.mobile-subnav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-subnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.mobile-subnav a.active {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

/* ------------------ TYPOGRAPHY ------------------ */
h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1.05rem;
}

.sub {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ------------------ BUTTONS ------------------ */
.btn {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn.ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid rgba(37, 108, 240, 0.5);
}

.btn.block {
  width: 100%;
}

/* ------------------ HERO ------------------ */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: center;
}

.hero .card img {
  display: block;
  max-height: 420px;
}


/* ------------------ CARDS ------------------ */
.card {
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ================== ADDITIVE FIX #2 ==================
   GALLERY IMAGE CARDS (restores neat rounded cards)
===================================================== */
.gallery img {
  background-color: var(--panel);
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ------------------ LISTS ------------------ */
.list {
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* ------------------ TRUST PILLS ------------------ */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  background-color: #121a26;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
}

/* ================== ADDITIVE FIX #3 ==================
   CONTACT SOCIAL ICON SIZE LOCK
===================================================== */
.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.social-links img {
  width: 20px;
  height: 20px;
  max-width: 20px;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ------------------ FOOTER ------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

/* ------------------ RESPONSIVE ------------------ */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
}

@media (min-width: 769px) {
  .section.alt .two-col {
    align-items: center;
  }
}
/* CONTACT CARD SPACING + FLOW */

.contact-card {
  padding: 26px;
}

/* Primary + secondary buttons */
.contact-card .btn-block {
  margin-bottom: 10px;
}

/* Phone & email confirmation text */
.contact-number,
.contact-email {
  text-align: center;
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Service area spacing */
.contact-item {
  margin-top: 6px;
  margin-bottom: 20px;
}

/* Divider before Connect */
.contact-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 26px 0 20px;
}

/* Connect label */
.contact-item.muted .label {
  text-align: center;
  margin-bottom: 10px;
}

/* Social icons positioning */
.contact-card .social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}

.contact-card .social-links img {
  opacity: 0.65;
}
/* FINAL CONTACT CARD POLISH */

.contact-card {
  text-align: center;
}

.contact-card .primary-call,
.contact-card .secondary-email {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  text-align: center;
}

.contact-divider {
  margin: 30px 0 24px;
}

.contact-item.muted {
  margin-top: 10px;
}

.contact-card .social-links {
  margin-top: 12px;
}

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

