:root {
  --tac-primary: #0A3D62;      /* Deep Professional Blue */
  --tac-accent: #3C6382;       /* Soft Tech Blue */
  --tac-light: #F5F7FA;        /* Clean Light Background */
  --tac-text: #2C3E50;         /* Dark Slate */
  --tac-border: #DFE6E9;       /* Light Grey */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  margin: 0;
  background: var(--tac-light);
  color: var(--tac-text);
  line-height: 1.6;
}

/* Header & Navigation */
.tac-header {
  background: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 2px solid var(--tac-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tac-nav {
  display: flex;
  gap: 0;
}

.tac-nav a {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--tac-primary);
  font-weight: 600;
  transition: 0.2s;
  border-bottom: 3px solid transparent;
}

.tac-nav a:hover {
  color: var(--tac-accent);
  border-bottom-color: var(--tac-accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0A3D62 0%, #3C6382 100%);
  color: #fff;
  padding: 80px 40px;
  position: relative;
  min-height: 600px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.hero-logo-section {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.hero-logo {
  height: 150px;
  width: auto;
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  color: #fff;
  font-size: 38px;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.hero-tagline {
  color: #E8F0F7;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.hero-main {
  flex: 1;
  padding-top: 20px;
}

.hero-main h2 {
  color: #fff;
  font-size: 42px;
  margin: 0 0 20px 0;
}

.hero-main p {
  color: #E8F0F7;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.hero-list {
  color: #E8F0F7;
  margin: 15px 0;
  padding-left: 20px;
}

.hero-list li {
  margin-bottom: 10px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #0A3D62 0%, #3C6382 100%);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 10px 0;
  font-size: 42px;
}

.page-header p {
  margin: 0;
  font-size: 18px;
  color: #E8F0F7;
}

/* Container */
.tac-container {
  max-width: 1000px;
  margin: 50px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

h1, h2 {
  color: var(--tac-primary);
}

h3 {
  color: var(--tac-primary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: #f9fafb;
  border-left: 4px solid var(--tac-accent);
  padding: 20px;
  border-radius: 8px;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--tac-text);
}

/* Services Preview */
.services-preview {
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.service-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-top: 3px solid var(--tac-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-item h3 {
  margin: 0 0 10px 0;
}

.service-item p {
  margin: 0;
  font-size: 14px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.project-card {
  background: #fff;
  border: 2px solid var(--tac-accent);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.project-card:hover {
  border-color: var(--tac-primary);
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.15);
  transform: translateY(-2px);
}

.project-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.project-card p {
  margin: 8px 0;
  font-size: 14px;
}

.projects-region {
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tac-border);
}

/* Service Sections */
.service-section {
  margin: 40px 0;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--tac-border);
}

.service-section h2 {
  margin-top: 0;
  color: var(--tac-primary);
}

.service-section p {
  margin: 10px 0;
}

.service-section ul, .services-list {
  margin: 15px 0;
  padding-left: 25px;
}

.service-section li, .services-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* About Section */
.about-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--tac-border);
}

.about-section:last-child {
  border-bottom: none;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.office-card {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--tac-primary);
}

.office-card h3 {
  margin-top: 0;
}

.office-card p {
  margin: 8px 0;
  font-size: 14px;
}

.office-card a {
  color: var(--tac-primary);
  text-decoration: none;
}

.office-card a:hover {
  text-decoration: underline;
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: #f9fafb;
  padding: 30px;
  border-radius: 8px;
}

.contact-office {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tac-border);
}

.contact-office:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-office h3 {
  margin: 0 0 15px 0;
}

.contact-office p {
  margin: 8px 0;
  font-size: 14px;
}

.contact-form-section h2 {
  margin-top: 0;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--tac-primary);
  font-size: 14px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--tac-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--tac-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 99, 130, 0.15);
}

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

button {
  background: var(--tac-primary);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  font-weight: 600;
}

button:hover {
  background: var(--tac-accent);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--tac-primary);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  border: 2px solid #fff;
}

.btn:hover {
  background: var(--tac-accent);
  color: #fff;
  border-color: var(--tac-accent);
  transform: translateY(-2px);
}

.tac-container .btn {
  background: var(--tac-primary);
  color: #fff;
  border-color: var(--tac-primary);
}

.tac-container .btn:hover {
  background: var(--tac-accent);
  border-color: var(--tac-accent);
  color: #fff;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
}

.cta-section h2 {
  margin-top: 0;
}

.cta-section p {
  font-size: 16px;
  margin-bottom: 25px;
}

/* Footer */
footer {
  background: var(--tac-primary);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: var(--tac-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tac-header {
    padding: 15px 20px;
  }

  .tac-nav {
    flex-wrap: wrap;
  }

  .tac-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
  }

  .hero-logo-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo {
    height: 100px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-main h2 {
    font-size: 28px;
  }

  .page-header {
    padding: 40px 20px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .tac-container {
    margin: 30px 15px;
    padding: 25px;
  }

  .features-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 20px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .tac-nav {
    gap: 0;
  }

  .tac-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-text h1,
  .hero-main h2,
  .page-header h1 {
    font-size: 24px;
  }

  .hero-main p,
  .hero-text p {
    font-size: 14px;
  }
}
