/* ==========================================================================
   K&Y Transport — Unified Stylesheet
   ========================================================================== */

/* --- Google Fonts loaded via <link> in HTML head --- */

/* --- Design Tokens --- */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --light: #f8fafc;
  --dark: #020617;
  --primary: #0b78bb;
  --primary-hover: #08679f;
  --white: #ffffff;
  --container: 1240px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
  --shadow-sm: 0 14px 34px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-icon: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Page Load Transition --- */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout --- */
.container {
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: #475569;
  font-size: 0.98rem;
  font-weight: 700;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.active,
.top-phone:hover {
  color: var(--primary);
}

.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

/* --- Buttons & Interactive Elements --- */
.lang-link,
.btn,
.btn-outline,
.top-whatsapp {
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 800;
  cursor: pointer;
}

.lang-link {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
}

.lang-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.top-phone {
  font-size: 0.95rem;
  font-weight: 800;
  color: #475569;
}

.top-whatsapp,
.btn {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.top-whatsapp {
  padding: 18px 28px;
  font-size: 0.95rem;
}

.top-whatsapp:hover,
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn,
.btn-outline {
  padding: 20px 30px;
  font-size: 0.98rem;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0 14px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  display: grid;
  gap: 4px;
}

.mobile-menu-links a {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  padding: 10px 4px;
  transition: color 0.15s ease;
}

.mobile-menu-links a:hover {
  color: var(--primary);
}

.mobile-menu-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mobile-phone {
  font-size: 1rem;
  font-weight: 800;
  color: #475569;
  padding: 2px 4px;
}

.mobile-inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-inline-actions .top-whatsapp {
  padding: 13px 18px;
  flex: 1 1 auto;
  min-width: 0;
}

/* --- Hero (Homepage) --- */
.hero {
  background:
    radial-gradient(circle at right center, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(120deg, #010b2e 0%, #05143e 34%, #0d1b4b 60%, #18375a 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
  padding: 64px 0 48px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-circle {
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.05);
  background: transparent;
  flex: 0 0 auto;
  animation: heroFadeIn 0.8s ease-out both;
}

.hero-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eyebrow {
  margin: 0 0 16px;
  color: #38bdf8;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #dbe7f7;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 20px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.feature-title {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.feature-text {
  margin: 6px 0 0;
  color: #d5def0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  background:
    radial-gradient(circle at right center, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(120deg, #010b2e 0%, #05143e 34%, #0d1b4b 60%, #18375a 100%);
  color: var(--white);
  padding: 72px 0 60px;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
}

.page-hero .lead {
  max-width: 820px;
  margin-top: 22px;
}

.page-hero .hero-actions {
  margin-top: 30px;
}

.page-hero .btn,
.page-hero .btn-outline {
  padding: 18px 28px;
}

/* --- Sections --- */
.section {
  padding: 88px 0;
}

.light-section {
  background: var(--light);
}

.services-section {
  background: var(--light);
}

.section-tag {
  margin: 0;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-heading {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-intro {
  margin: 18px 0 0;
}

.section-intro,
.about-copy p,
.service-card p,
.info-box p,
.copy p,
.card p,
.faq-answer,
.footer-copy,
.contact-copy p,
.contact-list li,
.panel p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

/* --- Grid Layouts --- */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.two-col,
.contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.two-col {
  grid-template-columns: 1.05fr 0.95fr;
}

.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.info-grid,
.cards-grid {
  display: grid;
  gap: 22px;
}

.info-grid {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

/* --- Cards & Boxes --- */
.info-box,
.service-card,
.card,
.panel {
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.info-box {
  background: #f1f5f9;
}

.info-title {
  margin: 0;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.info-box.dark {
  background: var(--primary);
  color: var(--white);
}

.info-box.dark .info-title,
.info-box.dark p {
  color: #eff6ff;
}

.info-box.dark .small-tag {
  color: #dbe7f7;
}

.info-box.full {
  grid-column: 1 / -1;
  background: #0f172a;
}

.info-box.full .info-title,
.info-box.full p {
  color: #d9e4f5;
}

.small-tag {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.card h3,
.info-box h3,
.panel h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon);
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.service-card h3 {
  margin: 18px 0 0;
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* --- Contact --- */
.contact-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.contact-list li {
  margin-bottom: 10px;
}

/* --- FAQ --- */
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.faq-item {
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.faq-item summary {
  padding: 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s ease;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item .faq-answer {
  padding: 0 24px 24px;
  margin: 0;
}

/* Legacy FAQ support (non-details pattern) */
.faq-question {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

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

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.15s ease;
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body {
    opacity: 1;
    transition: none;
  }

  .hero-logo-circle {
    animation: none;
  }

  .card:hover,
  .service-card:hover {
    transform: none;
  }

  .btn:hover,
  .btn-outline:hover,
  .top-whatsapp:hover {
    transform: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Tablet (≤1100px) --- */
@media (max-width: 1100px) {
  .hero-main,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-circle {
    width: min(100%, 360px);
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Medium (≤980px) --- */
@media (max-width: 980px) {
  .two-col,
  .contact-grid,
  .cards-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 16px;
  }
}

/* --- Mobile (≤760px) --- */
@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
  }

  .nav,
  .header-actions-desktop {
    display: none;
  }

  .header-actions-mobile {
    display: inline-flex;
    justify-self: end;
  }

  .header-actions-mobile .lang-link,
  .header-actions-mobile .mobile-menu-btn {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .services-grid,
  .info-grid,
  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-logo-circle {
    width: min(100%, 290px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 24px;
  }

  .footer-brand {
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .footer-logo {
    width: 44px;
    height: 44px;
  }

  .footer-copy {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .footer-links a {
    font-size: 0.98rem;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 48px 0 40px;
  }
}
