/* ================================
   BASE
=================================== */

html {
  scroll-behavior: smooth;
}

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

:root {
  --bg: #050814;
  --bg-alt: #0b1220;
  --primary: #d4af37;
  --accent-soft: #f4d36c; /* gold mai soft pentru titluri */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: rgba(15, 23, 42, 0.96);
  --card-border: rgba(148, 163, 184, 0.38);
  --card-border-hover: rgba(148, 163, 184, 0.8); /* NU mai e auriu */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* ================================
   HEADER + LOGO + NAV
=================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
}

.site-header .container {
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* LOGO – dimensiune + hover profesionist */

.logo {
  height: 84px;
  width: auto;
  display: block;
  object-fit: contain;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.logo:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* NAV */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  margin-left: 1.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  color: #facc5f;
  opacity: 1;
}

/* Mobile header */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav a {
    margin-left: 0;
  }

  .logo {
    height: 56px;
  }
}

/* ================================
   HERO
=================================== */

.hero {
  padding: 4rem 0 3.5rem;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, #facc15, #d4af37);
  color: #111827;
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.33);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(234, 179, 8, 0.48);
}

/* ================================
   GENERIC SECTION (ABOUT / EXPERTISE / PROJECTS / CONTACT)
=================================== */

.section,
.about,
.projects,
.contact {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.section,
.about,
.projects {
  background: radial-gradient(circle at top left, rgba(55, 65, 81, 0.32), transparent 60%);
}

/* titluri secțiuni – aliniate stânga, aceeași dimensiune */

.section h2,
.about h2,
.projects h2,
.contact h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  color: #f9fafb;
}

/* descriere sub titlu – spațiu unificat */

.section p,
.about-intro,
.projects-intro,
.contact-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 2.5rem; /* același spațiu până la carduri / conținut */
}

/* ================================
   ABOUT – GRID DE CARDURI
=================================== */

.about {
  background: linear-gradient(180deg, #0b0f19, #0a0d13);
  color: #ffffff;
}

.about h2 {
  /* deja stilizat mai sus – păstrăm doar poziția */
}

.about-intro {
  max-width: 850px;
}

/* ================================
   CARDURI UNIFICATE (ABOUT / EXPERTISE / PROJECTS)
=================================== */

/* toate cardurile folosesc același stil de bază */

.about-item,
.service,
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.about-item:hover,
.service:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.9);
  border-color: var(--card-border-hover); /* gri mai puternic, NU auriu */
}

/* titluri card – aceeași culoare și dimensiune peste tot */

.about-item h3,
.service h3,
.project-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  color: var(--accent-soft); /* gold soft */
}

/* text card – aceeași dimensiune și culoare */

.about-item p,
.service p,
.project-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* ABOUT – GRID */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   OUR EXPERTISE (folosește .section)
=================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 0; /* spațiul este deja dat de paragraful de secțiune */
}

/* ================================
   SELECTED PROJECTS
=================================== */

.projects {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), #020617 70%);
}

.projects-intro {
  max-width: 780px;
}

/* layout grid proiecte */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   CONTACT
=================================== */

.contact {
  background: linear-gradient(180deg, #020617, #030712);
}

.contact h2 {
  /* aceleași setări de titlu ca celelalte secțiuni */
}

.contact p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.contact strong {
  color: #e5e7eb;
  letter-spacing: 0.08em;
}

/* ================================
   MISC
=================================== */

@media (max-width: 600px) {
  .hero {
    padding-top: 3.2rem;
  }
}
