/* ==================================================
   SGS THEME — Sawyers Global Solutions Limited
   Defence & WOME Consultancy

   Colour Palette:
   Blues: #00C8FF (cyan), #0088DD (mid), #005FA3 (royal), #003D7A (navy), #002352 (deep)
   Reds: #E83030 (bright), #C41E2A (crimson), #A01622 (deep), #8B1520 (burgundy)
   Golds: #E8C864 (light), #D4A843 (gold), #B8922E (dark)
   Neutrals: #F0F2F5 (off-white), #E0E4EA (light grey), #8892A0 (mid grey), #0A0A14 (dark bg)

   ================================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #0A0A14;
  background: #FFFFFF;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #002352;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #005FA3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00C8FF;
}

strong {
  font-weight: 700;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

/* British Bar (top stripe) */
.british-bar {
  height: 4px;
  background: linear-gradient(90deg, #C41E2A 0%, #C41E2A 33%, white 33%, white 66%, #005FA3 66%, #005FA3 100%);
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* Header & Navigation */
header {
  background: #0A0A14;
  color: #F0F2F5;
  padding: 1rem 0;
  position: sticky;
  top: 4px;
  z-index: 1000;
  border-bottom: 1px solid rgba(136, 146, 160, 0.3);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.05rem;
  color: #F0F2F5;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
}

.logo-text .company-suffix {
  display: block;
  font-weight: 400;
  color: #8892A0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: #C8CDD6;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0.45rem 0.85rem;
  border-radius: 0.25rem;
  border-bottom: 2px solid transparent;
  display: block;
}

nav a:hover {
  color: #00C8FF;
  background: rgba(0, 200, 255, 0.07);
  border-bottom-color: transparent;
}

nav a.active {
  color: #00C8FF;
  background: rgba(0, 200, 255, 0.1);
  border-bottom: 2px solid #E8C864;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #002352 0%, #003D7A 50%, #005FA3 100%);
  color: #F0F2F5;
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.75rem;
  color: #00C8FF;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-size: 1.25rem;
  color: #E0E4EA;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #E83030 0%, #8B1520 100%);
  color: white;
  border-color: #E83030;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #C41E2A 0%, #6B1018 100%);
  border-color: #C41E2A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 48, 48, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #00C8FF;
  border-color: #00C8FF;
}

.btn-secondary:hover {
  background: #00C8FF;
  color: #0A0A14;
  transform: translateY(-2px);
}

.btn-gold {
  background: #D4A843;
  color: #0A0A14;
  border-color: #D4A843;
  font-weight: 700;
}

.btn-gold:hover {
  background: #E8C864;
  border-color: #E8C864;
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: white;
  border: 1px solid #E0E4EA;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 61, 122, 0.15);
  border-color: #00C8FF;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  color: #005FA3;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-header {
  padding: 2rem 1.5rem 0;
  flex-grow: 1;
}

.card h3 {
  font-size: 1.35rem;
  color: #002352;
  margin-bottom: 0.75rem;
}

.card p {
  color: #8892A0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #E0E4EA;
  margin-top: 1.5rem;
}

.card-footer a {
  color: #005FA3;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-footer a:hover {
  color: #00C8FF;
}

/* Section Styles */
section {
  padding: 4rem 0;
}

section.dark {
  background: #0A0A14;
  color: #F0F2F5;
}

section.dark h2,
section.dark h3 {
  color: #00C8FF;
}

section.light {
  background: #F0F2F5;
}

section.accent {
  background: linear-gradient(135deg, #E83030 0%, #8B1520 100%);
  color: white;
}

section.accent h2,
section.accent h3 {
  color: #E8C864;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

/* Magazine-Style Card Grid */
.article-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.article-card {
  background: white;
  border: 1px solid #E0E4EA;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 61, 122, 0.15);
  border-color: #00C8FF;
}

.article-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #00C8FF 0%, #003D7A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.article-card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.article-card-tag {
  display: inline-block;
  background: #E83030;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.2rem;
  color: #002352;
  margin-bottom: 0.5rem;
}

.article-card p {
  color: #8892A0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-card .meta {
  font-size: 0.8rem;
  color: #8892A0;
  border-top: 1px solid #E0E4EA;
  padding-top: 1rem;
}

.article-card a {
  color: #005FA3;
  font-weight: 600;
}

.article-card a:hover {
  color: #00C8FF;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #E8C864 0%, #D4A843 100%);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #8892A0;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

section.dark .section-header h2::after {
  background: linear-gradient(90deg, #00C8FF 0%, #0088DD 100%);
}

/* Competence Gap Section */
.competence-intro {
  background: #F0F2F5;
  padding: 3rem;
  border-radius: 0.5rem;
  border-left: 4px solid #E83030;
  margin: 2rem 0;
}

.competence-intro h3 {
  color: #002352;
  margin-bottom: 1rem;
}

.competence-intro p {
  color: #8892A0;
  margin-bottom: 0.75rem;
}

.competence-intro strong {
  color: #002352;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #00C8FF 0%, #E83030 100%);
}

.timeline-item {
  margin-bottom: 2rem;
  width: 48%;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #E0E4EA;
}

.timeline-content h4 {
  color: #002352;
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  color: #E83030;
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-content p {
  color: #8892A0;
  margin-bottom: 0;
}

/* Sister Company Banner */
.sister-banner {
  background: linear-gradient(135deg, #003D7A 0%, #005FA3 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sister-banner h3 {
  color: #E8C864;
  margin-bottom: 0.5rem;
}

.sister-banner p {
  color: #E0E4EA;
  margin-bottom: 0;
}

.sister-banner a {
  color: #00C8FF;
  font-weight: 600;
}

.sister-banner a:hover {
  color: #E8C864;
}

/* Footer */
footer {
  background: #0A0A14;
  color: #8892A0;
  padding: 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid #003D7A;
}

footer h4 {
  color: #00C8FF;
  margin-bottom: 1rem;
}

footer a {
  color: #8892A0;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #00C8FF;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid #003D7A;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #E0E4EA;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #002352;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E0E4EA;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0A0A14;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
textarea:focus {
  outline: none;
  border-color: #00C8FF;
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

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

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  nav ul {
    gap: 0.15rem;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
  }

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    width: 100%;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .timeline-content {
    margin-left: 0;
  }

  .sister-banner {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .container {
    padding: 0 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  nav {
    order: 3;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero .cta-buttons {
    flex-direction: column;
  }

  section {
    padding: 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #00C8FF;
  color: #0A0A14;
  padding: 0.5rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.25rem 0;
}

.skip-link:focus {
  top: 0;
}

/* Hamburger Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #8892A0;
  color: #F0F2F5;
  font-size: 1.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover {
  border-color: #00C8FF;
  color: #00C8FF;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  header nav {
    display: none;
    width: 100%;
    order: 3;
  }

  header nav.nav-open {
    display: block;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.5rem;
  }

  header nav ul li {
    width: 100%;
  }

  header nav a {
    display: block;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(136, 146, 160, 0.15);
  }

  .header-top {
    flex-wrap: wrap;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .british-bar,
  .btn,
  .contact-form {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: #005FA3;
  }
}
