/* ==========================================================================
   Upnorth Marketing Company Limited — main stylesheet
   Built as plain, readable CSS: variables up top, then base styles,
   then layout, then one block per section, then components, then
   media queries at the very end. Nothing is minified on purpose —
   this file is meant to be opened and edited by hand.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand colours, pulled from the Upnorth logo and event branding */
  --green-dark:    #0e4a29;
  --green:         #146c36;
  --green-bright:  #1c8a45;
  --green-tint:    #f2f8f4;
  --gold:          #d79a2c;
  --gold-dark:     #b87f1c;

  /* Neutrals */
  --ink:           #1b211d;
  --ink-soft:      #4c564f;
  --grey-line:     #e4e9e5;
  --white:         #ffffff;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Rhythm */
  --gap: 24px;
  --radius: 10px;
  --shadow: 0 20px 40px -24px rgba(14, 74, 41, 0.35);
  --max-width: 1180px;
}

/* --------------------------------------------------------------------------
   2. Reset and base styles
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--green-dark);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */

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

.section {
  padding: 96px 0;
}

.section--tint {
  background: var(--green-tint);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(20, 108, 54, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: var(--gold-dark);
}

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

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

.btn--light {
  border-color: var(--white);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   5. Top bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-contacts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-contacts a:hover {
  color: var(--white);
}

.topbar-tag {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
  /* Keep the top bar to a single, short line on small screens: phone
     number only. Address and hours are still in the footer and the
     contact section, so nothing is lost, just decluttered. */
  .topbar-tag,
  .topbar-contacts + .topbar-contacts,
  .topbar-contacts a[href^="mailto"] {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}

/* The header's own wrap is the positioning anchor for the mobile
   dropdown nav below, so the dropdown always starts right under the
   header row itself — no matter how tall the top bar above it is. */
.site-header .wrap {
  position: relative;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--gold);
}

.main-nav a.is-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--green);
}

.hero-stats span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  display: block;
}

.hero-media-caption {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 14px 30px -18px rgba(14, 74, 41, 0.4);
  max-width: 240px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-media-caption strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   8. Client strip
   -------------------------------------------------------------------------- */

.clients {
  padding: 44px 0;
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}

.clients p {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}

.client-row li {
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.client-row img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */

.about.wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4.4;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy p {
  color: var(--ink-soft);
}

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

.pillar {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 22px;
}

.pillar h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Sell-with-us feature section
   -------------------------------------------------------------------------- */

.sell {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.92);
}

.sell .section-head h2,
.sell .tag {
  color: var(--white);
}

.sell .tag {
  background: rgba(255, 255, 255, 0.14);
}

.sell .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.sell-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
}

.sell-step-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.sell-step h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.sell-step p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.sell-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sell-gallery img {
  border-radius: 8px;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

.sell-footnote {
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.service-card p a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Departments (how work moves through the agency)
   -------------------------------------------------------------------------- */

.departments-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: dept;
}

.dept {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 3px solid var(--green);
}

.dept::before {
  counter-increment: dept;
  content: counter(dept, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  color: var(--gold-dark);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.dept h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.dept p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Approach (we listen / we sweat / we deliver)
   -------------------------------------------------------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.approach-card p {
  color: var(--ink-soft);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   14. Work gallery
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}

.work-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

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

.work-item:hover img {
  transform: scale(1.05);
}

/* Two "big" tiles fill a 4-column row pair exactly (2+2 cols, 2 rows each).
   Two "small" tiles fill a single row the same way (2+2 cols, 1 row). */
.work-item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.work-item--small {
  grid-column: span 2;
  grid-row: span 1;
}

.work-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(14, 30, 20, 0.82), transparent);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Client achievements
   -------------------------------------------------------------------------- */

.achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.achievement {
  padding: 22px 0;
  border-top: 1px solid var(--grey-line);
}

.achievement h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.achievement p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   16. CTA banner
   -------------------------------------------------------------------------- */

.cta-banner {
  background: var(--gold);
  color: var(--green-dark);
}

.cta-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 52px;
  padding-bottom: 52px;
}

.cta-banner h2 {
  color: var(--green-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 30ch;
}

.cta-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-banner .btn--gold {
  background: var(--green-dark);
}

.cta-banner .btn--gold:hover {
  background: var(--green);
}

.cta-banner .btn--outline {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

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

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */

.contact.wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-info-card .role {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 108, 54, 0.15);
}

.contact-detail:first-of-type {
  border-top: none;
}

.contact-detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-detail-value a:hover {
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c2bb;
  color: #8a2c1f;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

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

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-line);
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   18. Page header (banner used at the top of every page except Home)
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--green-tint);
  padding: 56px 0 52px;
  border-bottom: 1px solid var(--grey-line);
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--green);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   19. Leadership & team (founder card plus a grid of the wider team)
   -------------------------------------------------------------------------- */

.founder-card {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 56px;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

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

.founder-photo-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

.founder-copy .tag {
  margin-bottom: 14px;
}

.founder-copy h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.founder-copy .role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.founder-copy p {
  color: var(--ink-soft);
}

.founder-copy p + p {
  margin-top: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.team-item img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
}

.team-caption {
  padding: 12px 4px 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   20. Gallery / portfolio
   -------------------------------------------------------------------------- */

.gallery-category {
  margin-bottom: 64px;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--grey-line);
}

.gallery-category-head h2 {
  font-size: 1.3rem;
}

.gallery-category-head span {
  font-size: 0.86rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid button {
  all: unset;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.06);
}

/* Lightbox: a simple full-screen overlay for viewing one gallery
   image at a time. Toggled by js/main.js, which adds/removes
   .is-open and swaps the <img> src. */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 20, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.lightbox-close {
  all: unset;
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .brand-name,
.footer-brand .brand-name span {
  color: var(--white);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 11px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--white);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row a:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.social-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--white);
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */


@media (max-width: 1000px) {
  .client-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .about.wrap,
  .contact.wrap {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .sell-grid,
  .services-grid,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .departments-flow {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

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

  .founder-card {
    grid-template-columns: 0.8fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100%);
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 16px 24px -18px rgba(14, 74, 41, 0.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
    padding: 8px 0 16px;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 24px;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-line);
  }

  .header-actions .btn--outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-media {
    order: -1;
  }

  .hero-media-caption {
    display: none;
  }

  .sell-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .work-item--big,
  .work-item--small {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .client-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .sell-grid,
  .services-grid,
  .approach-grid,
  .pillars,
  .achievements {
    grid-template-columns: 1fr;
  }

  .departments-flow {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 28px;
  }

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

  .founder-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .founder-photo {
    max-width: 220px;
    margin: 0 auto;
  }

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

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

  .gallery-category-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
