/* 
  Carta Logistics - Premium CSS Design System
  Tactile Paper Motif & Clean Editorial Layout
*/

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

:root {
  /* HSL Color System */
  --color-bg-base: hsl(34, 40%, 96%);         /* Cream Paper Background */
  --color-bg-card: hsl(0, 0%, 100%);          /* Crisp Paper Card White */
  --color-text-primary: hsl(210, 15%, 15%);    /* Print Ink Charcoal */
  --color-text-muted: hsl(210, 10%, 42%);     /* Slate Gray */
  --color-brand-sage: hsl(110, 12%, 40%);      /* Sage Green (Primary Brand) */
  --color-brand-sage-light: hsl(110, 12%, 93%);/* Light Sage Hover State */
  --color-brand-tan: hsl(35, 20%, 65%);       /* Cardboard Tan (Secondary Accent) */
  --color-border-subtle: hsl(34, 15%, 86%);   /* Card Borders */
  --color-border-focus: hsl(110, 12%, 35%);    /* Input Focus Outline */
  
  /* Tactile Shadows (Paper Layers) */
  --shadow-flat: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -5px hsla(34, 15%, 20%, 0.06), 
                 0 2px 8px -2px hsla(34, 15%, 20%, 0.03);
  --shadow-lifted: 0 20px 40px -10px hsla(34, 15%, 20%, 0.12), 
                   0 8px 16px -4px hsla(34, 15%, 20%, 0.06);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout Constraints */
  --max-width-container: 1360px;
  --min-width-viewport: 340px;
  
  /* Fluid Spacing & Typography */
  --padding-section: clamp(3.5rem, 8vw, 7.5rem);
  --margin-element: clamp(1.2rem, 3vw, 2.5rem);
  
  --font-size-hero: clamp(2.4rem, 6.5vw, 4.4rem);
  --font-size-h2: clamp(1.8rem, 4.5vw, 2.6rem);
  --font-size-h3: clamp(1.25rem, 2.5vw, 1.6rem);
  --font-size-body: clamp(0.95rem, 1.5vw, 1.1rem);
  --font-size-small: clamp(0.8rem, 1.2vw, 0.9rem);
  
  /* Transitions */
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.15s ease-out;
}

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

html {
  scroll-behavior: smooth;
  min-width: var(--min-width-viewport);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  background-image: url('assets/paper_texture_bg.png');
  background-repeat: repeat;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Global Container */
.container {
  width: 90%;
  max-width: var(--max-width-container);
  margin: 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
  background-image: url('assets/paper_texture_bg.png');
}
::-webkit-scrollbar-thumb {
  background: var(--color-brand-tan);
  border: 2px solid var(--color-bg-base);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-sage);
}

/* Button & Link UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: var(--font-size-small);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg-card);
  border: 1px solid var(--color-text-primary);
}

.btn-primary:hover {
  background-color: var(--color-brand-sage);
  border-color: var(--color-brand-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-flat);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
}

.btn-secondary:hover {
  background-color: hsla(210, 15%, 15%, 0.05);
  transform: translateY(-2px);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(246, 244, 239, 0.85); /* Semitransparent cream */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: var(--transition-normal);
}

.header-scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-flat);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-svg-wrapper {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 2.5rem);
}

.nav-item {
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-sage);
  transition: var(--transition-normal);
}

.nav-item:hover {
  color: var(--color-brand-sage);
}

.nav-item:hover::after {
  width: 100%;
}

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

.burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-text-primary);
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  padding-top: calc(80px + var(--padding-section));
  padding-bottom: var(--padding-section);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--margin-element);
  align-items: center;
}

.hero-tag {
  font-family: var(--font-header);
  color: var(--color-brand-sage);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-headline {
  font-size: var(--font-size-hero);
  margin-bottom: 1.2rem;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-normal);
}

.hero-image-wrapper:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lifted);
}

.hero-img {
  width: 100%;
  border-radius: 4px;
}

/* Why Choose Us Section */
.why-us {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.4);
}

.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 780px;
}

.section-tag {
  font-family: var(--font-header);
  color: var(--color-brand-sage);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: var(--font-size-h2);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--margin-element);
}

.why-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-brand-tan);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--color-brand-sage);
}

.why-card:hover::before {
  transform: scaleX(1);
  background-color: var(--color-brand-sage);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  background-color: var(--color-bg-base);
}

.card-icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-brand-sage);
}

.card-title {
  font-size: var(--font-size-h3);
  margin-bottom: 0.8rem;
}

.card-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

/* Services Section */
.services {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}

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

.service-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.service-header {
  margin-bottom: 1.5rem;
}

.service-num {
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-brand-tan);
  margin-bottom: 0.5rem;
  display: block;
}

.service-title {
  font-size: var(--font-size-h3);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

.service-footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
}

.arrow-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.arrow-link:hover {
  color: var(--color-brand-sage);
}

.arrow-link:hover svg {
  transform: translateX(4px);
  stroke: var(--color-brand-sage);
}

/* Homepage Services Redesign */
#services .services-grid {
  grid-template-columns: repeat(4, 1fr);
}

#services .service-card {
  height: 280px;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

#services .service-card:nth-child(1),
#services .service-card:nth-child(2),
#services .service-card:nth-child(3) {
  grid-column: span 2;
}

#services .service-card:nth-child(4),
#services .service-card:nth-child(5) {
  grid-column: span 1;
}

#services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--color-brand-sage);
}

#services .service-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

#services .service-title {
  color: var(--color-bg-card);
  font-size: var(--font-size-h3);
  margin-bottom: 0.5rem;
  font-family: var(--font-header);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#services .service-desc {
  color: var(--color-bg-card);
  opacity: 0.85;
  font-size: var(--font-size-small);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Industries We Serve */
.industries {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.4);
}

.tabs-container {
  display: flex;
  gap: var(--margin-element);
  align-items: flex-start;
}

.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 300px;
  flex-shrink: 0;
}

.tab-btn {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-flat);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-btn:hover {
  background-color: var(--color-brand-sage-light);
  border-color: var(--color-brand-sage);
}

.tab-btn.active {
  background-color: var(--color-text-primary);
  color: var(--color-bg-card);
  border-color: var(--color-text-primary);
}

.tab-content-wrapper {
  flex-grow: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-card);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

.tab-title {
  font-size: var(--font-size-h2);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tab-icon {
  width: 36px;
  height: 36px;
  stroke: var(--color-brand-sage);
}

.tab-btn.active .tab-arrow {
  stroke: var(--color-bg-card);
}

.tab-btn .tab-arrow {
  transition: var(--transition-normal);
}

.tab-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Technology Section */
.technology {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--margin-element);
  align-items: center;
}

.tech-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--margin-element);
}

.tech-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: var(--shadow-flat);
  transition: var(--transition-normal);
}

.tech-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-brand-tan);
}

.tech-card-title {
  font-size: var(--font-size-small);
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--color-brand-sage);
}

.tech-card-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

/* Shipment Tracker Section */
.tracker {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.4);
}

.tracker-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
  position: relative;
}

.tracker-wrapper::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  border: 1px dashed var(--color-border-subtle);
  pointer-events: none;
  border-radius: 4px;
}

.tracker-form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.tracker-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.tracker-input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px hsla(110, 12%, 40%, 0.15);
}

.tracker-results {
  position: relative;
  z-index: 10;
  display: none; /* Controlled via JS */
  animation: fadeIn 0.4s ease-out;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 2rem;
}

.tracker-manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-brand-tan);
  padding-bottom: 1rem;
}

.manifest-id {
  font-family: var(--font-header);
  font-size: var(--font-size-h3);
}

.manifest-route {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  margin-top: 0.25rem;
}

.manifest-status {
  padding: 0.35rem 0.85rem;
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-delivered {
  background-color: var(--color-brand-sage-light);
  color: var(--color-brand-sage);
}

.status-intransit {
  background-color: hsl(35, 30%, 93%);
  color: hsl(35, 40%, 45%);
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  bottom: 6px;
  width: 2px;
  background-color: var(--color-border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
  border: 2px solid var(--color-border-subtle);
  transition: var(--transition-normal);
}

.timeline-item.completed .timeline-dot {
  background-color: var(--color-brand-sage);
  border-color: var(--color-brand-sage);
}

.timeline-item.active .timeline-dot {
  background-color: var(--color-brand-tan);
  border-color: var(--color-brand-tan);
  box-shadow: 0 0 0 4px hsla(35, 25%, 65%, 0.2);
}

.timeline-content {
  font-size: var(--font-size-small);
}

.timeline-title {
  font-weight: 600;
}

.timeline-status-text {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.tracker-error {
  display: none;
  color: hsl(0, 70%, 45%);
  background-color: hsl(0, 70%, 95%);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  border: 1px solid hsl(0, 70%, 90%);
  font-size: var(--font-size-small);
  margin-bottom: 1.5rem;
  z-index: 10;
  position: relative;
}

/* Quote/Partnership Form Section */
.quote {
  padding: var(--padding-section) 0;
  border-top: 1px solid var(--color-border-subtle);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--margin-element);
  align-items: flex-start;
}

.quote-info {
  position: sticky;
  top: 120px;
}

.quote-info-list {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.quote-info-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-brand-sage);
  flex-shrink: 0;
}

.quote-info-text {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.form-wrapper {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  border: 1px solid var(--color-border-subtle);
  border-radius: 4px;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px hsla(110, 12%, 40%, 0.15);
}

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

.form-success-msg {
  display: none;
  color: var(--color-brand-sage);
  background-color: var(--color-brand-sage-light);
  border: 1px solid var(--color-brand-sage);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: var(--font-size-small);
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

/* Footer Section */
.footer {
  background-color: var(--color-text-primary);
  background-image: linear-gradient(to bottom, hsla(210, 15%, 10%, 0.90) 0%, hsla(210, 15%, 10%, 0.90) 83.33%, hsla(210, 15%, 10%, 1.0) 83.33%, hsla(210, 15%, 10%, 1.0) 100%), url('assets/footer_cargo_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-bg-card);
  padding: 4.5rem 0 2.5rem 0;
  border-top: 1.5px solid var(--color-brand-tan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--margin-element);
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-logo polygon {
  fill: var(--color-bg-card);
}

.footer-desc {
  font-size: var(--font-size-small);
  color: hsla(0, 0%, 100%, 0.65);
  max-width: 340px;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-header);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--color-brand-tan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: var(--font-size-small);
  color: hsla(0, 0%, 100%, 0.65);
}

.footer-link:hover {
  color: var(--color-brand-tan);
  transform: translateX(3px);
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--font-size-small);
  color: hsla(0, 0%, 100%, 0.65);
}

.footer-bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.15);
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  align-items: center;
  font-size: 0.8rem;
  color: hsla(0, 0%, 100%, 0.55);
}

.footer-copy {
  text-align: left;
}

.footer-design {
  text-align: center;
}

.footer-author {
  text-align: right;
  font-family: var(--font-header);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 
  =========================================
  RESPONSIVE BREAKPOINTS (Desktop-First)
  =========================================
*/

/* Tablet Landscape and large tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid, .quote-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .quote-info {
    position: static;
  }
  
  .hero-image-wrapper {
    max-width: 680px;
    margin: 0 auto;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #services .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .tabs-container {
    flex-direction: column;
  }
  
  .tabs-list {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-btn {
    white-space: nowrap;
    padding: 0.85rem 1.25rem;
  }
  
  .tab-btn .tab-arrow {
    display: none;
  }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hidden - controlled by mobile overlay */
  }
  
  .burger-menu {
    display: block;
  }
  
  /* Mobile Navigation Active Class */
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-base);
    background-image: url('assets/paper_texture_bg.png');
    padding: 2.5rem;
    gap: 2rem;
    border-top: 1px solid var(--color-border-subtle);
    animation: fadeIn 0.3s ease-out;
  }
  
  .nav-links.mobile-active .nav-item {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }
  
  .nav-links.mobile-active .btn {
    width: 100%;
    margin-top: 1rem;
  }
  
  .burger-active .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .burger-active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .burger-active .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-top: 2rem;
  }
  
  .footer-copy, .footer-design, .footer-author {
    text-align: center;
  }
}

/* Mobile Screen Sizes (max-width: 580px) */
@media (max-width: 580px) {
  .why-grid, .services-grid {
    grid-template-columns: 1fr;
  }

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

  #services .service-card {
    grid-column: auto !important;
  }
  
  .tech-pillars {
    grid-template-columns: 1fr;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .tracker-form-group {
    flex-direction: column;
  }
  
  .tracker-form-group .btn {
    width: 100%;
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
