/* ============================================
   AMS DIGITAL - Main Stylesheet
   Israeli Flag Colors + Brand Teal
   Sharp Corners / RTL / Hebrew
   ============================================ */

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

:root {
  --blue-primary: #0038b8;
  --blue-dark: #002a8a;
  --blue-deeper: #0d1b2a;
  --teal: #00b4d8;
  --teal-dark: #0096b4;
  --white: #ffffff;
  --off-white: #f0f4f8;
  --light-gray: #e2e8f0;
  --text-dark: #1a2744;
  --text-body: #334155;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #0038b8 50%, #002a8a 100%);
  --gradient-cta: linear-gradient(135deg, #0038b8 0%, #00b4d8 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ZERO BORDER RADIUS EVERYWHERE */
*, *::before, *::after {
  border-radius: 0 !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  border-bottom: 3px solid var(--blue-primary);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
}

.logo svg {
  height: 48px;
  width: auto;
  display: block;
  background: transparent !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.logo-text .logo-main {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-text .logo-main .ams {
  color: var(--blue-deeper);
}

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

.logo-text .logo-main .divider {
  width: 2px;
  height: 28px;
  background: var(--teal);
  margin: 0 4px;
}

.logo-text .logo-main .logo-icon {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--teal);
  line-height: 1;
}

.logo-text .logo-sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Footer logo - white version */
.footer-about .logo-text .logo-main .ams {
  color: var(--white);
}

.footer-about .logo-text .logo-sub {
  color: rgba(255,255,255,0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--blue-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--blue-primary);
}

.main-nav a.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 220px;
  border: 2px solid var(--blue-primary);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--light-gray);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--blue-primary);
}

.dropdown-menu a::after {
  display: none;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: 2px solid var(--blue-primary);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-primary);
  transition: all 0.3s ease;
}

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

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

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

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gradient-cta);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-cta::after {
  display: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--teal);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 550px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  padding: 120px 0 60px;
  background: var(--gradient-hero);
  margin-top: var(--header-height);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
}

.breadcrumbs {
  margin-bottom: 16px;
}

.breadcrumbs a, .breadcrumbs span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.breadcrumbs .sep {
  margin: 0 8px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--white);
}

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

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--blue-deeper);
  color: var(--white);
}

.section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-gray {
  background: var(--off-white);
}

.section-blue {
  background: var(--blue-primary);
  color: var(--white);
}

.section-blue h2, .section-blue h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
  border-right: 3px solid var(--teal);
}

.section-dark .section-label {
  background: rgba(0, 180, 216, 0.15);
}

/* Blue bar accent */
.blue-bar {
  width: 60px;
  height: 4px;
  background: var(--teal);
  margin-bottom: 20px;
}

.blue-bar-center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SERVICES GRID
   ============================================ */

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

.service-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--teal);
  transition: height 0.3s ease;
}

.service-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-card .card-link {
  color: var(--blue-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.service-card:hover .card-link {
  gap: 12px;
  color: var(--teal);
}

/* ============================================
   FEATURES / WHY US
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

.feature-item h3 {
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   CONTENT SECTIONS (Service Pages)
   ============================================ */

.content-section {
  padding: 60px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-body {
  max-width: 800px;
}

.content-body h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

.content-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--blue-primary);
}

.content-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.content-body ul li {
  padding: 8px 0;
  padding-right: 24px;
  position: relative;
}

.content-body ul li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--teal);
  font-size: 0.7rem;
  top: 12px;
}

.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-box {
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  border-right: 4px solid var(--blue-primary);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h4 {
  margin-bottom: 16px;
  color: var(--blue-primary);
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
}

.sidebar-box ul li {
  margin-bottom: 0;
}

.sidebar-box ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.2s ease;
}

.sidebar-box ul li a:hover {
  background: var(--white);
  color: var(--blue-primary);
  padding-right: 20px;
}

.sidebar-cta {
  background: var(--gradient-hero);
  border: none;
  padding: 32px 24px;
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--white) !important;
  margin-bottom: 12px;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--light-gray);
}

.process-step {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-cta);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--light-gray);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-question .icon {
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 0;
  padding-left: 16px;
}

.faq-item.active .faq-question {
  background: var(--blue-primary);
  color: var(--white);
  border-bottom: 2px solid var(--teal);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
  color: var(--teal);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--off-white);
}

.faq-item.active .faq-answer {
  padding: 20px 24px;
  max-height: 500px;
}

.faq-answer p {
  line-height: 1.8;
  color: var(--text-body);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 80px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(0, 180, 216, 0.06);
  transform: rotate(45deg);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(255, 255, 255, 0.03);
  transform: rotate(30deg);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

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

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.8;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--blue-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.project-card {
  border: 2px solid var(--light-gray);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  margin-bottom: 8px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-tag {
  padding: 4px 12px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-primary);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--light-gray);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.3s ease;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 56, 184, 0.1);
}

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

.contact-info-box {
  background: var(--gradient-hero);
  padding: 40px;
  color: var(--white);
}

.contact-info-box h3 {
  color: var(--white);
  margin-bottom: 24px;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: var(--teal);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

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

.site-footer {
  background: var(--blue-deeper);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

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

.footer-about .logo {
  margin-bottom: 16px;
  background: transparent !important;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-right: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 20px;
}

.footer-bottom a {
  color: var(--teal);
}

/* ============================================
   INTERNAL LINKS BOX
   ============================================ */

.internal-links-box {
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  border-right: 4px solid var(--teal);
  padding: 24px;
  margin: 32px 0;
}

.internal-links-box h4 {
  margin-bottom: 12px;
  color: var(--blue-primary);
}

.internal-links-box .links-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internal-links-box a {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  color: var(--blue-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.internal-links-box a:hover {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
}

.page-404 .error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}

.page-404 h1 {
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================
   BLOG
   ============================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  border: 2px solid var(--light-gray);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  height: 180px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue-primary);
}

.blog-card-content {
  padding: 24px;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.blog-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-stats {
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

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

@media (max-width: 1024px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-top: 3px solid var(--blue-primary);
    gap: 0;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
    text-align: right;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .dropdown-trigger {
    display: block;
    width: 100%;
    text-align: right;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    box-shadow: none;
    min-width: 100%;
    padding-right: 16px;
    background: var(--off-white);
    display: none;
  }

  .nav-dropdown .dropdown-menu a {
    text-align: right;
    padding: 10px 16px;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 1.8rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }
}
