/* =========================================================
   KAFTA LIMITED — style.css
   Design language: warm, natural, photo-led trade-business site.
   Cream/paper ground, deep navy for contrast bands, amber
   accent for calls-to-action. Rounded cards, soft shadows.
   ========================================================= */

:root {
  /* ---- color tokens ---- */
  --ink:        #1B1F27;
  --ink-soft:   #565F6E;
  --ink-faint:  #8891A0;
  --paper:      #FFFFFF;
  --cream:      #FAF7F1;
  --cream-2:    #F1EAD9;
  --line:       #E7E0D0;
  --line-soft:  #EFE8D8;

  --navy:       #16304F;
  --navy-deep:  #0F2038;
  --navy-soft:  rgba(255,255,255,0.09);
  --navy-line:  rgba(255,255,255,0.14);

  --amber:      #EF9B2E;
  --amber-dark: #C97A16;
  --amber-soft: #FCEACB;

  --success:    #2F9E5B;

  /* ---- type tokens ---- */
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  /* ---- layout tokens ---- */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -24px rgba(22, 32, 50, 0.22);
  --shadow-sm: 0 10px 24px -12px rgba(22, 32, 50, 0.18);
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  display: inline-block;
}
.eyebrow-light { color: var(--amber); }

/* ---------------------------------------------------------
   Skip link (accessibility)
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy-deep);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #FFAE4A; transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-dark); }
.btn-ghost.btn-on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--paper);
}
.btn-ghost.btn-on-dark:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 10px 18px; font-size: 0.84rem; }

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(22,32,50,0.35);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; fill: var(--amber); stroke: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; stroke: var(--amber-dark); fill: none; stroke-width: 2; }
.header-phone:hover { color: var(--amber-dark); }

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  width: 42px; height: 42px;
  cursor: pointer;
  flex: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding-block: clamp(40px, 7vw, 76px) clamp(48px, 8vw, 84px);
}
.hero-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-copy p.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-top: 20px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 500;
}

.hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   Section shared
   --------------------------------------------------------- */
.section {
  padding-block: clamp(56px, 8vw, 100px);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-top: 12px;
  color: var(--ink);
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 54ch;
  font-size: 1.02rem;
}
.section-head-light h2 { color: var(--paper); }
.section-alt { background: var(--cream-2); }

/* ---------------------------------------------------------
   Services grid
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   Process
   --------------------------------------------------------- */
.process {
  background: var(--navy);
  padding-block: clamp(56px, 8vw, 96px);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.process-steps h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
  margin-bottom: 8px;
}
.process-steps p {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   About section
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-grid h2 { margin-top: 12px; }
.about-copy {
  margin-top: 18px;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-facts {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-facts strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.about-facts span {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Why KAFTA
   --------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-icon svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.8; }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.cta-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,32,56,0.92) 0%, rgba(15,32,56,0.78) 55%, rgba(15,32,56,0.55) 100%);
  z-index: -1;
}
.cta-banner-content {
  max-width: 640px;
}
.cta-banner-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--paper);
}
.cta-banner-content p {
  color: rgba(255,255,255,0.78);
  margin-top: 14px;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amber-dark);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 20px;
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------------------------------------------------------
   Contact section
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 32px);
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
}
.contact-list svg {
  width: 20px; height: 20px;
  flex: none;
  stroke: var(--amber-dark);
  fill: none;
  stroke-width: 1.8;
  margin-top: 1px;
}
.contact-list a:hover { color: var(--amber-dark); }

.form-grid { display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus { border-color: var(--amber); outline: none; }
.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: -4px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  padding-block: 52px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand .brand-text { color: var(--paper); }
.footer-meta {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.56);
  line-height: 1.9;
  max-width: 42ch;
}
.footer-meta a { color: rgba(255,255,255,0.8); font-weight: 600; }
.footer-meta a:hover { color: var(--amber); }
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
}
.footer-nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--amber); }

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

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; max-height: 360px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--gutter) 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .btn-sm { display: none; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-facts { flex-wrap: wrap; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
