/* ==========================================================================
   BESI HUB NUR — STYLESHEET
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1. Design tokens (colors, fonts, spacing)   -> edit colors here
      + light/dark theme tokens (--surface-*, --text-*, --border-color)
   2. Reset & base
   3. Layout helpers
   4. Navigation (incl. dark mode toggle button)
   5. Hero
   6. Section dividers (signature "sheared metal" edge)
   7. Why Choose Us (weigh-tag cards)
   8. Services
   9. Gallery
   10. Videos
   11. Service Areas
   12. Contact CTA
   13. Footer
   14. Animations
   15. Responsive
   ========================================================================== */

/* -----------------------------------------------------------
   1. DESIGN TOKENS
   To change the color scheme, edit only the variables below.
----------------------------------------------------------- */
:root {
  --primary: #0F766E;
  --primary-dark: #0B5B54;
  --secondary: #16A34A;
  --accent: #F59E0B;
  --dark: #111827;
  --light: #F8FAFC;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;

  --font-display: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.16);

  --container-width: 1180px;
  --header-height: 76px;

  /* Theme-able surface & text tokens (used so light/dark mode can swap
     just these, without touching the brand colors above). */
  --surface-page: var(--white);
  --surface-alt: var(--light);
  --surface-card: var(--white);
  --text-heading: var(--dark);
  --text-body: var(--gray);
  --border-color: var(--gray-light);
  --header-bg: rgba(248, 250, 252, 0.9);
}

/* Dark mode overrides. Toggled via a `data-theme="dark"` attribute on
   <html>, set by script.js (button click) or the visitor's OS preference.
   Brand colors (--primary/--secondary/--accent) stay the same in both
   modes on purpose — only the page surfaces and text invert. */
[data-theme="dark"] {
  --surface-page: #0B1220;
  --surface-alt: #111827;
  --surface-card: #17202F;
  --text-heading: #F8FAFC;
  --text-body: #9CA3AF;
  --border-color: #263042;
  --header-bg: rgba(11, 18, 32, 0.85);
}

/* -----------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-heading);
  background: var(--surface-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text-heading);
}

p { margin: 0 0 1em; color: var(--text-body); }

a { color: inherit; text-decoration: none; }

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

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.section { padding: 100px 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 640px;
}

.icon { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #128a44; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(248, 250, 252, 0.6);
}
.btn-outline:hover { background: rgba(248, 250, 252, 0.12); }

.btn-cta {
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-cta:hover { background: #1f2937; }

.btn-cta-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(17, 24, 39, 0.25);
}
.btn-cta-outline:hover { background: rgba(17, 24, 39, 0.06); }

/* Ripple effect */
.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  width: 10px; height: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}
.ripple.rippling::after {
  animation: rippleAnim 0.6s ease-out;
}
@keyframes rippleAnim {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(28); }
}

/* -----------------------------------------------------------
   4. NAVIGATION
----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-color);
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface-card);
  color: var(--text-heading);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { transform: rotate(14deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-body);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.hamburger span {
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------
   5. HERO
----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: url('images/hero-bg.svg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.55) 0%, rgba(17,24,39,0.78) 70%, rgba(17,24,39,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(248, 250, 252, 0.85);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(248, 250, 252, 0.6);
  border-radius: 20px;
}
.scroll-indicator span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* -----------------------------------------------------------
   6. SECTION DIVIDER — signature "sheared metal" edge
----------------------------------------------------------- */
.section-divider {
  height: 26px;
  background: var(--white);
  clip-path: polygon(
    0 100%, 0 40%, 4% 0, 9% 55%, 15% 10%, 22% 60%, 29% 5%,
    36% 50%, 43% 0, 50% 55%, 57% 8%, 64% 60%, 71% 10%,
    78% 55%, 85% 0, 92% 60%, 100% 20%, 100% 100%
  );
  position: relative;
  margin-top: -1px;
}

/* -----------------------------------------------------------
   7. WHY CHOOSE US — weigh-tag cards (signature element)
----------------------------------------------------------- */
.why-choose { background: var(--surface-alt); }

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tag-card {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm);
  padding: 40px 26px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, rotate 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  transform-origin: top center;
}
.tag-card:hover {
  transform: translateY(-6px) rotate(-1.2deg);
  box-shadow: var(--shadow-lg);
}

.tag-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 3px solid var(--border-color);
}

.tag-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.tag-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tag-card p { font-size: 0.94rem; margin-bottom: 0; }

/* -----------------------------------------------------------
   8. SERVICES
----------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: none; }

.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: 0.9rem; margin-bottom: 0; }

/* -----------------------------------------------------------
   9. GALLERY
----------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(17,24,39,0.75));
}

/* -----------------------------------------------------------
   10. VIDEOS
----------------------------------------------------------- */
.videos { background: var(--dark); }
.videos .section-eyebrow { color: var(--accent); }
.videos h2 { color: var(--white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: #1f2937;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0F766E, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }

.video-card p {
  padding: 14px 18px 18px;
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.92rem;
  margin: 0;
}

/* -----------------------------------------------------------
   11. SERVICE AREAS
----------------------------------------------------------- */
.areas-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border-color);
}
.pin {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.area-map { display: flex; justify-content: center; }
.area-map img { width: 100%; max-width: 360px; }

/* -----------------------------------------------------------
   12. CONTACT CTA
----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-content { max-width: 640px; margin: 0 auto; }
.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta p { color: rgba(248, 250, 252, 0.85); font-size: 1.1rem; margin-bottom: 36px; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-cta-outline {
  color: var(--white);
  border-color: rgba(248, 250, 252, 0.5);
}
.cta .btn-cta-outline:hover { background: rgba(248, 250, 252, 0.12); }

/* -----------------------------------------------------------
   13. FOOTER
----------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(248, 250, 252, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}
.footer-logo { margin-bottom: 16px; height: 36px; width: auto; }
.footer-grid h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 8px; }

.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.socials a:hover { background: var(--accent); }
.socials svg { width: 16px; height: 16px; fill: var(--white); }

.footer-lang-switch { border-color: rgba(248, 250, 252, 0.2); }
.footer-lang-switch .lang-btn { color: rgba(248, 250, 252, 0.7); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* -----------------------------------------------------------
   14. ANIMATIONS
----------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------
   15. RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--surface-page);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--border-color); }
  .nav-links a { display: block; padding: 14px 0; }
  .hamburger { display: flex; }

  .section { padding: 64px 0; }

  .tag-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { min-height: 100vh; }
  .hero-content { padding-bottom: 64px; }
}
.area-map{
    overflow:hidden;
    border-radius:20px;
    background:#161616;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.area-map iframe{
    width:100%;
    height:360px;
    display:block;
    border:0;
}