/* -------------------------------------------------------------
   ACC PROJECTS - Modern Vanilla CSS Styling System
   Simple, Professional, High-End Aesthetic
   ------------------------------------------------------------- */

/* Custom CSS Variables & Tokens */
:root {
  --navy-dark: #0f1e36;
  --navy: #1b365d;
  --navy-light: #2a4b7c;
  --red: #d22630;
  --red-hover: #b01e26;
  --gold: #f5a623;
  
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --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 -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --container-width: 1200px;
}

/* Reset & Cards */
.service-card, .project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card:hover, .project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 54, 93, 0.15);
}

.service-card-img-wrapper, .project-card-img-wrapper {
  overflow: hidden;
}

.service-card-img, .project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-normal);
  display: block;
}

.service-card:hover .service-card-img, .project-card:hover .project-card-img {
  transform: scale(1.05);
}

.service-card-content, .project-card-content {
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title, .project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.service-card:hover .service-card-title, .project-card:hover .project-card-title {
  color: var(--red);
}

.service-card-text, .project-card-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-py {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .section-py {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 56px;
  width: auto;
  transition: var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: var(--transition-fast);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--red);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border: 1px solid var(--red);
}

.nav-btn:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Dropdown */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 16px;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
}

.mobile-nav-link {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--navy);
}

.mobile-nav-btn {
  background-color: var(--red);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* Main Content SPA views */
.view-panel {
  display: none;
  padding-top: 76px;
  flex: 1;
}

.view-panel.active {
  display: block;
  animation: viewFadeIn 0.5s ease-out forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  background-color: var(--gray-50);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 540px;
}

.hero-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  border: 1px solid var(--red);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy-light);
  color: var(--white);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image {
    height: 380px;
  }
}

/* Intro Section */
.intro {
  background-color: var(--white);
  text-align: center;
}

.section-tag {
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.section-description-lg {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* Home Services Summary Section */
.home-services {
  background-color: var(--gray-50);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.header-row-left {
  text-align: left;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Projects Snapshot Section */
.home-projects {
  background-color: var(--white);
}

/* Call To Action Section */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-xl);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: -150px;
  right: -50px;
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-btn {
  background-color: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: var(--transition-fast);
  border: 1px solid var(--red);
  flex-shrink: 0;
}

.cta-btn:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 40px 24px;
  }
  .cta-btn {
    width: 100%;
  }
}

/* Services Detail Page Layout */
.services-header {
  background-gradient: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 100px 0 80px 0;
  text-align: center;
}

.services-header .section-title {
  color: var(--white);
}

.services-header .section-description-lg {
  color: rgba(255, 255, 255, 0.7);
}

.tabs-container {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  background-color: var(--white);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.active {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 576px) {
  .tabs-nav {
    flex-direction: column;
    padding: 8px;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.4s ease-out forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.service-detail-left {
  max-width: 600px;
}

.service-detail-subtitle {
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.service-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.sub-service-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.sub-service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-detail-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Custom Inquiry Banner */
.custom-inquiry-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px;
  border-radius: var(--radius-md);
  margin-top: 60px;
  box-shadow: var(--shadow-md);
}

.custom-inquiry-box h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.custom-inquiry-box p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* About Us Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content-left {
  max-width: 520px;
}

.about-paragraph {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.values-section {
  background-color: var(--gray-50);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(27, 54, 93, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--navy);
  transition: var(--transition-fast);
}

.value-card:hover .value-icon {
  background-color: var(--navy);
  color: var(--white);
}

.value-card h4 {
  font-size: 1.2rem;
  color: var(--navy-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--white);
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.contact-info-text {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(27, 54, 93, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.info-value {
  font-size: 1rem;
  color: var(--navy-dark);
  font-weight: 600;
}

.info-value a:hover {
  color: var(--red);
}

.form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

@media (max-width: 576px) {
  .form-wrapper {
    padding: 24px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: var(--white);
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* Rate Limit / Status Alerts */
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  animation: alertFadeIn 0.3s ease-out forwards;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status.success {
  display: block;
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.form-status.error {
  display: block;
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.form-status.loading {
  display: block;
  background-color: #e2e3e5;
  color: #41464b;
  border: 1px solid #d3d3d4;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Footer Section */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  margin-top: auto;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link-item:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}
