:root {
  --bg: #ffffff;
  --bg-alt: #f3f3f1;
  --text: #111111;
  --muted: #5c5c5c;
  --line: #e4e4e0;
  --accent: #ff5a1f;
  --accent-dark: #e44810;
  --radius: 14px;
  --max: 1240px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85em 1.5em;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #ececec; }
.btn-small { padding: .6em 1.1em; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-mark { width: 44px; height: 44px; margin-right: -4px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .2s, top .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.open span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  background: #222;
}
.hero-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 56px; max-width: 860px; }
.hero-content p { font-size: 1.15rem; opacity: .9; max-width: 560px; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 440px; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); }
.service-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .thumb img { transform: scale(1.04); }
.service-body { padding: 22px 24px 26px; }
.service-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 90, 31, .1);
  padding: .25em .7em;
  border-radius: 4px;
  margin-bottom: .8rem;
}

.service-card.featured { grid-column: span 2; grid-row: span 1; }
.service-card.featured .thumb { aspect-ratio: auto; flex: 1; min-height: 260px; }
.service-card.featured h3 { font-size: 1.5rem; }

/* How we work */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
}
.info-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.info-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* About */
.about-text { max-width: 820px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.about-list li { padding: .7em 0 .7em 1.6em; border-top: 1px solid var(--line); font-weight: 600; position: relative; }
.about-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }

/* Contact */
.contact-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  min-height: 320px;
  border-left: 8px solid var(--accent);
  display: flex;
  align-items: center;
}
.contact-content { position: relative; color: #fff; padding: 56px; max-width: 640px; }
.contact-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-addr { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { font-weight: 600; font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { color: var(--muted); font-size: .85rem; margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 4px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  .hero { padding-top: 16px; }
  .hero-card { min-height: 520px; }
  .hero-content h1 br { display: none; }
  .hero-content, .contact-content { padding: 28px 24px; }
  .section { padding: 64px 0; }
  .service-grid, .info-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: auto; }
  .service-card.featured .thumb { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
