@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@500;700&family=Space+Grotesk:wght@500&display=swap');

/* Base (light theme, original look preserved) */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #111827;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: #4f46e5;
}

.hidden { display: none; }

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111827;
  margin: 0;
}

.logo-text .highlight { color: #facc15; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: #111827;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-list li a:hover { background: #f3f4f6; }

.nav-list .nav-cta {
  background: #4f46e5;
  color: #fff !important;
}

.nav-list .nav-cta:hover { background: #4338ca; }

/* Hero */
.hero {
  background-color: #f9fafb;
  text-align: center;
  padding: 140px 20px 120px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.2rem;
  color: #374151;
  max-width: 720px;
  margin: 10px auto 26px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.cta-button {
  background-color: #4f46e5;
  color: white;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  text-transform: none;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
}

.cta-button:hover { background-color: #4338ca; transform: translateY(-2px); }
.cta-button:active { transform: translateY(0); }
.cta-button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.35); }

.cta-button.outline {
  background: transparent;
  color: #4f46e5;
  border-color: #4f46e5;
}

.cta-button.outline:hover { background: #4f46e5; color: #fff; }

/* Services */
.services {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

/* Carousel wrapper */
.services-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 14px;
}

/* The horizontally scrolling track (desktop) */
.services-track {
  display: flex;
  gap: 20px;
  padding: 8px 4px;
  animation: servicesScroll 28s linear infinite;
  will-change: transform;
}

.services-carousel:hover .services-track { animation-play-state: paused; }

@keyframes servicesScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service Card */
.service-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  min-width: 320px;       /* width for carousel card */
  max-width: 360px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c7cbe0;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.learn-more {
  background-color: #4f46e5;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.learn-more:hover { background-color: #3730a3; transform: translateY(-1px); }
.learn-more:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.35); }

/* Mobile fallback grid (only visible on small screens) */
.services-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

/* Estimator */
.calc {
  padding: 80px 20px;
  background-color: #f9fafb;
  text-align: center;
}

.calc h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.calc-form {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.calc-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.calc-field {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 600;
  color: #111827;
}

.calc-field input, .calc-field select {
  padding: 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}

.calc-btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.calc-note {
  margin: 10px 6px 0;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: left;
}

.calc-result, .calc-tip {
  max-width: 980px;
  margin: 14px auto 0;
  text-align: left;
  border-radius: 12px;
  padding: 14px 16px;
}

.calc-result {
  border: 1px dashed #4f46e5;
  background: #eef2ff;
  color: #111827;
}

.calc-tip {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
}

/* Case Studies */
.case-studies {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

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

.case-card {
  background: #f9fafb;
  padding: 26px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* Inline Details Panels */
.aws-details, #azure-details, #hybrid-details, #gcp-details {
  background: #f1f5f9;
  padding: 50px 20px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.aws-details ul, #azure-details ul, #hybrid-details ul, #gcp-details ul {
  list-style: disc inside;
  margin-top: 16px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(17, 24, 39, 0.6);
  z-index: 2000;
  overflow-y: auto;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  max-width: 800px;
  width: 92%;
  position: relative;
  animation: fadeIn 0.25s ease-in-out;
}

.modal-content h2 { font-size: 1.8rem; margin-top: 0; }

.modal-content ul { list-style: disc; margin: 14px 0; padding-left: 20px; }

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
}

.modal-close:hover { color: #111827; background: #f9fafb; }

/* Contact */
.contact {
  padding: 80px 20px;
  background-color: #f9fafb;
  text-align: center;
}

.contact form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.contact input, .contact textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.contact textarea { grid-column: 1/-1; resize: vertical; }

.contact button {
  grid-column: 1/-1;
  justify-self: center;
  background-color: #4f46e5;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact button:hover { background-color: #4338ca; transform: translateY(-1px); }

/* Footer */
.footer {
  background-color: #ffffff;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  padding: 22px 20px;
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility focus style for cards */
.service-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.35);
}

/* Responsive */
@media (max-width: 960px) {
  .hero h2 { font-size: 2.4rem; }
  .calc-row { grid-template-columns: 1fr 1fr; }
  .calc-btn { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Disable carousel on small screens and use grid fallback */
  .services-carousel { display: none; }
  .services-grid { display: grid; }

  .hero { padding: 120px 20px 90px; }
  .hero h2 { font-size: 2.1rem; }

  .calc-form { padding: 14px; }
  .calc-row { grid-template-columns: 1fr; }
  .calc-note { text-align: center; }

  .contact form { grid-template-columns: 1fr; }
}
/* --- Estimator alignment fix --- */
.calc-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;            /* align all controls on the same baseline */
}

.calc-form .calc-row > * { 
  min-width: 0;                   /* avoid overflow pushing items off baseline */
}

.calc-field {
  display: flex;                  
  flex-direction: column;
  gap: 8px;
  align-self: stretch;            /* labels grow evenly so inputs line up */
}

.calc-field span {
  line-height: 1.1;
  min-height: 20px;               /* consistent label height */
}

/* Exact, equal control height */
.calc-field input,
.calc-field select,
.calc-btn {
  height: 48px;
  padding: 0 12px;                /* vertical padding 0 so height is precise */
  box-sizing: border-box;
}

/* Normalize selects across browsers (esp. Safari) */
.calc-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Keep the button lined up with inputs */
.calc-btn {
  align-self: end;                /* sticks to bottom edge of the row */
  padding: 0 22px;                /* horizontal only; height set above */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional: slightly larger desktop spacing */
@media (min-width: 961px) {
  .calc-row { gap: 16px; }
}

/* Mobile keeps your existing 1-col behavior */
@media (max-width: 960px) {
  .calc-row { grid-template-columns: 1fr 1fr; }
  .calc-btn { grid-column: 1 / -1; }
}

/* Chrome/Edge number input normalization */
.calc-field input[type="number"]::-webkit-outer-spin-button,
.calc-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* .calc-field input[type="number"] { -moz-appearance: textfield; } */

