/*
Theme Name: Elmina Clean
Version: 2.0
*/

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

:root {
  --blue: #0a4f8a;
  --blue-dark: #062e52;
  --blue-light: #e6f2ff;
  --sky: #38bdf8;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b; line-height: 1.7; background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all 0.4s;
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  box-shadow: 0 1px 30px rgba(10,79,138,0.08); padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 800; color: white; transition: 0.4s; }
.logo span { font-weight: 300; }
.header.scrolled .logo { color: var(--blue-dark); }
.nav { display: flex; gap: 28px; list-style: none; }
.nav a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: 0.3s; position: relative;
}
.nav a:hover { color: white; }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--sky); transition: 0.3s; border-radius: 2px;
}
.nav a:hover::after { width: 100%; }
.header.scrolled .nav a { color: var(--gray); }
.header.scrolled .nav a:hover { color: var(--blue); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.header.scrolled .menu-btn span { background: var(--blue-dark); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center; color: white;
}
.hero-slider {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.5s ease, transform 8s ease;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1; transform: scale(1);
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(6,46,82,0.85) 0%, rgba(10,79,138,0.7) 50%, rgba(56,189,248,0.5) 100%);
}

/* Floating particles */
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08);
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 3; max-width: 680px; padding: 0 24px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease 0.2s both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.7;
  animation: fadeUp 1s ease 0.4s both;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s ease 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 50px; font-size: 15px; font-weight: 600;
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-white { background: white; color: var(--blue-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.btn-glass { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-glass:hover { background: rgba(255,255,255,0.2); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,79,138,0.3); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.stag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); background: var(--blue-light);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 12px;
}
.stitle { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.ssub { color: var(--gray); font-size: 1.05rem; max-width: 540px; }

/* ===== SERVICES (simple grid) ===== */
.services { background: var(--gray-light); }
.services-head { text-align: center; margin-bottom: 48px; }
.services-head .ssub { margin: 0 auto; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard {
  background: white; border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.4s; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.scard:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10,79,138,0.1); border-color: rgba(56,189,248,0.2); }
.scard-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-light), #dbeafe);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 24px;
  transition: 0.4s;
}
.scard:hover .scard-icon { background: linear-gradient(135deg, var(--blue), var(--sky)); transform: scale(1.08); }
.scard h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.scard p { color: var(--gray); font-size: 0.93rem; line-height: 1.6; }

/* ===== ABOUT ===== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-box { position: relative; }
.about-img {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 20px 50px rgba(10,79,138,0.12);
}
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: white; border-radius: 16px; padding: 16px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 12px;
}
.about-badge-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; font-weight: 700;
}
.about-badge-text { font-size: 13px; color: var(--gray); }
.about-badge-text strong { display: block; font-size: 18px; color: #1e293b; }
.about-text .stag { margin-bottom: 12px; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text > p { color: var(--gray); margin-bottom: 20px; }
.about-list { list-style: none; margin-bottom: 28px; }
.about-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-weight: 500; font-size: 0.95rem;
}
.about-list .ck {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ===== OWNER PHOTO ===== */
.owner-photo {
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  border: 4px solid white; box-shadow: 0 8px 30px rgba(10,79,138,0.15);
  margin: 0 auto 20px;
}
.owner-photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-placeholder {
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: white;
  border: 4px solid white; box-shadow: 0 8px 30px rgba(10,79,138,0.15);
  margin: 0 auto 20px;
}

/* ===== AREAS ===== */
.areas {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white; text-align: center;
}
.areas .stag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
.areas .stitle { color: white; }
.areas .ssub { color: rgba(255,255,255,0.7); margin: 0 auto 40px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 700px; margin: 0 auto; }
.atag {
  padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  transition: 0.3s;
}
.atag:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ===== CONTACT ===== */
.contact { background: var(--gray-light); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.contact-info > p { color: var(--gray); margin-bottom: 28px; }
.cdetails { list-style: none; }
.cdetails li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
.cdetails li:last-child { border: none; }
.cicon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}
.ctext strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ctext span, .ctext a { font-size: 14px; color: var(--gray); }
.ctext a:hover { color: var(--blue); }

.cform {
  background: white; border-radius: var(--radius); padding: 40px;
  box-shadow: 0 4px 24px rgba(10,79,138,0.06);
}
.cform h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-size: 14px; font-family: inherit; transition: 0.3s;
  background: white;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}
.fg textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.6); padding: 48px 0 24px;
  text-align: center; font-size: 14px;
}
.footer .logo { color: white; margin-bottom: 8px; display: inline-block; font-size: 22px; }
.footer p { margin-bottom: 16px; max-width: 400px; margin-left: auto; margin-right: auto; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.footer-bottom a { color: var(--sky); }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1; transform: none; }

/* Staggered children */
.stagger .scard { opacity: 0; transform: translateY(24px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.stagger.visible .scard:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger.visible .scard:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger.visible .scard:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger.visible .scard:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger.visible .scard:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.stagger.visible .scard:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; position: fixed; inset: 0; background: rgba(6,46,82,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 20px; z-index: 999; backdrop-filter: blur(10px); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.3rem; color: white !important; }
  .menu-btn { display: block; z-index: 1000; }
  .menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .sgrid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
