@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:        #0a0a0a;
  --dark:         #111111;
  --dark-mid:     #1a1a1a;
  --dark-surface: #222222;
  --border:       #2e2e2e;
  --border-light: #3d3d3d;
  --white:        #f0ece4;
  --white-dim:    #b8b2a8;
  --white-muted:  #6b6560;
  --accent:       #e8d5b0;
  --accent-bright:#f5e6c8;
  --accent-glow:  #c9a96e;
  --accent-dim:   #8a6e3f;
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(200,169,110,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(200,169,110,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 12s ease-in-out infinite alternate;
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientShift {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.navbar .menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

/* Override li styles inside navbar */
.navbar .menu li {
  padding: 0;
  max-width: none;
}
.navbar .menu li::before { display: none; }

.navbar .menu a {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}

.navbar .menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar .menu a:hover { color: var(--accent-bright); }
.navbar .menu a:hover::after { width: 100%; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  clip-path: none; /* override global button clip-path */
  color: inherit;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-dim);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.25s;
}

.hamburger:hover span { background: var(--accent-bright); }

/* Animate to X */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── SECTION BASE ─── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 6vw 80px;
}

/* ─── HOME SECTION ─── */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.home-inner {
  display: flex;
  align-items: center;
  gap: 5vw;
  width: 100%;
  padding: 60px 0 40px;
}

/* LEFT column */
.home-text {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Accent top line */
.home-info {
  height: 2px;
  width: 80px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: lineGrow 1s ease forwards;
}

@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}

.home-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.97;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  animation: fadeUp 0.9s 0.2s ease both;
}

.home-text h4 {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
  animation: fadeUp 0.9s 0.4s ease both;
}

.home-text button {
  align-self: flex-start;
  animation: fadeUp 0.9s 0.6s ease both;
}

/* RIGHT column */
.home-image {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
  animation: fadeIn 1.2s 0.3s ease both;
}

.home-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid var(--border-light);
  filter: grayscale(25%) contrast(1.1);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* Decorative corner accent */
.home-image::before {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--accent-dim);
  border-right: 2px solid var(--accent-dim);
  pointer-events: none;
}

.home-image::after {
  content: '';
  position: absolute;
  bottom: -10px; left: -10px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--accent-dim);
  border-left: 2px solid var(--accent-dim);
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── BUTTONS ─── */
button {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.25s, transform 0.2s;
}

button:hover { background: var(--accent-bright); transform: translateY(-2px); }

button a {
  color: var(--black);
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ─── DIVIDER LINES ─── */
.about-info,
.services-info,
.contact-info {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
  width: 80px;
  margin-bottom: 2.5rem;
}

/* ─── HEADINGS ─── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1;
}

h2 {
  font-family: var(--font-cond);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
}

h4 {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 0.75rem;
}

/* ─── LIST ITEMS ─── */
ul { list-style: none; }

li {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white-dim);
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  line-height: 1.6;
  max-width: 700px;
}

li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

li strong {
  color: var(--accent);
  font-weight: 600;
}

/* ─── ABOUT ─── */
.about {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── SERVICES ─── */
.services { background: var(--black); }

/* Product images row */
.product-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.product-images img {
  flex: 1 1 200px;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  filter: grayscale(20%) contrast(1.08);
  transition: filter 0.3s, transform 0.3s, border-color 0.3s;
}

.product-images img:hover {
  filter: grayscale(0%) contrast(1.12);
  transform: scale(1.03);
  border-color: var(--accent-dim);
}

/* Org chart */
.org-chart {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--dark-surface);
  margin-top: 1rem;
}

/* ─── CONTACT ─── */
.contact {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

/* ─── FORM ─── */
.container {
  max-width: 560px;
  margin: 2.5rem 0;
}

.form {
  background: var(--dark-surface);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  position: relative;
}

.form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50px; height: 2px;
  background: var(--accent);
}

.form .descr {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.input {
  position: relative;
  margin-bottom: 1.75rem;
}

.input input,
.input textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}

.input input:focus,
.input textarea:focus { border-bottom-color: var(--accent); }

.input label {
  position: absolute;
  top: 10px; left: 0;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-muted);
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.input input:focus + label,
.input input:not([value=""]):not(:placeholder-shown) + label,
.input textarea:focus + label,
.input textarea:not(:placeholder-shown) + label {
  top: -16px;
  font-size: 0.66rem;
  color: var(--accent);
}

.form > button {
  clip-path: none;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  margin-top: 0.5rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  /* ✅ Own padding so it's independent from the parent section */
  padding: 3rem 6vw 2rem;
  /* ✅ Stretch full width past the parent section's padding */
  margin: 3rem -6vw -80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.footer-col p:not(.footer-label) {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--white-muted);
  opacity: 0.5;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

::selection { background: var(--accent-dim); color: var(--black); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .home-inner {
    flex-direction: column;
    gap: 2.5rem;
    padding: 50px 0 40px;
  }

  .home-text { flex: none; width: 100%; }
  .home-image { flex: none; width: 100%; }

  .home-image img {
    height: 280px;
    clip-path: none;
  }

  .home-image::before,
  .home-image::after { display: none; }

  .home-text h2 { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 768px) {
  /* ✅ Show hamburger, hide desktop menu */
  .hamburger {
    display: flex;
  }

  .navbar {
    /* Allow menu to drop below */
    flex-wrap: wrap;
    height: auto;
    padding: 0 5vw;
    align-items: center;
    min-height: 68px;
  }

  .navbar .logo,
  .hamburger {
    /* Both on the same row, height = 68px */
    height: 68px;
    display: flex;
    align-items: center;
  }

  .navbar .menu {
    /* Collapsed by default */
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: rgba(10,10,10,0.97);
    border-top: 1px solid var(--border);
    /* Smooth slide */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
  }

  .navbar .menu.open {
    max-height: 400px;
    padding: 0.5rem 0;
  }

  .navbar .menu li {
    border-bottom: 1px solid var(--border);
  }

  .navbar .menu li:last-child {
    border-bottom: none;
  }

  .navbar .menu a {
    display: block;
    padding: 0.85rem 5vw;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
  }

  .navbar .menu a::after { display: none; }
}

@media (max-width: 600px) {
  section { padding: 90px 5vw 60px; }

  .home { padding-top: 0; }

  h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  button {
    clip-path: none;
    width: 100%;
    display: block;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.75rem;
  }

  .product-images img {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }

  .form { padding: 1.75rem 1.25rem; }
  .container { max-width: 100%; }

  /* ✅ Footer: full-width on mobile, own padding, single column */
  footer {
    margin: 2rem -5vw -60px;
    padding: 2.5rem 5vw 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 380px) {
  .navbar .logo { font-size: 1.1rem; }
  h1 { font-size: 1.7rem; }
}