/* ===================================================
   UPSIDE LOGISTICS — upsidelogistics.uk
   Multi-page site stylesheet
   =================================================== */

/* --- Custom Properties --- */
:root {
  --navy: #0B2A44;
  --navy-light: #0f3555;
  --orange: #E55D07;
  --orange-dark: #cf5206;
  --orange-glow: rgba(229,93,7,0.12);
  --gray-bg: #F4F6F8;
  --text: #1a1a1a;
  --text-mid: #444;
  --text-light: #555;
  --border: #e8e8e8;
  --white: #fff;
  --radius: 6px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 50px rgba(0,0,0,0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Heading --- */
.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
}
.section-heading--left { text-align: left; }

.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

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

.btn--full { width: 100%; text-align: center; }


/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo-icon { flex-shrink: 0; }
.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.header__logo-upside {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
}
.header__logo-logistics {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2.5px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header__menu {
  display: flex;
  gap: 28px;
}
.header__link {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}
.header__link:hover,
.header__link--active { color: var(--orange); }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}


/* ===========================================================
   HERO (Homepage)
   =========================================================== */
.hero {
  background: var(--navy);
  padding: 80px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__content {
  flex: 1;
  min-width: 0;
}
.hero__headline {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__subtext {
  font-size: 19px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__image {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.hero__image img {
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}


/* ===========================================================
   PAGE HERO (Inner pages)
   =========================================================== */
.page-hero {
  background: var(--navy);
  padding: 60px 0;
  text-align: center;
}
.page-hero__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ===========================================================
   TRUST STRIP
   =========================================================== */
.trust {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.trust__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.trust__icon { flex-shrink: 0; }


/* ===========================================================
   CONTENT SECTIONS
   =========================================================== */
.section {
  padding: 80px 0;
}
.section--gray { background: var(--gray-bg); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy .section-heading { color: var(--white); }
.section--navy .section-sub { color: rgba(255,255,255,0.75); }

.section__text {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}
.section__text:last-child { margin-bottom: 0; }
.section__text--left { text-align: left; margin: 0 0 20px; }


/* ===========================================================
   SERVICES CARDS
   =========================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.services__card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.services__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.services__card-icon { margin-bottom: 18px; }
.services__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.services__card-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Services detail (services page) */
.service-detail {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail__content { flex: 1; }
.service-detail__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-detail__text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}


/* ===========================================================
   WHAT WE HANDLE / DON'T HANDLE
   =========================================================== */
.handle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.handle-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.handle-item__icon { margin-bottom: 12px; }
.handle-item__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.no-handle-list {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.no-handle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-light);
}
.no-handle-item svg { flex-shrink: 0; }


/* ===========================================================
   HOW IT WORKS (Steps)
   =========================================================== */
.steps-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}
.step { text-align: center; max-width: 260px; }
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Detailed steps (how-it-works page) */
.process-steps {
  max-width: 720px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step__content { flex: 1; }
.process-step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.process-step__text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}


/* ===========================================================
   WHY CHOOSE US / USP GRID
   =========================================================== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.usp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.usp-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp-item__content { flex: 1; }
.usp-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.usp-item__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}


/* ===========================================================
   ABOUT PAGE
   =========================================================== */
.about-split {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-split__content { flex: 1; }
.about-split__image { flex: 1; display: flex; justify-content: flex-end; }
.about-split__image img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.value-card {
  text-align: center;
  padding: 32px 20px;
}
.value-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.value-card__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}


/* ===========================================================
   CTA BANNER
   =========================================================== */
.cta-banner {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}
.cta-banner__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}
.cta-banner .btn { margin: 0 8px; }


/* ===========================================================
   FORMS (Quote + Contact)
   =========================================================== */
.form-section {
  padding: 80px 0;
}

.form-wrapper {
  background: var(--white);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.form-wrapper--no-shadow {
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

.form-intro {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { flex: 1; }
.form-field--full { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-field textarea { resize: vertical; }

.form-status {
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
}
.form-status:not(:empty) { padding: 12px 16px; }
.form-status--success { background: #d4edda; color: #155724; }
.form-status--error { background: #f8d7da; color: #721c24; }


/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.contact-info__value {
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}
.contact-info__value a { color: var(--orange); }
.contact-info__value a:hover { text-decoration: underline; }


/* ===========================================================
   FAQ
   =========================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq__question:hover { color: var(--orange); }
.faq__chevron {
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item--open .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq__item--open .faq__answer {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq__answer p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}


/* ===========================================================
   LEGAL PAGE
   =========================================================== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-top: 24px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}
.legal-content p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.legal-content li {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 6px;
}


/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer__inner {
  display: flex;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand { flex: 1.6; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer__logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}
.footer__logo-text span {
  color: var(--orange);
  font-weight: 700;
}
.footer__tagline { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }

.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer__nav { min-width: 120px; }
.footer__nav ul,
.footer__contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a,
.footer__contact a {
  font-size: 14px;
  transition: color 0.2s;
}
.footer__nav a:hover,
.footer__contact a:hover { color: var(--orange); }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__whatsapp:hover {
  color: #25D366;
}
.footer__whatsapp-icon {
  flex-shrink: 0;
}
.footer__whatsapp:hover .footer__whatsapp-icon {
  filter: brightness(1.15);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 960px) {
  .hero__headline { font-size: 38px; }
  .hero__inner { gap: 32px; }
  .hero__image img { max-width: 400px; }
  .steps-grid { gap: 40px; }
  .about-split { gap: 40px; }
  .trust__inner { gap: 32px; }
  .footer__inner { flex-wrap: wrap; gap: 32px; }
  .handle-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero__title { font-size: 32px; }
}

@media (max-width: 768px) {
  .header__hamburger { display: flex; }

  .header__nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .header__nav--open { display: flex; }
  .header__menu { flex-direction: column; gap: 16px; }
  .header__cta { text-align: center; }

  .hero { padding: 60px 0; min-height: auto; }
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__headline { font-size: 34px; }
  .hero__subtext { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__image { justify-content: center; }
  .hero__image img { max-width: 100%; }

  .services__grid { grid-template-columns: 1fr; max-width: 440px; }
  .usp-grid { grid-template-columns: 1fr; }

  .steps-grid { flex-direction: column; align-items: center; gap: 36px; }

  .about-split { flex-direction: column; }
  .about-split__content { text-align: center; }
  .about-split__content .section-heading--left { text-align: center; }
  .about-split__image { justify-content: center; }

  .values-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .service-detail { flex-direction: column; gap: 16px; }

  .form-row { flex-direction: column; gap: 16px; }
  .form-wrapper { padding: 28px 20px; }

  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__brand { text-align: center; }
  .footer__logo { justify-content: center; }

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

  .page-hero { padding: 44px 0; }
  .page-hero__title { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 28px; }
  .hero__subtext { font-size: 16px; }
  .section-heading { font-size: 26px; }
  .section { padding: 56px 0; }
  .trust__inner { flex-direction: column; align-items: center; gap: 14px; }
  .btn { padding: 12px 22px; font-size: 15px; }
  .container { padding: 0 16px; }
  .handle-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .cta-banner .btn { display: block; margin: 8px auto; max-width: 260px; }
}
