/* ===================================================
   Ember Business Services — Custom Styles
   =================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FAFC;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #C9A227;
  border-radius: 3px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.animate-fade-in {
  animation: fadeInUp 0.7s ease both;
}
.animate-fade-in-delay {
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ---------- Flame flicker on hover ---------- */
.flame-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}
.flame-icon:hover,
a:hover .flame-icon {
  animation: flicker 0.8s ease-in-out infinite;
}

/* ---------- Navbar ---------- */
#navbar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A227;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Language toggle */
.lang-toggle {
  cursor: default;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0 2px;
}
.lang-btn.active {
  color: #C9A227 !important;
}
.lang-btn:not(.active) {
  color: #6B7280;
}
.lang-btn:hover {
  color: #C9A227;
}

/* ---------- Hero ---------- */
#home {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 41, 59, 0.45) 60%, rgba(15, 23, 42, 0.55) 100%),
    url('../images/background cff.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  will-change: background-position;
}
#home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
#home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Text readability over background image */
#home h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.7);
}
#home p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
#home .text-gold {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
#home .text-gray-400,
#home .text-gray-300 {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* Photo placeholders */
.photo-placeholder,
.photo-placeholder-about {
  position: relative;
}
.photo-placeholder img,
.photo-placeholder-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.btn-primary:active,
.btn-gold:active {
  transform: translateY(0) !important;
}

/* ---------- About Section ---------- */
#about {
  background-color: #F8FAFC;
}

.stat-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.about-accent {
  pointer-events: none;
}

/* ---------- Services Section ---------- */
#services {
  background: linear-gradient(180deg, #0F172A 0%, #111827 100%);
}

.service-card {
  cursor: default;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.1);
}

/* ---------- How It Works ---------- */
#how-it-works {
  background:
    linear-gradient(rgba(10, 18, 35, 0.62), rgba(10, 18, 35, 0.62)),
    url('../images/mountains cff.png') center 50% / cover no-repeat;
  will-change: background-position;
}

/* Text colors over the mountain image */
#how-it-works h2,
#how-it-works h3 {
  color: #ffffff !important;
}
#how-it-works p,
#how-it-works .text-gray-500 {
  color: rgba(255, 255, 255, 0.82) !important;
}
#how-it-works .text-gold {
  color: #C9A227 !important;
}
#how-it-works .w-8.h-0\.5.bg-gold {
  opacity: 0.9;
}

.step-card .step-number {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step-card:hover .step-number {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px rgba(201, 162, 39, 0.15);
}

/* ---------- Contact Section ---------- */
#contact {
  background: linear-gradient(180deg, #111827 0%, #0F172A 100%);
}

.contact-info-card {
  transition: border-color 0.2s ease;
}
.contact-info-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

/* Form inputs */
input:focus,
textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---------- Footer ---------- */
footer {
  background-color: #030712;
}

/* ---------- Scroll-reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  #home {
    text-align: center;
  }
  #home .flex.flex-wrap.gap-4 {
    justify-content: center;
  }
  #home .flex.flex-wrap.gap-6 {
    justify-content: center;
  }
}

/* ---------- Focus accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 3px;
  border-radius: 4px;
}

/* =======================================================
   Square Elements (service cards, photo, stat badges)
   ======================================================= */

/* ---- Service Squares ---- */
.service-square {
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-top: 3px solid #C9A227;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  height: 360px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-square:hover {
  box-shadow: 0 18px 44px rgba(201, 162, 39, 0.22),
              0 4px 12px rgba(0, 0, 0, 0.08),
              0 0 0 3px rgba(201, 162, 39, 0.15);
  transform: translateY(-6px);
}

/* Top white header */
.service-square .card-header {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1.25rem 1.1rem;
  flex-shrink: 0;
}

/* Yellow divider bar */
.service-square .card-divider {
  height: 4px;
  background: #C9A227;
  width: 100%;
  flex-shrink: 0;
}

/* Bottom image area — fixed height so all cards are consistent */
.service-square .card-image {
  height: 195px;
  flex-shrink: 0;
  overflow: hidden;
}
.service-square .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.service-square:hover .card-image img {
  transform: scale(1.05);
}

/* Icon */
.service-square .square-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.06));
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.service-square:hover .square-icon {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0.1));
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3);
  transform: scale(1.08);
}
.service-square .square-icon svg {
  width: 2rem !important;
  height: 2rem !important;
  color: #C9A227 !important;
}

/* Text */
.service-square h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: #0F172A;
}
.service-square p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
}

/* ---- Services Square Grid ---- */
.services-square-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .services-square-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .service-square {
    height: 300px;
  }
  .service-square .card-image {
    height: 150px;
  }
  .service-square .card-header {
    padding: 1rem 0.75rem 0.75rem;
  }
}

/* ---- Hero Photo Square ---- */
.photo-square-hero {
  width: 300px;
  height: 360px;
  border-radius: 1.5rem;
  border: 2px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .photo-square-hero { width: 240px; height: 288px; }
}

/* ---- About Photo Square ---- */
.photo-square-about {
  width: 300px;
  height: 300px;
  border-radius: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
}
@media (max-width: 640px) {
  .photo-square-about { width: 240px; height: 240px; }
}

/* ---- Stat Squares ---- */
.stat-square {
  width: 115px;
  height: 115px;
  border-radius: 0.875rem;
  background: white;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.stat-square:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

/* =======================================================
   Service Modal
   ======================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: 1.5rem;
  border-top: 4px solid #C9A227;
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.15);
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #C9A227 #f1f5f9;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.modal-close-btn:hover {
  background: #fff;
  transform: scale(1.08);
}
.modal-close-btn svg {
  width: 18px;
  height: 18px;
  color: #374151;
}

/* Top image */
.modal-image {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  flex-shrink: 0;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Header: icon + title */
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.75rem;
  margin-top: -26px;
  gap: 0.75rem;
}
.modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.07));
  border: 2px solid rgba(201, 162, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.28), 0 0 0 4px #fff;
  flex-shrink: 0;
}
.modal-icon svg {
  width: 26px !important;
  height: 26px !important;
  color: #C9A227 !important;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0;
}

/* Gold divider */
.modal-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #C9A227 30%, #C9A227 70%, transparent);
  margin: 1.1rem 1.75rem;
  border-radius: 2px;
  opacity: 0.7;
}

/* Content */
.modal-content {
  padding: 0 1.75rem 1.75rem;
}
.modal-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: #1e293b;
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.modal-list li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  padding-left: 1.6rem;
  position: relative;
}
.modal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #C9A227;
  font-weight: bold;
  font-size: 0.85rem;
  top: 0.15rem;
}

/* Mobile modal */
@media (max-width: 640px) {
  .modal-box { border-radius: 1.25rem; max-height: 95vh; }
  .modal-image { height: 170px; }
  .modal-title { font-size: 1.15rem; }
  .modal-intro { font-size: 0.9rem; }
  .modal-list li { font-size: 0.875rem; }
  .modal-header { padding: 0 1.25rem; }
  .modal-content { padding: 0 1.25rem 1.5rem; }
  .modal-divider { margin: 1rem 1.25rem; }
}
