/* ============================================================
   S M Arifuzzaman — Paris IT Services
   Shared Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #FAFAF8;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5650;
  --color-accent: #B8A88A;
  --color-accent-dark: #9E8E70;
  --color-accent-light: #D4C9B5;
  --color-card: #F2F0ED;
  --color-border: #E8E5E0;
  --color-white: #FFFFFF;
  --color-overlay: rgba(26, 26, 26, 0.7);

  /* Typography */
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Sizing */
  --container-max: 1200px;
  --container-narrow: 900px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-nav: 0 1px 0 var(--color-border);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease-out);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-text);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

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

/* --- Section Headers --- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.section-header {
  margin-bottom: var(--space-xl);
}

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

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 168, 138, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background-color: #25D366;
  color: var(--color-white);
}

.btn--whatsapp:hover {
  background-color: #1EB954;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--color-accent-dark);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--color-border);
}

.nav-lang a {
  color: var(--color-text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.nav-lang a.active {
  color: var(--color-text);
  background-color: var(--color-card);
  font-weight: 600;
}

.nav-lang a:hover {
  color: var(--color-text);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-sm);
}

.hero-sublabel {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

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

.hero-text p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--color-accent-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-card);
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-md);
}

.service-card-body h3 {
  margin-bottom: 0.6rem;
}

.service-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- Brands --- */
.brands {
  padding: var(--space-xl) 0;
  text-align: center;
}

.brands-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.brands-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.brands-list span {
  color: var(--color-accent);
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Connector line between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1rem;
  width: calc(var(--space-md));
  height: 2px;
  background: var(--color-accent-light);
  transform: translateY(50%);
}

/* --- Why Choose Me --- */
.why-section {
  background-color: var(--color-card);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-2xl);
  align-items: start;
}

.why-image {
  position: sticky;
  top: 100px;
}

.why-image img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.why-grid {
  display: grid;
  gap: var(--space-lg);
}

.why-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.pricing-table thead th {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem var(--space-md);
  text-align: left;
}

.pricing-table tbody tr {
  transition: background var(--transition);
}

.pricing-table tbody tr:hover {
  background: var(--color-card);
}

.pricing-table td {
  padding: 1rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  font-weight: 600;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  line-height: 1.65;
}

/* --- Case Studies --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.case-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.case-card-body {
  padding: var(--space-md);
}

.case-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.case-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- FAQ --- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-accent-dark);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Contact CTA --- */
.contact-cta {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
}

.contact-cta h2 {
  color: var(--color-white);
}

.contact-cta .cta-reassurance {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  margin-bottom: var(--space-xs);
}

.contact-cta .btn-group {
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 360px;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Mobile Sticky CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem var(--space-sm);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.mobile-cta-inner {
  display: flex;
  gap: 0.5rem;
}

.mobile-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

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

/* Tablets */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .why-image {
    position: static;
  }

  .why-image img {
    max-width: 280px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }

  .nav-lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .hero-image::after {
    display: none;
  }

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

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .step-card {
    display: flex;
    text-align: left;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    align-items: flex-start;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing table scroll */
  .pricing-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table {
    min-width: 480px;
  }

  /* Buttons stacking */
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile sticky CTA */
  .mobile-cta {
    display: block;
  }

  /* Add bottom padding for sticky CTA */
  .site-footer {
    padding-bottom: calc(var(--space-lg) + 70px);
  }

  /* Trust bar */
  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

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

/* Small phones */
@media (max-width: 380px) {
  :root {
    --space-md: 1.2rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }
}

/* Accessibility: focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
