/* ============================================================
   Studio Noor — Brand & Digital Design Studio
   ============================================================ */

:root {
  --bg: #f7f7f5;
  --bg-alt: #efefec;
  --dark: #111111;
  --text: #44444a;
  --muted: #87878f;
  --accent: #2945c9;
  --accent-soft: #5870e0;
  --white: #fff;
  --shadow-sm: 0 6px 20px rgba(17, 17, 17, .05);
  --shadow-md: 0 18px 50px rgba(17, 17, 17, .09);
  --shadow-lg: 0 30px 80px rgba(17, 17, 17, .15);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
  --serif: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--dark);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(17, 17, 17, .15);
}
.btn--ghost:hover {
  border-color: var(--dark);
  transform: translateY(-3px);
}

.btn--full { width: 100%; }

/* ---------- Shared section bits ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 18px;
}
.section__lead {
  font-size: 1.12rem;
  color: var(--muted);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(247, 247, 245, .82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta { padding: 11px 22px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 170px;
  padding-bottom: 120px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: transform .9s ease;
}
.hero__media:hover img { transform: scale(1.05); }

/* ---------- Work grid ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card--wide { grid-column: span 2; }
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.work-card__media {
  overflow: hidden;
}
.work-card__media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .8s ease;
}
.work-card--wide .work-card__media img { height: 360px; }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__body { padding: 30px 32px 34px; }
.work-card__cat {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-card__name {
  font-size: 1.5rem;
  margin: 10px 0 8px;
}
.work-card__outcome {
  color: var(--muted);
  margin-bottom: 16px;
}
.work-card__link {
  font-weight: 600;
  color: var(--dark);
  transition: color .2s ease, gap .2s ease;
}
.work-card__link:hover { color: var(--accent); }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: transform .9s ease;
}
.about__media:hover img { transform: scale(1.04); }
.about__copy p { margin-bottom: 18px; }
.about__list {
  list-style: none;
  margin-top: 24px;
}
.about__list li {
  padding: 12px 0;
  border-top: 1px solid rgba(17, 17, 17, .08);
  color: var(--text);
}
.about__list strong { color: var(--dark); }

/* ---------- Process ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.process-step__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .35;
  letter-spacing: -0.03em;
}
.process-step h3 {
  font-size: 1.3rem;
  margin: 6px 0 10px;
}
.process-step p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.testimonial__stars {
  color: #f4b942;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.testimonial blockquote {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 26px;
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
}
.testimonial__person img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__person strong { color: var(--dark); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.contact__details {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 22px;
}
.contact__details li { color: var(--muted); }
.contact__details strong { color: var(--dark); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(17, 17, 17, .12);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--dark);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 69, 201, .12);
}
.field textarea { resize: vertical; }
.form-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 20px;
}
.form-note.success { color: var(--accent); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #c9c9d1;
  padding: 80px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand .nav__brand { color: var(--white); }
.footer__brand p {
  margin-top: 16px;
  max-width: 260px;
  color: var(--muted);
}
.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 0.95rem;
  color: #c9c9d1;
  margin-bottom: 12px;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--accent-soft); }
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  transition: background .2s ease;
}
.footer__socials a:hover { background: var(--accent); color: var(--white); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .nav__links { display: none; }

  .hero { padding-top: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { order: -1; }
  .hero__media img { height: 400px; }

  .work__grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: span 1; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media img { height: 420px; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }

  .hero__title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1; }
  .hero__stats { gap: 28px; }
  .stat__num { font-size: 1.8rem; }
  .hero__media img { height: 300px; }

  .section__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .section__head { margin-bottom: 44px; }

  .services__grid,
  .process__grid { grid-template-columns: 1fr; }

  .work-card__media img,
  .work-card--wide .work-card__media img { height: 230px; }

  .contact__form { padding: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar { flex-direction: column; gap: 8px; text-align: center; }
  .nav__cta { display: none; }
}
