/* ============================================
   OTO BROTHERS - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- CSS Variables --- */
:root {
  --color-black: #000;
  --color-white: #fff;
  --color-gray-light: #f5f5f5;
  --color-gray-mid: #666;
  --color-gray-dark: #444;
  --color-gray-muted: #a3a3a3;
  --color-gray-border: rgba(0, 0, 0, 0.07);
  --color-blue: #09f;
  --color-pink: #f5c6f0;
  --color-green: #c5f542;
  --color-input-bg: #eee;
  --color-input-border: #ddd;
  --color-placeholder: #999;

  --font-primary: 'Hanken Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
}

.text-hero-title {
  font-family: var(--font-secondary);
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-black);
}

.text-phonetic {
  font-family: var(--font-primary);
  font-size: clamp(30px, 4.2vw, 49px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-gray-muted);
}

.text-section-heading {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.8vw, 45px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-black);
}

.text-body {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--color-gray-mid);
}

.text-about {
  font-family: var(--font-primary);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.8;
  color: var(--color-black);
}

.text-about-bold {
  font-weight: 800;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
}

/* --- Navigation --- */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 50px;
  height: auto;
}

.nav-logo-text {
  font-family: var(--font-secondary);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-gray-dark);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-black);
}

.nav-link.active {
  color: var(--color-black);
  font-weight: 600;
}

/* Hamburger menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  gap: 40px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 24px;
}

/* --- Sections --- */
.section {
  width: 100%;
  max-width: var(--max-width);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 60px;
  min-height: 450px;
}

.hero-title {
  max-width: 800px;
}

.hero-subtitle {
  max-width: 700px;
}

.hero-subtitle p {
  margin-top: 8px;
}

/* --- Content Sections (Inefficiencies, ROI) --- */
.content-section {
  gap: 20px;
  align-items: center;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.content-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.content-section .section-header .text-section-heading {
  margin-bottom: 0;
}

.content-section .highlight-img {
  max-width: 320px;
  height: auto;
  margin-top: -5px;
}

.content-section .text-body {
  max-width: 600px;
}

/* --- How We Operate Section --- */
.operate-section {
  gap: 30px;
  align-items: center;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.operate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.operate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.operate-card .highlight-img {
  max-width: 280px;
  height: auto;
}

.operate-card .text-body {
  max-width: 500px;
}

/* --- About Section --- */
.about-section {
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.about-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.about-header .highlight-img {
  max-width: 440px;
  height: auto;
}

.about-content {
  display: flex;
  gap: 30px;
  width: 100%;
  align-items: center;
}

.about-image {
  flex: 0 0 auto;
  width: 45%;
  max-width: 440px;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text {
  flex: 1;
  text-align: center;
}

/* --- CTA / Form Section --- */
.cta-section {
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: var(--font-secondary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-input {
  background: var(--color-input-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  width: 280px;
  max-width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input::placeholder {
  color: var(--color-placeholder);
}

.cta-input:focus {
  border-color: var(--color-input-border);
}

.cta-arrow {
  width: 60px;
  height: auto;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* --- Footer --- */
.footer {
  width: 100%;
  max-width: var(--max-width);
  padding: 20px;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--color-gray-mid);
  border-top: 1px solid var(--color-gray-border);
}

/* ============================================
   PAGE: Services
   ============================================ */
.services-hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
  gap: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: var(--max-width);
}

.service-card {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-gray-border);
  padding: 50px 20px;
  gap: 40px;
}

.service-card:last-child {
  border-bottom: none;
}

.service-number {
  font-family: var(--font-secondary);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  color: var(--color-gray-light);
  line-height: 1;
  flex-shrink: 0;
  width: 100px;
  display: flex;
  align-items: flex-start;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.service-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-black);
}

.service-highlight {
  display: inline-block;
  position: relative;
}

.service-highlight img {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 10px);
  height: 80%;
  z-index: -1;
  object-fit: fill;
}

.service-description {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--color-gray-mid);
  max-width: 650px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.service-tag {
  background: var(--color-gray-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-dark);
}

/* ============================================
   PAGE: Team
   ============================================ */
.team-hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
  gap: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
  max-width: var(--max-width);
  padding: 40px 20px 80px;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
}

.team-name {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.team-role {
  font-family: var(--font-primary);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--color-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-gray-mid);
}

.team-bio p {
  margin-bottom: 12px;
}

.team-bio p:last-child {
  margin-bottom: 0;
}

.team-divider {
  width: 1px;
  background: var(--color-gray-border);
  display: none; /* shown only in grid layout via pseudo or border */
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .operate-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-content {
    flex-direction: column;
    gap: 20px;
  }

  .about-image {
    width: 80%;
    max-width: 400px;
  }

  .about-text {
    text-align: center;
  }

  /* Services */
  .service-card {
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
  }

  .service-number {
    width: auto;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section {
    padding: 40px 16px;
  }

  .hero {
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .content-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .content-section .highlight-img {
    max-width: 220px;
  }

  .operate-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .operate-card .highlight-img {
    max-width: 200px;
  }

  .about-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .about-header .highlight-img {
    max-width: 280px;
  }

  .about-image {
    width: 100%;
  }

  .cta-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .cta-form {
    flex-direction: column;
    width: 100%;
  }

  .cta-input {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  .cta-arrow {
    display: none;
  }

  /* Services mobile */
  .services-hero {
    padding-top: 50px;
    padding-bottom: 20px;
  }

  .service-card {
    padding: 30px 16px;
  }

  /* Team mobile */
  .team-hero {
    padding-top: 50px;
    padding-bottom: 20px;
  }

  .team-grid {
    padding: 20px 16px 60px;
    gap: 40px;
  }
}
