@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto+Slab:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #e30613;      /* Swiss Red / Brand Red */
  --primary-hover: #b91c1c;      /* Darker Red */
  --secondary-color: #0f172a;    /* Slate 900 */
  --text-color: #334155;         /* Slate 700 */
  --light-text-color: #ffffff;
  --bg-light: #f8fafc;           /* Slate 50 */
  --border-color: #e2e8f0;       /* Slate 200 */
  --card-bg: #ffffff;
  --footer-bg: #0f172a;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Roboto Slab', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

h1, h2, h3, h4, .logo-title {
  font-family: var(--font-serif);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  background-color: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 6px -1px rgba(227, 6, 19, 0.15);
  user-select: none;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-slogan {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  word-spacing: 0.15em;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
  background-color: rgba(227, 6, 19, 0.05);
}

.nav-links a.active {
  color: var(--primary-color);
  background-color: rgba(227, 6, 19, 0.08);
  font-weight: 600;
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(227, 6, 19, 0.15) 0%, transparent 45%), 
                    radial-gradient(circle at 90% 80%, rgba(0, 90, 156, 0.1) 0%, transparent 50%);
  color: var(--light-text-color);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 850px;
  margin: 0 auto 20px auto;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page Header (About, Services, Contact, etc.) */
.page-header {
  background-color: var(--secondary-color);
  background-image: radial-gradient(circle at 100% 0%, rgba(227, 6, 19, 0.08) 0%, transparent 60%);
  color: var(--light-text-color);
  padding: 60px 24px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

/* Content Sections */
.content-section {
  padding: 80px 24px;
}

.content-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.section-lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Grid Layouts */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(227, 6, 19, 0.2);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-card-icon {
  font-size: 28px;
  color: var(--primary-color);
}

.service-card h3 {
  color: var(--secondary-color);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.service-card p {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-card a {
  align-self: flex-start;
  margin-top: 20px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card a:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* Product & Infrastructure Items style */
.product, .service {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product:hover, .service:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 6, 19, 0.1);
}

.product h2, .service h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product p, .service p {
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 950px;
}

.product h3, .service h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.product ul, .service ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}

.product li, .service li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-color);
}

.product li::before, .service li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: #10b981;  /* Emerald check */
  font-size: 12px;
}

/* Content grid (About Page structure) */
.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.content-grid img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.content-grid h2 {
  text-align: left;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.content-grid p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-grid ol {
  list-style: none;
  counter-reset: my-counter;
}

.content-grid ol li {
  counter-increment: my-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.content-grid ol li::before {
  content: counter(my-counter);
  position: absolute;
  left: 0;
  top: 2px;
  background-color: rgba(227, 6, 19, 0.08);
  color: var(--primary-color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Contact Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3, .contact-form h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.contact-info p {
  margin-bottom: 24px;
  color: var(--text-color);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(227, 6, 19, 0.05);
  border-radius: 8px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  shrink-0: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-detail-text a:hover {
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--secondary-color);
  background-color: #fff;
  transition: var(--transition);
}

/* Premium single red border style on focus */
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Call to Action Section */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-image: radial-gradient(circle at 50% 50%, rgba(227, 6, 19, 0.03) 0%, transparent 60%);
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 580px;
  margin: 0 auto 30px auto;
}

.cta-button, .contact-form button {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 14px 32px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(227, 6, 19, 0.2);
  transition: var(--transition);
}

.cta-button:hover, .contact-form button:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 10px 15px -3px rgba(227, 6, 19, 0.3);
  transform: translateY(-2px);
}

/* Footer styling */
footer {
  background-color: var(--footer-bg);
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid p {
  font-size: 13.5px;
  line-height: 1.7;
}

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

.footer-grid li {
  margin-bottom: 12px;
  font-size: 13.5px;
}

.footer-grid a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 12.5px;
  color: #64748b;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(227, 6, 19, 0.25);
}

/* Hamburger toggle for mobile */
.menu-toggle {
  display: none;
}

/* 404 & 502 error pages style */
.error-section {
  padding: 100px 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-container {
  max-width: 480px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.error-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.error-message {
  font-size: 14.5px;
  color: var(--text-color);
  margin-bottom: 30px;
}

/* Media Queries */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  nav {
    height: 70px;
  }
  .logo-title {
    font-size: 16px;
  }
  .logo-slogan {
    font-size: 8px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
  }
  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: -24px;
    right: -24px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    gap: 0;
    z-index: 99;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 0;
  }
  .nav-links a.active {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 700;
  }
  
  .hero {
    padding: 60px 16px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .content-section {
    padding: 50px 16px;
  }
  .content-section h2 {
    font-size: 1.75rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product, .service {
    padding: 24px;
  }
  .product h2, .service h2 {
    font-size: 1.35rem;
  }
  .product ul, .service ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .contact-form {
    padding: 24px;
  }
}
