/* =========================================================
   UpdateTech — Corporate site stylesheet
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --ink: #300A0A;
  --ink-2: #5F3333;
  --muted: #906B6B;
  --line: #F2E3E3;
  --brand: #D60A0A;
  --brand-2: #C70000;
  --accent: #4B4B4D;
  --dark: #333333;
  --shadow: 0 10px 30px rgba(10, 30, 70, .08);
  --radius: 14px;
  --container: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -.01em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------- Header ------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.site-nav a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 10px 20px; border-radius: 8px; }
.nav-cta:hover { background: var(--dark); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .3s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 20px 24px;
    gap: 8px; transform: translateY(-120%); transition: .3s;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ------- Buttons ------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: .25s; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #9B9C9F); color: #fff; box-shadow: 0 6px 20px rgba(93,93,94,0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(93,93,94,0.45); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; margin-top: 16px; }

/* ------- Hero ------- */
.hero { position: relative; min-height: 92vh; margin-top: 74px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-inner { color: #fff; max-width: 780px; padding: 60px 24px; }
.eyebrow { display: inline-block; padding: 6px 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.slide h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 700; line-height: 1.1; margin-bottom: 22px; }
.slide p { font-size: 18px; opacity: .9; margin-bottom: 34px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: #fff; cursor: pointer; z-index: 5; transition: .25s;
}
.slide-nav:hover { background: rgba(255,255,255,.3); }
.slide-nav.prev { left: 24px; } .slide-nav.next { right: 24px; }
.slide-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slide-dots button { width: 30px; height: 4px; border: 0; border-radius: 3px; background: rgba(255,255,255,.35); cursor: pointer; transition: .25s; }
.slide-dots button.active { background: #fff; width: 44px; }

/* ------- Sections ------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; margin: 12px 0 16px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 17px; }
.lead { font-size: 18px; color: var(--ink-2); margin-bottom: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ------- About ------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 28px; color: var(--brand); font-family: 'Space Grotesk'; }
.stats span { font-size: 13px; color: var(--muted); }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.about-card i { font-size: 28px; color: var(--brand); margin-bottom: 14px; }
.about-card h4 { font-size: 17px; margin-bottom: 6px; }
.about-card p { font-size: 14px; color: var(--muted); }

/* ------- Grid & Services ------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; padding: 36px 30px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ------- Industries ------- */
.industries-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media (max-width: 900px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
.industry-item {
  text-align: center; padding: 30px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: .25s;
}
.industry-item:hover { border-color: var(--brand); transform: translateY(-4px); }
.industry-item i { font-size: 32px; color: var(--brand); margin-bottom: 12px; display: block; }
.industry-item span { font-size: 14px; font-weight: 500; }

/* ------- Gallery ------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 4/3; overflow: hidden; border-radius: 12px;
  background: linear-gradient(135deg, #d9e3f5, #eef3fb);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--muted); position: relative; cursor: pointer;
}
.gallery-item.placeholder i { font-size: 34px; opacity: .35; margin-bottom: 6px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-hint { text-align: center; margin-top: 20px; color: var(--muted); font-size: 13px; }
.gallery-hint code { background: #fff; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 999; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox .close { position: absolute; top: 24px; right: 24px; color: #fff; font-size: 28px; background: none; border: 0; cursor: pointer; }

/* ------- Contact ------- */
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li i { color: var(--brand); margin-top: 4px; min-width: 20px; }
.contact-form {
  background: #fff; padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 15px; transition: .2s; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,75,214,.1); }
.form-status { margin-top: 14px; padding: 12px; border-radius: 8px; font-size: 14px; display: none; }
.form-status.success { display: block; background: #e6f7ea; color: #1a7a3a; border: 1px solid #b8e6c6; }
.form-status.error { display: block; background: #fdecec; color: #a1272a; border: 1px solid #f2b8b8; }

/* ------- Footer ------- */
.site-footer { background: var(--dark); color: #b8c4dc; padding: 70px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.site-footer p, .site-footer a { color: #b8c4dc; font-size: 14px; line-height: 1.9; }
.site-footer a:hover { color: var(--brand-2); }
.footer-brand { color: #fff; font-size: 26px; margin-bottom: 14px; }
.footer-brand span { color: var(--brand-2); }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; color: #7a8aa8; }

/* ------- Back to top ------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
  box-shadow: 0 6px 20px rgba(10,75,214,.4);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--dark); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
