/* ===== VARIABLES ===== */
:root {
  --clr-bg: #F5F5F3; /* Світлий, теплий сірий */
  --clr-text: #222222; /* Темний вугільний */
  --clr-accent: #A89C94; /* Приглушений тауп */
  --clr-border: #EAEAE8; /* Дуже світлий сірий для рамок */
  --font-main: 'Montserrat', sans-serif;
  --radius: 4px;
  --transition: 0.3s ease-in-out;
}

/* ===== BASE & RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }

/* ===== LAYOUT & HELPERS ===== */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 1rem;
  background: rgba(245, 245, 243, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--clr-border);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { font-weight: 400; opacity: 0.7; }
.nav-list { display: flex; gap: 2.5rem; }
.nav-list a { font-weight: 500; transition: color var(--transition); }
.nav-list a:hover { color: var(--clr-accent); }
.burger { display: none; } /* Burger hidden on desktop */

/* ===== HERO SECTION ===== */
.hero { padding: 8rem 0; }
.hero-flex { display: flex; align-items: center; gap: 4rem; }
.hero-copy { flex: 1; }
.hero-copy h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
.hero-copy .accent { color: var(--clr-accent); }
.hero-copy p { font-size: 1.1rem; max-width: 50ch; margin-bottom: 2.5rem; opacity: .8; }
.hero-img { flex: 1; border-radius: var(--radius); overflow: hidden; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background-color: var(--clr-text); color: var(--clr-bg); }
.btn-primary:hover { background-color: var(--clr-accent); color: var(--clr-bg); }
.btn-outline { border-color: var(--clr-text); }
.btn-outline:hover { background-color: var(--clr-text); color: var(--clr-bg); }

/* ===== SPOTLIGHT & PORTFOLIO ===== */
.spotlight, .portfolio, .services, .team { padding: 6rem 0; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.spotlight-text h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.spotlight-text p { margin-bottom: 2rem; max-width: 45ch; opacity: .8; }
.spotlight-pic img { border-radius: var(--radius); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.card { border: 1px solid var(--clr-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-body p { opacity: .7; }

/* ===== SERVICES ===== */
.services { background-color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.service .icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.service h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service p { max-width: 35ch; margin-inline: auto; opacity: .7; }

/* ===== TEAM ===== */
.team { background-color: var(--clr-bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; margin-bottom: 1rem; }
.member h3 { font-size: 1.2rem; }
.member p { opacity: .7; }

/* ===== FOOTER ===== */
.footer {
  background-color: var(--clr-text);
  color: var(--clr-bg);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--clr-accent); }
.footer p, .footer a { opacity: .8; transition: opacity var(--transition); }
.footer a:hover { opacity: 1; }
.social { display: flex; gap: 1rem; }
.social a { font-size: 1.5rem; }
.copyright { text-align: center; opacity: .6; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem; }

/* ===== RESPONSIVE (FOR BURGER) ===== */
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    inset: 0 0 0 100%;
    flex-direction: column;
    background: var(--clr-bg);
    padding: 6rem 2rem;
    gap: 2rem;
    transition: transform 0.4s ease-in-out;
  }
  .nav-list.active { transform: translateX(-100%); }
  .burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
  }
  .burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-text);
    margin: 5px 0;
    transition: all var(--transition);
  }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-flex { flex-direction: column; }
}