/* 
  Ars Innovate (AI) Technologies and Consulting
  Design: Refined minimalism — Brooks Brothers meets Armani
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --navy: #0f172a;
  --navy-light: #1e293b;
  --charcoal: #334155;
  --slate: #64748b;
  --silver: #94a3b8;
  --mist: #e2e8f0;
  --cloud: #f1f5f9;
  --white: #ffffff;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  font-size: 1.0625rem;
  color: var(--charcoal);
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--slate);
}

.text-small {
  font-size: 0.875rem;
}

.text-teal {
  color: var(--teal);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
  z-index: 1000;
  transition: background var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-placeholder {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--teal);
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  padding: var(--space-md);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--cloud);
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 0;
}

.btn-ghost:hover {
  color: var(--teal-dark);
}

.btn-ghost svg {
  transition: transform var(--transition-fast);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(180deg, var(--white) 0%, var(--cloud) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero .text-large {
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════ */

.page-header {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.6s ease forwards;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   CARDS & GRID
   ═══════════════════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cloud) 0%, var(--mist) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--teal);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   INSIGHTS / BLOG CARDS
   ═══════════════════════════════════════════════════════════ */

.insight-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.insight-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}

.insight-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  position: relative;
  overflow: hidden;
}

.insight-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--teal);
  opacity: 0.3;
  border-radius: 50%;
  transform: translate(30%, 30%);
}

.insight-content {
  padding: var(--space-md);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--slate);
}

.insight-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  border-radius: 100px;
  font-weight: 500;
}

.insight-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.insight-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
}

.insight-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.insight-link:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.value-item {
  text-align: center;
  padding: var(--space-lg);
}

.value-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.value-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--cloud);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-text {
  font-size: 0.9375rem;
}

.contact-item-label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cloud);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--navy);
  color: var(--silver);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer .logo-placeholder {
  background: rgba(255, 255, 255, 0.1);
}

.footer .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  color: var(--silver);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.footer-nav-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav-link {
  font-size: 0.9375rem;
  color: var(--silver);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
}

.footer-copyright {
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--silver);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: var(--silver);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto var(--space-md);
}

/* ═══════════════════════════════════════════════════════════
   PLACEHOLDER STATES
   ═══════════════════════════════════════════════════════════ */

.coming-soon {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--cloud);
  border-radius: 16px;
  border: 2px dashed var(--mist);
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--teal);
}

.coming-soon h3 {
  margin-bottom: var(--space-xs);
}

.coming-soon p {
  color: var(--slate);
}

/* ═══════════════════════════════════════════════════════════
   MEDIA QUERIES
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none !important;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
    max-width: 800px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

/* Staggered card animations */
.card-grid .card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s forwards; opacity: 0; }
.card-grid .card:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s forwards; opacity: 0; }
.card-grid .card:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s forwards; opacity: 0; }

.card-grid .insight-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s forwards; opacity: 0; }
.card-grid .insight-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s forwards; opacity: 0; }
.card-grid .insight-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s forwards; opacity: 0; }
