/* TriAgency — Minimalist Creative Agency Stylesheet */

:root {
  --color-bg: #111111;
  --color-surface: #1a1a1a;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-accent: #f0f0f0;
  --color-accent-light: #2e2e2e;
  --color-highlight: #c9a84c;
  --color-toast-bg: #ffffff;
  --color-toast-accent: #f4845f;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --max-width: 1100px;
  --section-padding: 6rem 2rem;
}

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

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

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

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  max-width: 680px;
  color: var(--color-text-muted);
}

a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.7; }

/* ---- Layout ---- */

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

section {
  padding: var(--section-padding);
}

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-accent-light);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo-img {
  height: 36px;
  width: auto;
}

.ad-logo {
  max-width: 100px;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--color-highlight);
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f0f0f0;
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero .container {
  padding: 0 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--color-highlight);
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-highlight);
  padding-left: 1rem;
}

/* ---- Section Headers ---- */

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-highlight);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* ---- About / Story ---- */

.story {
  background: var(--color-surface);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.story-content p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.story-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-accent-light);
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--color-highlight);
  font-weight: 700;
}

.stat p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-accent-light);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--color-highlight);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Clients ---- */

.clients {
  background: var(--color-surface);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* ---- Gallery ---- */

.gallery-heading {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-accent-light);
}

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

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.apps-section {
  background: #ffffff;
  margin: 3rem -2rem -6rem;
  padding: 2rem 2rem 3rem;
  border-radius: 4px;
}

.gallery-heading-dark {
  color: #1a1a1a;
  border-bottom-color: #e0e0e0;
}

.gallery-grid.gallery-apps img {
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

.client-card {
  padding: 2rem;
  border-left: 3px solid var(--color-highlight);
  background: var(--color-bg);
  border-radius: 4px;
}

.client-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.client-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Ad Banner (Tech & Toast) ---- */

.ad-banner {
  background: var(--color-toast-bg);
  color: #1a1a1a;
  padding: 3rem 2rem;
  text-align: center;
}

.ad-banner .container {
  max-width: 800px;
}

.ad-banner .ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.ad-banner-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.ad-banner p {
  color: rgba(0, 0, 0, 0.6);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.ad-banner .cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-toast-accent);
  color: var(--color-toast-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  transition: background 0.3s, color 0.3s;
}

.ad-banner .cta-btn:hover {
  background: var(--color-toast-accent);
  color: #ffffff;
  opacity: 1;
  border-color: var(--color-toast-accent);
}

/* ---- Ad Card (inline) ---- */

.ad-card {
  border: 1px solid var(--color-accent-light);
  border-radius: 4px;
  padding: 2.5rem;
  background: var(--color-surface);
  margin: 3rem 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.ad-card .ad-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.ad-card-content {
  flex: 1;
}

.ad-card-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
}

.ad-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ad-card .cta-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-toast-accent);
}

.ad-card-visual {
  width: 140px;
  height: 140px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-card-visual span {
  color: var(--color-toast-accent);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

/* ---- Legacy ---- */

.contact {
  background: var(--color-surface);
}

.legacy-content {
  max-width: 720px;
  margin-top: 2rem;
}

.legacy-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ---- Footer ---- */

footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-brand {
  font-size: 0.9rem;
}

footer .footer-brand strong {
  color: var(--color-highlight);
  letter-spacing: 0.06em;
}

footer .footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

footer .footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer .footer-links a:hover {
  color: var(--color-highlight);
}

.footer-toast {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.footer-toast a {
  color: var(--color-toast-accent);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-accent-light);
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

  .ad-card {
    flex-direction: column;
    text-align: center;
  }

  .story-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
