/*
Theme Name: ACE-NET Technology
Theme URI: https://acenet.com.sg
Author: ACE-NET Technology
Author URI: https://acenet.com.sg
Description: Official WordPress theme for ACE-NET Technology — IT Infrastructure & Security specialists in Singapore since 2012.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acenet
*/

/* ============================================
   CUSTOM TYPOGRAPHY & BASE STYLES
   ============================================ */

body {
  font-family: 'Space Grotesk', sans-serif;
  color: #0f172a;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-dark {
    color: #fff;
}

/* ============================================
   MATERIAL SYMBOLS ICONS
   ============================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.2);
  transition: all 150ms ease-in-out;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

.nav-menu-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

@media (min-width: 768px) {
  .nav-menu-desktop {
    display: flex;
  }
}

.nav-link {
  transition: color 200ms ease;
  text-decoration: none;
  color: #475569;
}

.nav-link:hover {
  color: #1e40af;
}

.nav-link-active {
  color: #1e3a8a;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 0.25rem;
}

.btn {
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
  background-color: #1A4B84;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 150ms ease-in-out;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  color: white;
}

.btn-secondary {
  background-color: white;
  border: 2px solid rgba(26, 75, 132, 0.2);
  color: #0f172a;
  padding: 2rem;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: #1A4B84;
  box-shadow: 0 20px 25px -5px rgba(26, 75, 132, 0.05);
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu-summary {
  list-style: none;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid rgba(182, 184, 188, 1);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a8a;
  background: none;
  transition: background-color 150ms ease;
}

.mobile-menu-summary:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-content {
  position: absolute;
  right: 0;
  margin-top: 0.75rem;
  width: 14rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background-color: white;
  padding: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: background-color 150ms ease;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.mobile-menu-link:hover {
  background-color: #f1f5f9;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
  padding: 2rem;
  border: 1px solid rgba(26, 75, 132, 0.05);
  background-color: rgb(26 75 132);
  border-radius: 0.25rem;
  transition: all 200ms ease;
}

.card:hover {
  border-color: rgba(26, 75, 132, 0.3);
  box-shadow: 0 20px 25px -5px rgba(26, 75, 132, 0.05);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.pills--enterprise {
  width: 150px;
  padding: 1em 1.5em;
  border-radius: 16px;
  background-color: rgb(26 75 132 / var(--tw-bg-opacity, 1));
  color: white;
  text-align: center;
}

/* ============================================
   HERO & BACKGROUND STYLES
   ============================================ */

.hero-section {
  background:
  linear-gradient(135deg, rgba(226,232,240,0.9) 0%, rgba(255,255,255,0.85) 50%, rgba(241,245,249,0.7) 100%),
  url('assets/serveroom.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bg-opacity-100 {
    background-color: rgba(248, 250, 252, 1);
}

.bg-contact {
    background-image: url('assets/bg1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-BESS {
    background-image: url('assets/bg2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-brand-dark {
  background-color: #0f172a;
}

.grid-lines {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(26, 75, 132, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 75, 132, 0.08) 1px, transparent 1px);
}

.blueprint-grid {
  background-image: radial-gradient(circle, #1a4b84 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
}

.technical-gradient {
  background: linear-gradient(135deg, #1A4B84 0%, #2b6cb0 100%);
}

.bg-white {
    background-color: white;
}

.bg-hero-about {
  background:
  linear-gradient(rgba(26, 75, 132, 0.5), rgba(26, 75, 132, 0.85)),
  url('assets/bg-about.jpg');
  background-size: cover;
  background-position: center;
}

.bg-hero-about h1 {
  color: white;
}

.bg-hero-about h1 span {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-repeat: no-repeat;
}

/* ============================================
   SECTION LAYOUTS
   ============================================ */

.section {
  padding: 6rem 0;
  background-color: white;
}

.section-light {
  background-color: #f1f5f9;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.products-services ul li b {
    display: block;
}

.products-services ul li {
    font-size: 14px;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: rgb(247 249 255 / var(--tw-bg-opacity, 1));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: #1A4B84;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ============================================
   LAYOUT & SHAPE UTILITIES
   ============================================ */

.asymmetric-clip {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
}

.ghost-border {
  border: 1px solid rgba(115, 119, 127, 0.15);
}

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */

.tonal-shift {
  transition: background-color 0.3s ease;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  width: 100%;
  z-index: 50;
  padding: 2rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-footer a {
  position: relative;
  color: #64748b;
  font-size: 0.93rem;
  text-decoration: none;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-footer a:hover::after {
  transform: scaleX(1);
}

.site-footer p {
  color: #94a3b8;
  font-size: 0.92rem;
}

.subheading {
  font-size: 26px;
}

/* ============================================
   BRAND STYLES
   ============================================ */

.logo {
    max-width: 420px;
}

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

/* ============================================
   EXPANDABLE PRODUCT STYLES
   ============================================ */

.expandable-product {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

details[open] .expandable-product-summary {
    opacity: 1;
}

.expandable-product:first-child {
  border-top: none;
  padding-top: 0;
}

.expandable-product-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: opacity 150ms ease-in-out;
}

.expandable-product-summary:hover {
  opacity: 1 !important;
}

.expandable-product-summary::-webkit-details-marker {
  display: none;
}

.expandable-product-icon {
  flex-shrink: 0;
  transition: transform 200ms ease-in-out;
  color: white;
}

details[open] .expandable-product-icon {
  transform: rotate(45deg);
}

.expandable-product-content {
  margin-top: 1rem;
  padding-top: 1rem;
  animation: slideDown 200ms ease-out;
}

.products-services summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.products-services details {
    flex-direction: column;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

.contact-alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 900px) {
  .logo {
    max-width: 275px;
  }
}

@media (max-width: 767px) {
  .mobile-menu {
    display: block;
  }
  .site-footer {
    flex-direction: column;
  }
  .bg-BESS .w-1\/2 {
    width: 100%;
  }
  .pills--enterprise {
    width: auto;
  }
}

@media (max-width: 465px) {
  .text-6xl, .text-5xl, .text-4xl, .section-title {
    font-size: 10vw;
  }
  .text-3xl {
    font-size: 6vw;
  }
  .navbar-container .brand {
    width: calc(100% - 5rem);
  }
  .navbar-container .brand .logo {
    max-width: calc(100% - 1rem);
  }
}

@media (max-width: 345px) {
  .site-footer nav {
    flex-direction: column;
    align-items: start;
    align-self: flex-start;
  }
}

.over-x-hidden {
    overflow-x: hidden;
}
