/*-----------------------------------------------------------------------------------
	Crossed Wires Engineering Limited
	Understated Clean Professional Theme
	Author: Crossed Wires Engineering
	Version: 3.0
-----------------------------------------------------------------------------------*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Understated Color Palette */
  --bg-primary: #FDFDFD;
  --bg-secondary: #F3F4F6;
  --bg-dark: #0F172A;

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-light: #F8FAFC;
  --text-muted: #64748B;

  /* NI Accents - Muted & Professional */
  --color-blue: #1E40AF;
  --color-orange: #C2410C;
  --color-accent-border: #E2E8F0;

  /* Muted Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
}

/* Global Reset & Base Elements */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-container {
  overflow: hidden;
}

a,
button {
  transition: all 0.2s ease-in-out;
  outline: none !important;
  text-decoration: none !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Custom Navigation Bar */
.navbar-custom {
  background-color: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-accent-border);
  padding: 1rem 0;
  z-index: 1050;
}

.navbar-custom .navbar-brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: #0F172A !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-custom .navbar-brand span {
  color: var(--color-orange);
  font-weight: 500;
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
}

.navbar-custom .nav-link:hover {
  color: #0F172A !important;
  background-color: var(--bg-secondary);
}

.navbar-custom .nav-link.active {
  color: #0F172A !important;
  font-weight: 600;
}

.navbar-toggler-custom {
  border: 1px solid var(--color-accent-border);
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: 6px;
}

.navbar-toggler-custom-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Content Panels */
.content-panel {
  background: #FFFFFF;
  border: 1px solid var(--color-accent-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-in-out;
}

.content-panel:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-bloc {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--color-accent-border);
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--color-accent-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background-color: var(--color-blue);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #0F172A;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 1.7rem;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--color-blue);
  color: #FFFFFF !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background-color: #1D4ED8;
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background-color: #FFFFFF;
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-accent-border);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-custom:hover {
  background-color: var(--bg-secondary);
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* Sections Global */
.section-padding {
  padding: 50px 0;
}

.section-title-wrap {
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0F172A;
}

/* Service Cards */
.service-card {
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-icon-wrap.blue {
  background: #EFF6FF;
  color: var(--color-blue);
  border: 1px solid #DBEAFE;
}

.service-icon-wrap.orange {
  background: #FFF7ED;
  color: var(--color-orange);
  border: 1px solid #FFE4E6;
}

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

.service-card ul {
  padding-left: 0;
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 0;
}

.service-card ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.service-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--color-blue);
  font-size: 0.75rem;
}

.service-card.orange-theme ul li::before {
  color: var(--color-orange);
}

/* Understated Workspace Mockup */
.workspace-mockup {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-accent-border);
}

.workspace-window-header {
  background-color: #F1F5F9;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--color-accent-border);
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dot.red {
  background-color: #CBD5E1;
}

.window-dot.yellow {
  background-color: #CBD5E1;
}

.window-dot.green {
  background-color: #CBD5E1;
}

.workspace-window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.workspace-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Understated Badges */
.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--color-accent-border);
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.tech-badge i {
  font-size: 1rem;
  color: var(--color-blue);
}

.tech-badge:hover {
  background: var(--bg-secondary);
  border-color: #CBD5E1;
}

.tech-badge.ni-orange i {
  color: var(--color-orange);
}

.tech-badge span {
  font-weight: 500;
  font-size: 0.85rem;
}

/* Contact Info Panel */
.contact-info-panel {
  padding: 2rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--color-accent-border);
}

.contact-info-item.orange-item .contact-icon {
  color: var(--color-orange);
}

.contact-info-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-info-item a {
  color: var(--text-primary);
}

.contact-info-item a:hover {
  color: var(--color-orange);
}

/* Understated Forms */
.form-custom .form-control {
  background: #FFFFFF;
  border: 1px solid var(--color-accent-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.form-custom .form-control:focus {
  border-color: #94A3B8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: #A1A1AA;
}

/* Footer & Legal (UK Specific) */
.footer-custom {
  background-color: var(--bg-dark);
  border-top: 1px solid #1E293B;
  padding: 40px 0 20px 0;
}

.footer-custom h4,
.footer-custom .footer-logo {
  color: #FFFFFF !important;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo span {
  color: var(--color-orange);
}

.footer-desc {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-links.text-secondary li {
  color: #94A3B8 !important;
  font-size: 0.85rem;
}

.footer-links.text-secondary a {
  color: #94A3B8 !important;
}

.footer-links.text-secondary a:hover {
  color: #FFFFFF !important;
}

.footer-legal-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
}

.footer-legal-text {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.5;
}

.footer-legal-text strong {
  color: #94A3B8;
}

.footer-legal-text a {
  color: #64748B;
}

.footer-legal-text a:hover {
  color: #FFFFFF;
}

/* Scroll To Top */
.scroll-to-top-custom {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 1px solid var(--color-accent-border);
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.scroll-to-top-custom.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top-custom:hover {
  background: var(--bg-secondary);
  border-color: #CBD5E1;
}

/* Legal Pages Styling (understated content pages) */
.legal-container {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 800px;
}

.legal-title {
  margin-bottom: 2rem;
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  color: #0F172A;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-accent-border);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Official Certification Badges */
.cert-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cert-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.cert-badge-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.cert-badge-img:hover {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.cert-badge-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.3;
}

/* Principal Profile Photo */
.profile-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-accent-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Dropdown Hover */
@media all and (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}