/* =========================================================
   Irfulabs — Static Site Stylesheet
   Design tokens, layout, components.
   ========================================================= */

:root {
  /* Brand */
  --brand-1: #0b1d3a;
  --brand-2: #0e2a4f;
  --accent:  #00c2a8;
  --accent-2: #2dd4bf;
  --accent-soft: rgba(0, 194, 168, 0.12);

  /* Neutrals */
  --bg:        #f7f9fc;
  --bg-alt:    #eef2f7;
  --surface:   #ffffff;
  --border:    #e3e8ef;
  --ink:       #0c1726;
  --ink-soft:  #3b475c;
  --muted:     #6b7689;

  /* Effects */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 23, 38, 0.06);
  --shadow:    0 8px 24px rgba(12, 23, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 23, 38, 0.12);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

p { margin: 0 0 1em; color: var(--ink-soft); }

ul { padding-left: 1.1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .75rem;
}

.placeholder {
  font-style: italic;
  color: var(--muted);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #00251e;
  box-shadow: 0 6px 18px rgba(0, 194, 168, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 194, 168, 0.45); color: #00251e; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 800;
}
.brand:hover { color: var(--ink); }
.brand-name { font-size: 1.1rem; letter-spacing: -.01em; }
.brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active { position: relative; }
.nav-links a.active:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 194, 168, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(45, 212, 191, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--ink); font-size: 1.05rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(11, 29, 58, 0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* =========================================================
   Page hero (services / contact)
   ========================================================= */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(0, 194, 168, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 64ch; font-size: 1.1rem; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* =========================================================
   Cards grid (home services)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 194, 168, 0.5);
}
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card-icon img { width: 32px; height: 32px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }

/* =========================================================
   Steps
   ========================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.step-num {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; font-size: .95rem; }

/* =========================================================
   Service rows (services page)
   ========================================================= */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.service-row.reverse { grid-template-columns: 1.5fr 1fr; }
.service-row.reverse .service-art { order: 2; }
.service-row.reverse .service-copy { order: 1; }

.service-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-art img {
  width: 220px;
  height: 220px;
  padding: 36px;
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: .55rem;
}
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: .85em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.contact-info h2 { margin-bottom: .25rem; }

.info-block {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
}
.info-block:first-of-type { margin-top: 1rem; }
.info-block h3 { margin: 0 0 .15rem; font-size: 1rem; }
.info-block p { margin: 0; font-size: .95rem; }

.info-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; }

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.contact-form h2 { margin-bottom: .25rem; }
.contact-form > p { margin-bottom: 1.4rem; }

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-form label em { font-weight: 400; font-style: normal; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-form textarea { resize: vertical; }

.form-status {
  margin: 1rem 0 0;
  font-size: .9rem;
  min-height: 1.2em;
}
.form-status.success { color: #047857; }
.form-status.error   { color: #b91c1c; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--brand-1);
  color: rgba(255,255,255,0.78);
  padding-top: clamp(40px, 6vw, 64px);
  margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: .8rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,0.55); }
.site-footer .placeholder { color: rgba(255,255,255,0.55); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: .45rem;
  font-size: .92rem;
}
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: .82rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid,
  .service-row,
  .service-row.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-art { order: 0; }
  .service-row.reverse .service-copy { order: 0; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active:not(.btn)::after { display: none; }
  .nav-links .btn { margin: .5rem 0; align-self: flex-start; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
