/*
Theme Name: Burok Consulting Theme
Author: Super Mario
Description: Custom theme for Burok Consulting
Version: 1.2
*/

/* ===== ROOT VARIABLES ===== */
:root {
  --blue: #115bdc;
  --blue-deep: #194fa6;
  --navy: #08275f;
  --midnight: #01102a;
  --offwhite: #f9fafc;

  --text: #0c1220;
  --muted: #556070;

  --border-light: 1px solid rgba(0,0,0,0.06);
  --border-soft: 1px solid rgba(0,0,0,0.1);

  --shadow-sm: 0 6px 16px rgba(1,16,42,0.08);
  --shadow-md: 0 12px 30px rgba(1,16,42,0.18);

  --radius: 14px;
  --radius-sm: 10px;

  --transition: all 0.2s ease;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

section {
  padding: 72px 0;
  scroll-margin-top: 80px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-light);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandMark {
  width: 120px;
}

.brandMark img {
  width: 100%;
}

.brandText span:last-child {
  font-size: 12px;
  color: var(--muted);
}

/* ===== MENU ===== */
.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  position: relative;
  font-weight: 600;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: 0.2s;
}

.menu a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER MENU BUTTON ===== */
.menuBtn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  z-index: 100;
}

.menuBtn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

/* Hamburger animation when open */
.menuBtn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menuBtn.open span:nth-child(2) {
  opacity: 0;
}

.menuBtn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobileMenu {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.mobileMenu.open {
  display: flex;
}

@media (max-width: 840px) {
  .menu { display: none; }
  .menuBtn { display: flex; }
}
/* ===== MOBILE MENU ANIMATION ===== */
.menuBtn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menuBtn.open span:nth-child(2) {
  opacity: 0;
}
.menuBtn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== SERVICE MODAL ===== */
.serviceModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.serviceModal.open {
  display: flex;
}

.modalContent {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

#modalClose {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
/* ===== HERO (PREMIUM) ===== */
.hero {
  background: #f9fafc !important;
  background-image: none !important;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.heroContent h1 {
  font-size: 48px;
  color: var(--navy);
}

.heroContent p {
  font-size: 18px;
  max-width: 520px;
}

.heroImage {
  position: relative;
}

.heroImage img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.heroBadge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ===== ABOUT ===== */
.about {
  background: #f9fafc;
}

.aboutGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.aboutMedia {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.aboutMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.aboutMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.15));
  pointer-events: none;
}

.aboutCard {
  padding: 36px;
}

.aboutText {
  font-size: 17px;
  margin-bottom: 20px;
}

.aboutHighlights {
  list-style: none;
  padding: 0;
}

.aboutHighlights li {
  margin-bottom: 10px;
}

/* ===== SERVICES CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carouselViewport {
  overflow: hidden;
  width: 100%;
}

.carouselTrack {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 calc((100% - 32px)/3);
  overflow: hidden;
  min-width: 0;
}

.slideMedia {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
}

.slideMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideBody {
  padding: 20px;
}

/* DOTS & ARROWS */
.carouselDots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carouselDots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(17,91,220,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.carouselDots .dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

.carouselArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}

.carouselArrow:hover {
  background: var(--blue);
  color: #fff;
}

.carouselArrow.left {
  left: 12px;
}

.carouselArrow.right {
  right: 12px;
}

/* ===== CONTACT ===== */
input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: var(--border-soft);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .heroGrid,
  .aboutGrid {
    gap: 40px;
  }

  .slide {
    flex: 0 0 calc((100% - 16px)/2);
  }
}

@media (max-width: 720px) {
  .heroGrid,
  .aboutGrid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .heroContent h1 {
    font-size: 28px;
  }

  .slide {
    flex: 0 0 80%;
    min-width: 80%;
  }

  .slideMedia {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .slide {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
}
/* ===== HEADER BUTTON NAV ===== */

.navLinks {
  display: flex;
  gap: 12px;
}

.navLinks a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: #1a2a44;
  border: 1px solid #1a2a44;
  background: transparent;
  transition: all 0.25s ease;
}

/* Hover effect */
.navLinks a:hover {
  background: #1a2a44;
  color: #fff;
}

/* Highlight Contact button */
.navLinks a:last-child {
  background: #1a2a44;
  color: #fff;
  border: none;
}

.navLinks a:last-child:hover {
  background: #0f1d33;
}

/* Mobile */
@media (max-width: 767px) {
  .navLinks {
    flex-direction: column;
  }

  .navLinks a {
    width: 100%;
    text-align: center;
  }
}