/* ============================================================
   IRONCREST DIGITAL — Main Stylesheet
   Dark theme | Inter font | #121212 / #f8f9fa / #38bdf8
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: #121212;
  color: #f8f9fa;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

/* ---------- CSS Variables ---------- */
:root {
  --bg:        #121212;
  --bg-card:   #1a1a1a;
  --bg-card2:  #202020;
  --border:    #2a2a2a;
  --text:      #f8f9fa;
  --text-muted:#94a3b8;
  --accent:    #38bdf8;
  --accent-dk: #0ea5e9;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --transition:.25s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-muted); }

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

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a1929;
}
.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,189,248,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: .8rem 0;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--accent-dk); gap: .75rem; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18,18,18,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  display: flex;
  align-items: center;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(18,18,18,.98);
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  animation: slideDown .2s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO (Home) ---------- */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.hero-contact a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.hero-contact a:hover { color: var(--accent); }

.hero-contact span { display: flex; align-items: center; gap: .4rem; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3.5rem;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item i { color: var(--accent); font-size: 1.1rem; }

/* ---------- CARDS (services preview) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(56,189,248,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(56,189,248,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--accent);
}

.card h3 { margin-bottom: .5rem; color: var(--text); }

.card-price {
  display: inline-block;
  margin-top: 1rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 50px;
  padding: .3rem .85rem;
}

/* ---------- CAPABILITIES ---------- */
.capabilities {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cap-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.cap-item:hover {
  border-color: rgba(56,189,248,.3);
  transform: translateY(-3px);
}

.cap-item i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cap-item h3 { font-size: 1rem; margin-bottom: .5rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0a1929;
  flex-shrink: 0;
}

.author-info strong { display: block; font-size: .9rem; color: var(--text); }
.author-info span   { font-size: .8rem; color: var(--text-muted); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(56,189,248,.08) 0%, rgba(14,165,233,.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p  { margin-bottom: 2rem; font-size: 1.05rem; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56,189,248,.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ---------- SERVICES PAGE ---------- */
.service-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.service-detail:hover { border-color: rgba(56,189,248,.3); }

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  background: rgba(56,189,248,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0;
}

.meta-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .3rem .85rem;
  border-radius: 50px;
  background: rgba(56,189,248,.07);
  border: 1px solid rgba(56,189,248,.18);
  color: var(--accent);
}

.includes-list {
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem .75rem;
}

.includes-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.includes-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- PROCESS STEPS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #0a1929;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 { font-size: 1rem; color: var(--text); margin-bottom: .4rem; }
.step p  { font-size: .85rem; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block { }

.contact-info-block h2 { margin-bottom: 1rem; }
.contact-info-block > p { margin-bottom: 2rem; line-height: 1.75; }

.expect-list { margin-bottom: 2.5rem; }
.expect-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.expect-list li i {
  color: var(--accent);
  margin-top: .15rem;
  flex-shrink: 0;
}

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-detail-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: .1rem;
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}

.contact-detail-item a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-detail-item a:hover { color: var(--accent); }

.contact-detail-item span.value {
  color: var(--text);
  font-size: .95rem;
}

/* ---------- CONTACT FORM ---------- */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

.contact-form-wrap > p {
  margin-bottom: 2rem;
  font-size: .9rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .45rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: #4a5568; }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

select { cursor: pointer; 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='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

select option { background: var(--bg-card); color: var(--text); }

textarea { min-height: 130px; resize: vertical; }

.form-submit { margin-top: 1.5rem; }

.form-trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .85rem;
}
.form-trust i { color: var(--accent); }

/* ---------- SERVICE AREAS ---------- */
.service-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.area-tag {
  background: rgba(56,189,248,.06);
  border: 1px solid rgba(56,189,248,.15);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.footer-contact-list li i { color: var(--accent); font-size: .95rem; width: 16px; }
.footer-contact-list a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--accent); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ---------- DIVIDER ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
  margin: 1rem 0 2rem;
}

.divider-center { margin: 1rem auto 2rem; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  section { padding: 3.5rem 0; }
  .hero   { padding: 4rem 0 3rem; }

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

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .process-steps { grid-template-columns: 1fr 1fr; }

  .service-detail-header { flex-direction: column; gap: .75rem; }
}

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

  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .process-steps { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 1.5rem; }
}
