/* ========================================
   Kedal Solutions — Main Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  --navy: #475569;
  --navy-light: #54595f;
  --teal: #0891B2;
  --teal-light: #06B6D4;
  --teal-dark: #0e7490;
  --accent-green: #61CE70;
  --accent-green-light: #7dd98a;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 0.25s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

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

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

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

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

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 700px;
  margin: 0.75rem auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

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

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

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

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

.btn--white:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

.btn--gold {
  background: var(--accent-green);
  color: var(--navy);
  border-color: var(--accent-green);
}

.btn--gold:hover {
  background: var(--accent-green-light);
  border-color: var(--accent-green-light);
}

/* --- Navigation --- */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 76px;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 56px;
  width: auto;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.navbar__cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  border-bottom: none !important;
}

.navbar__cta:hover {
  background: var(--teal-dark) !important;
}

/* Mobile menu toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(145deg, #0e7490 0%, #0891B2 50%, #06B6D4 100%);
  color: var(--white);
  padding: 2.75rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg-pattern.png') repeat;
  opacity: 0.06;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(42, 157, 143, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  max-width: 650px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Service Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.card__icon {
  width: 44px;
  height: 44px;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--teal);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 25%;
}

.comparison-table td:last-child {
  color: var(--teal-dark);
  font-weight: 500;
}

.comparison-table tbody tr:hover {
  background: var(--off-white);
}

/* --- Industries Tags --- */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.5rem;
  justify-content: center;
}

.industries-list li {
  background: rgba(42, 157, 143, 0.1);
  color: var(--teal-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(145deg, #0e7490 0%, #0891B2 50%, #06B6D4 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- About Story --- */
.story-block {
  max-width: 800px;
  margin: 0 auto;
}

.story-block p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* --- Approach Steps --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.approach-step {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.approach-step:hover {
  box-shadow: var(--shadow-md);
}

.approach-step__number {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.approach-step h3 {
  margin-bottom: 0.5rem;
}

.approach-step p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Values List --- */
.values-list {
  list-style: none;
  max-width: 700px;
  margin: 2rem auto 0;
}

.values-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.05rem;
}

.values-list li strong {
  color: var(--navy);
}

/* --- Service Detail --- */
.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail__content--reverse {
  direction: rtl;
}

.service-detail__content--reverse > * {
  direction: ltr;
}

.service-detail__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-detail__tagline {
  font-size: 1.1rem;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.deliverables-list {
  list-style: none;
  margin: 1.5rem 0;
}

.deliverables-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.deliverables-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.service-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.service-meta__item {
  background: var(--off-white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.service-meta__item strong {
  color: var(--navy);
}

/* --- Pillar Flow --- */
.pillar-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pillar-flow__step {
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.pillar-flow__arrow {
  color: var(--gray-300);
  font-size: 1.5rem;
  font-weight: 300;
}

/* --- Case Studies --- */
.case-study {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  transition: box-shadow var(--transition);
}

.case-study:hover {
  box-shadow: var(--shadow-md);
}

.case-study__label {
  display: inline-block;
  background: rgba(42, 157, 143, 0.1);
  color: var(--teal-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.case-study h3 {
  margin-bottom: 1.25rem;
}

.case-study__section {
  margin-bottom: 1.25rem;
}

.case-study__section h4 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.case-study__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.result-stat {
  background: var(--off-white);
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
}

.result-stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  display: block;
}

.result-stat__label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.case-study blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  font-style: italic;
  color: var(--gray-500);
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
}

.case-study--placeholder {
  border-style: dashed;
  opacity: 0.7;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info__text h4 {
  margin-bottom: 0.15rem;
}

.contact-info__text p {
  margin-bottom: 0;
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

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

/* --- What to Expect (Steps) --- */
.expect-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.expect-step {
  text-align: center;
  padding: 1.5rem;
}

.expect-step__number {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.expect-step h4 {
  margin-bottom: 0.5rem;
}

.expect-step p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand {
  margin-bottom: 0.75rem;
}

.footer__brand img {
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .hero { padding: 2rem 0; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 3.5rem 0; }

  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .navbar__toggle {
    display: block;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .pillar-flow__arrow {
    display: none;
  }

  .pillar-flow {
    flex-direction: column;
  }

  .service-detail__content {
    grid-template-columns: 1fr;
  }

  .service-detail__content--reverse {
    direction: ltr;
  }
}
