/* ============================================================
   Torgan Partners — Static Site Stylesheet
   Brand Colors: #151C5B (navy), #475B64 (slate), #fff (white)
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #151C5B;
  --slate:  #475B64;
  --white:  #ffffff;
  --light:  #f7f8fc;
  --border: #e2e5ef;
  --text:   #2d3748;
  --muted:  #6b7280;
  --max-w:  1200px;
  --radius: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--light {
  background: var(--light);
}

.section--slate {
  background: var(--slate);
  color: var(--white);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: #0f1540;
  border-color: #0f1540;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--navy); }

.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__links .btn { padding: 0.5rem 1.25rem; }
.nav__links .btn::after { display: none; }
.nav__links .btn--primary { color: var(--white); }
.nav__links .btn--primary:hover { color: var(--white); }

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

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--navy); }

/* ── Page Offset for Fixed Nav ── */
.page-offset { padding-top: 72px; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
}

.hero__logo {
  margin: 0 auto 2rem;
  max-width: 280px;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 1.75rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto;
  opacity: 0.8;
  line-height: 1.85;
}

/* ── Team Card (Home) ── */
.team-section {
  padding: 80px 0;
}

.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.team-card__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(21,28,91,0.12);
  align-self: start;
}

.team-card__img img {
  width: 100%;
  height: auto;
  display: block;
}

.team-card__body { padding: 1rem 0; }
.team-card__name { color: var(--navy); margin-bottom: 0.25rem; }
.team-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.team-card__bio { color: var(--muted); margin-bottom: 2rem; }

/* ── Sectors Grid (Home) ── */
.sectors {
  background: var(--light);
  padding: 80px 0;
}

.sectors__header {
  text-align: center;
  margin-bottom: 3rem;
}

.sectors__header h2 { color: var(--navy); margin-bottom: 0.75rem; }
.sectors__header p { color: var(--muted); max-width: 500px; margin: 0 auto; }

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21,28,91,0.12);
}

.sector-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sector-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.sector-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.sector-card__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── Page Hero (Inner Pages) ── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 60px;
}

.page-hero__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.page-hero h1 { max-width: 700px; }
.page-hero p {
  max-width: 600px;
  margin-top: 1.25rem;
  opacity: 0.85;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ── About Sections ── */
.about-intro {
  padding: 80px 0;
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-intro__block h2 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--navy);
}

.about-intro__block p { color: var(--muted); }

/* ── Differentiators ── */
.differentiators {
  background: var(--light);
  padding: 80px 0;
}

.differentiators h2 {
  color: var(--navy);
  text-align: center;
  margin-bottom: 3rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.diff-item__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.diff-item p { font-size: 0.9rem; color: var(--muted); }

/* ── Mission ── */
.mission {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.mission h2 { margin-bottom: 1.5rem; }
.mission p { max-width: 700px; margin: 0 auto 2rem; opacity: 0.85; font-size: 1.05rem; }

/* ── Projects Grid ── */
.projects-grid {
  padding: 80px 0;
}

.projects-grid h2 {
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.projects-grid__sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.proj-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(21,28,91,0.14);
}

.proj-card__img-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.proj-card__img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.proj-card__body {
  padding: 1.75rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.proj-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.5rem;
}

.proj-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.proj-card__link:hover { gap: 0.7rem; }
.proj-card__link::after { content: '→'; }

/* ── Project Detail Page ── */
.proj-banner {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 60px;
}

.proj-banner__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.proj-banner__logo {
  max-height: 70px;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.proj-banner__content h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.proj-banner__content p { opacity: 0.85; max-width: 600px; font-size: 1.05rem; line-height: 1.75; }

.proj-body {
  padding: 80px 0;
}

.proj-body__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.proj-body__text h2 { color: var(--navy); margin-bottom: 1.25rem; }
.proj-body__text p { color: var(--muted); }

.proj-body__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(21,28,91,0.12);
}

.proj-body__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.proj-gallery {
  background: var(--light);
  padding: 60px 0;
}

.proj-gallery h3 {
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.proj-back {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

/* ── Contact ── */
.contact-hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.contact-hero h1 { margin-bottom: 1rem; }
.contact-hero p { opacity: 0.8; max-width: 500px; margin: 0 auto; font-size: 1.05rem; }

.contact-grid {
  padding: 80px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { color: var(--navy); margin-bottom: 1.5rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1rem;
}

.contact-detail__text strong { display: block; color: var(--navy); font-size: 0.875rem; margin-bottom: 0.25rem; }
.contact-detail__text span { color: var(--muted); font-size: 0.9rem; }

.contact-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-photos img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact-photos img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img { height: 36px; margin-bottom: 1rem; }
.footer__brand p { opacity: 0.65; font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.footer__col a:hover { opacity: 1; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--navy);
  border-radius: 2px;
  margin: 1.25rem 0 1.75rem;
}

.divider--white { background: rgba(255,255,255,0.4); }
.divider--center { margin-left: auto; margin-right: auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a { opacity: 1; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { grid-template-columns: 1fr; gap: 2rem; }
  .team-card__img img { height: 320px; }
  .about-intro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .proj-banner__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .proj-body__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 660px) {
  .section { padding: 56px 0; }
  .sectors__grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero { padding: 60px 0; }
  .page-hero { padding: 60px 0 40px; }
  .contact-photos img:first-child { height: 200px; }
  .contact-photos img { height: 160px; }
}
