@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ==========================================
   Omri Reis — Global Styles
   ========================================== */

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

:root {
  --color-bg: #111111;
  --color-text: #ffffff;
  --color-muted: #bbbbbb;
  --color-light: #1a1a1a;
  --color-border: #333333;
  --color-accent: #ffffff;
  --color-yellow: #F2C94C;
  --font-body: 'Poppins', Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.65;
}

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

/* ==========================================
   Navigation
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17,17,17,0.97);
  border-bottom: 2px solid var(--color-yellow);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.5;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
}

.nav-social a {
  color: #ffffff;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.nav-social a:hover {
  opacity: 1;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ==========================================
   Page Layout
   ========================================== */

.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

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

/* ==========================================
   Hero / Homepage
   ========================================== */

.hero {
  padding: 80px 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.hero-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta {
  color: var(--color-yellow);
  border-bottom: 1px solid var(--color-yellow);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.55;
}

.hero-bio p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.hero-bio a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
}

.hero-photo {
  height: 520px;
  overflow: hidden;
}

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

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 32px;
  }
  .hero-photo {
    height: 360px;
  }
}

/* ==========================================
   Home — About Teaser
   ========================================== */

.section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.85;
}

.divider {
  border: none;
  border-top: 2px solid var(--color-yellow);
  margin: 0;
}

/* ==========================================
   Three Pillars
   ========================================== */

.pillars {
  padding: 80px 0;
  background: var(--color-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.pillar-item {
  padding: 0;
}

.pillar-number {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 16px;
  color: var(--color-yellow);
}

.pillar-body {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.8;
}

/* ==========================================
   Clients
   ========================================== */

.clients {
  padding: 80px 0;
  background: var(--color-bg);
}

.clients-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

.clients-image {
  width: 100%;
  display: block;
  margin-top: 40px;
}

.client-name {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

/* ==========================================
   About Page
   ========================================== */

.about-hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3/4;
  background: var(--color-light);
  overflow: hidden;
}

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

.about-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 32px;
}

.about-text p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-expertise {
  padding: 60px 0 80px;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  margin-top: 32px;
}

.expertise-item {
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================
   Case Study Pages
   ========================================== */

.case-header {
  padding: 60px 0 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
  border-bottom: none;
}

.back-link:hover {
  color: var(--color-text);
  opacity: 1;
}

.case-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: normal;
  line-height: 1.2;
  margin-top: 16px;
  margin-bottom: 0;
}

.case-hero-image {
  width: 100%;
  margin-bottom: 80px;
}

.case-hero-image img {
  width: 100%;
  display: block;
}

.case-body {
  max-width: 740px;
  padding-bottom: 40px;
}

.case-section {
  margin-bottom: 64px;
}

.case-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.case-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 20px;
}

.case-section p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}

.case-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: 40px;
}

.case-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.case-video {
  margin: 48px 0;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.case-slides {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 80px;
}
.case-slides img {
  width: 100%;
  display: block;
  border-radius: 4px;
}
.case-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.case-images.single {
  grid-template-columns: 1fr;
}

.case-images.triple {
  grid-template-columns: repeat(3, 1fr);
}

.case-images img {
  width: 100%;
  display: block;
}

@media (max-width: 700px) {
  .case-images,
  .case-images.triple {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Work / Portfolio
   ========================================== */

.work-hero {
  padding: 80px 0 50px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-bottom: 80px;
}

.work-card {
  display: block;
  cursor: pointer;
}

.work-card:hover .work-card-img {
  transform: scale(1.02);
}

.work-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-light);
  margin-bottom: 20px;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.work-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.35;
  color: var(--color-text);
}

/* ==========================================
   Publications
   ========================================== */

.publications-hero {
  padding: 80px 0 50px;
}

.pub-list {
  padding-bottom: 80px;
}

.pub-item {
  display: grid;
  grid-template-columns: 150px 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.pub-thumb {
  width: 150px;
  height: 100px;
  overflow: hidden;
  background: var(--color-light);
  flex-shrink: 0;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-item:first-child {
  border-top: 1px solid var(--color-border);
}

.pub-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.pub-source {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.pub-date {
  color: var(--color-muted);
}

.pub-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 10px;
}

.pub-title a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
}

.pub-title a:hover {
  border-bottom-color: var(--color-text);
  opacity: 1;
}

.pub-desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ==========================================
   Blog
   ========================================== */

.blog-hero {
  padding: 80px 0 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  padding-bottom: 80px;
}

.blog-card {
  display: block;
}

.blog-card-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.coming-soon {
  padding: 60px 0 80px;
  color: var(--color-muted);
  font-size: 1rem;
}

/* ==========================================
   Contact
   ========================================== */

.contact-hero {
  padding: 80px 0 60px;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: normal;
  margin-bottom: 24px;
}

.contact-hero p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  display: inline-block;
  margin-bottom: 60px;
}

.contact-form {
  max-width: 560px;
  padding-bottom: 80px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.btn-submit:hover {
  opacity: 0.75;
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.footer-social {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.footer-social a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  align-items: center;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--color-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s, opacity 0.2s;
}

.footer-email:hover {
  border-bottom-color: var(--color-muted);
  opacity: 1;
}

/* ==========================================
   Case Study Navigation
   ========================================== */

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0 80px;
  border-top: 1px solid var(--color-border);
  gap: 24px;
}

.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 45%;
  text-decoration: none;
}

.case-nav-link:hover {
  opacity: 0.75;
}

.case-nav-link.next {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.case-nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-yellow);
}

.case-nav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.35;
  color: var(--color-text);
}

@media (max-width: 700px) {
  .case-nav {
    flex-direction: column;
    gap: 32px;
  }
  .case-nav-link.next {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
  }
}

/* ==========================================
   Page Header (inner pages)
   ========================================== */

.page-header {
  padding: 80px 0 48px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: normal;
  line-height: 1.2;
}

.page-header .lead {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-top: 20px;
}

/* ==========================================
   Responsive
   ========================================== */

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


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

  .about-photo {
    aspect-ratio: 4/3;
    max-width: 360px;
  }

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

  .pub-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .expertise-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links,
  .nav-social {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #111111;
    padding: 40px;
    gap: 24px;
    align-items: flex-start;
    z-index: 200;
    overflow-y: auto;
  }

  .nav-links.open a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .container,
  .hero-inner,
  .nav-inner,
  .footer-inner {
    padding: 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .section,
  .pillars,
  .clients {
    padding: 48px 0;
  }
}

/* ==========================================
   Logo Carousel
   ========================================== */
.logos-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 16px 0;
}
.logos-carousel::before,
.logos-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logos-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}
.logos-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: logos-scroll 55s linear infinite;
}
.logos-track:hover {
  animation-play-state: paused;
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  background: #000;
  border-radius: 21px;
  padding: 21px;
  border: 3px solid #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}
.logo-item.logo-item--transparent {
  background: transparent;
  padding: 0;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
