/* ============================================================
   ATM GROUP — Shared Stylesheet
   ============================================================ */

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

:root {
  --font: 'Poppins', sans-serif;
  --white: #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --anthracite: #2b2b2b;

  /* Set per page */
  --primary:      #e8731a;
  --primary-dark: #c05f10;
  --primary-rgb:  232, 115, 26;

  --transition: all 0.32s ease;
  --shadow:    0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --radius:    8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1,h2,h3,h4,h5 { line-height: 1.18; font-weight: 700; }

/* --- Utilities --------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--anthracite);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.45);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--anthracite);
  transform: translateY(-3px);
}

/* === HEADER / NAV =========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: var(--transition);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -0.5px;
}
.nav-logo .logo-main em { color: var(--primary); font-style: normal; }
.nav-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  transition: all 0.28s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-2px) !important; }
.nav-cta::after { display: none !important; }

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

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
  z-index: 999;
  border-top: 1px solid var(--gray-200);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid var(--gray-100); }
.nav-mobile ul a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.22s;
}
.nav-mobile ul a:hover { color: var(--primary); }
.nav-mobile .mob-cta { margin-top: 1rem; display: block; text-align: center; }

/* === HERO =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 820px;
  padding: 2rem;
  margin-top: 68px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
  display: block;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  opacity: 0.88;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2.2s infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === ABOUT ================================================== */
.about { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p { color: var(--gray-600); margin-bottom: 1.4rem; font-size: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

.about-visual {
  position: relative;
  height: 460px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-accent {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 160px;
  height: 160px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  opacity: 0.12;
  z-index: -1;
}

/* === SERVICES =============================================== */
.services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.srv-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}
.srv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-color: rgba(var(--primary-rgb), 0.25);
}

.srv-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.srv-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.4rem;
}
.srv-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* === GALLERY ================================================ */
.gallery { background: var(--gray-900); }
.gallery .section-title { color: #fff; }
.gallery .section-sub   { color: rgba(255,255,255,0.55); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 3rem;
}

.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  height: 220px;
}
.gal-item:first-child { grid-column: span 2; height: 320px; }

.gal-bg {
  width: 100%; height: 100%;
  transition: transform 0.55s ease;
}
.gal-item:hover .gal-bg { transform: scale(1.06); }

.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.32s;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* === WHY US ================================================= */
.why { background: #fff; }

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

.why-card {
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}

.why-icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* === CONTACT ================================================ */
.contact { background: var(--gray-50); }

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--anthracite);
  margin-bottom: 1.75rem;
}

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

.f-group { margin-bottom: 1.15rem; }
.f-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
  -webkit-appearance: none;
}
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.f-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.35);
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.45);
}

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }

.info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-ic {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-text h4 { font-size: 0.82rem; font-weight: 700; color: var(--anthracite); margin-bottom: 0.2rem; }
.info-text p  { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.info-text a  { color: var(--primary); text-decoration: none; font-weight: 600; }

.urgency-box {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(220,38,38,0.3);
}
.urgency-box p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 1rem; line-height: 1.6; }
.urgency-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #dc2626;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.urgency-box a:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* === FOOTER ================================================= */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.55);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .fb-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 0.75rem;
}
.footer-brand .fb-logo em { color: var(--primary); font-style: normal; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; }

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.22s, padding-left 0.22s;
}
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-col p { font-size: 0.85rem; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.22s; }
.footer-bottom a:hover { color: var(--primary); }

/* === BACK BUTTON ============================================ */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 998;
  transition: var(--transition);
}
.btn-back:hover { color: var(--primary); transform: translateY(-2px); }

/* === SCROLL ANIMATION ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* === RESPONSIVE ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid  { gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .about-accent { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gal-item:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gal-item:first-child { grid-column: span 1; height: 220px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
