/*!
  PRIMO INTERNATIONAL DIŞ TİCARET ANONİM ŞİRKETİ — OnePager stylesheet
  Plain CSS3, no build step, no framework.
  ------------------------------------------------------------------
  Font note: "Poppins" is self-hosted from the real Poppins family.
  "Inter" (spec'd body font) could not be downloaded in the build
  environment (no internet egress) — "Carlito" is self-hosted instead
  as a close, professional, open-licensed substitute. See README.md
  for how to swap in real Inter .woff2 files later. Both are served
  locally — no Google Fonts / third-party CDN calls at runtime.
*/

/* ====================== 1. FONT FACES ====================== */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-medium.woff") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-bold.woff") format("woff");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Body Sans";
  src: url("../assets/fonts/carlito-regular.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Body Sans";
  src: url("../assets/fonts/carlito-bold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ====================== 2. DESIGN TOKENS ====================== */
:root {
  /* Brand colors (exact, from logo) */
  --color-teal: #3DAEBC;        /* primary accent — decorative, icons, badges, large surfaces */
  --color-teal-text: #206676;   /* AA-safe darker teal for links/small text on light backgrounds (5.9:1) */
  --color-gold: #D29E38;        /* accent — icons, CTA surfaces (paired with dark text) */
  --color-navy: #0F2D52;        /* hero / Why Primo / footer background, high-contrast text on light bg */
  --color-text: #1D1D1B;        /* body text dark */
  --color-white: #FFFFFF;
  --color-bg-soft: #F4F6F9;     /* section background */
  --color-border: #E2E8F0;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Body Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container-width: 1200px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 45, 82, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 45, 82, 0.12);
  --shadow-lg: 0 16px 48px rgba(15, 45, 82, 0.18);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  --focus-color: var(--color-navy);
}

/* ====================== 3. RESET & BASE ====================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }
svg { display: block; }

/* NOTE: intentionally not setting overflow-x:hidden on html/body — doing so
   forces the UA to compute overflow-y as "auto" on that element per the CSS
   Overflow spec, which turns body/html into their own scroll container and
   breaks position:sticky on the header. Each section that could overflow
   (e.g. .hero) contains its own decorative graphics with overflow:hidden
   instead, so a global rule here isn't needed. */
html, body { width: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { max-width: 68ch; }
p.lead { font-size: 1.15rem; line-height: 1.7; }

/* ====================== 4. ACCESSIBILITY HELPERS ====================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-dark, .header, footer.site-footer { --focus-color: #FFFFFF; }

/* [data-lang-content] language visibility is controlled by js/main.js.
   No-JS fallback: show English only, hide DE/TR, so the page is never
   a jumbled tri-lingual wall of text if JS fails to load. */
[data-lang-content] { display: none; }
[data-lang-content="en"] { display: block; }
[data-lang-content="en"].inline { display: inline; }
.js-ready [data-lang-content] { display: none; }
.js-ready [data-lang-content].active { display: block; }
.js-ready [data-lang-content].active.inline { display: inline; }
[data-lang-content][hidden] { display: none !important; }

/* ====================== 5. LAYOUT HELPERS ====================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section { padding-block: var(--space-6); }
section[id], main[id] { scroll-margin-top: 84px; }

.section-header {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}
.section-header.centered { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-text);
  background: rgba(61, 174, 188, 0.12);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.section-dark .kicker { color: var(--color-gold); background: rgba(210, 158, 56, 0.16); }

.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

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

/* ====================== 6. BUTTONS & LINKS ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #e0ad4a; box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-navy);
}
.section-dark .btn-outline { color: var(--color-white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  color: var(--color-teal-text);
  font-weight: 600;
  border-bottom: 2px solid rgba(32, 102, 118, 0.35);
  transition: border-color var(--transition-fast);
}
.text-link:hover { border-color: var(--color-teal-text); }

/* ====================== 7. HEADER / NAV ====================== */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.9rem;
}

.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-link img, .logo-link svg { width: clamp(140px, 16vw, 200px); height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.header.nav-open .nav-toggle__bars { background: transparent; }
.header.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.header.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: 0 0 0 30%;
  top: 0;
  background: var(--color-white);
  padding: 6rem var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.header.nav-open .primary-nav { transform: translateX(0); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
}
.nav-list a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-navy);
}
.nav-list a.is-active,
.nav-list a:hover { color: var(--color-teal-text); }

.lang-switch {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--color-navy);
  color: var(--color-white);
}

.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: none;
    transform: none;
    background: transparent;
    overflow: visible;
    flex: 1;
    justify-content: flex-end;
  }
  .nav-list { flex-direction: row; gap: var(--space-4); }
  .nav-list a { border-bottom: none; padding: 0.3rem 0; font-size: 0.98rem; position: relative; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--color-teal);
    transition: right var(--transition-fast);
  }
  .nav-list a:hover::after,
  .nav-list a.is-active::after { right: 0; }
  .lang-switch { align-self: auto; }
  .header-cta { display: inline-flex; }
}

/* ====================== 8. HERO ====================== */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
  padding-block: var(--space-7) var(--space-6);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__bg svg { width: 100%; height: 100%; }
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.hero h1 { color: var(--color-white); margin-bottom: var(--space-3); }
.hero .lead { color: rgba(255, 255, 255, 0.88); margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ====================== 9. ABOUT ====================== */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.about-copy p { margin-bottom: var(--space-2); color: var(--color-text); }

.feature-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-art__caption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(15, 45, 82, 0.55);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
  .about-grid.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .about-grid.reverse .feature-art { order: 2; }
}

/* ====================== 10. SERVICES ====================== */
.services-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.icon-badge img { width: 34px; height: 34px; }
.section-dark .icon-badge { background: rgba(255, 255, 255, 0.1); }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; color: #4B5768; margin-bottom: var(--space-2); }
.service-card ul { margin-top: auto; display: flex; flex-direction: column; gap: 0.4rem; }
.service-card li {
  font-size: 0.88rem;
  color: var(--color-text);
  padding-left: 1.3rem;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ====================== 11. WHY PRIMO ====================== */
.why-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item { text-align: left; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.95rem; }

/* ====================== 12. VISION ====================== */
.vision-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 768px) { .vision-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ====================== 13. CONTACT ====================== */
.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); display: flex; align-items: center; gap: 0.6rem; }
.contact-card h3 img { width: 28px; height: 28px; }
.contact-card p, .contact-card address { font-style: normal; font-size: 0.95rem; margin-bottom: 0.4rem; }
.contact-card a { color: var(--color-teal-text); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  color: #8a6d1f;
  background: rgba(210, 158, 56, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-top: 0.3rem;
}

.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--space-3); }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(61, 174, 188, 0.18);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-required { color: #B3261E; }

.form-status {
  margin-top: var(--space-2);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(61, 174, 188, 0.15); color: #145560; display: block; }
.form-status.is-error { background: rgba(179, 38, 30, 0.1); color: #8c1f18; display: block; }

.form-fallback {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

/* honeypot field — hidden from sighted + AT users, catches basic bots */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ====================== 14. FOOTER ====================== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-5) var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: var(--space-3);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-logo img, .footer-logo svg { width: 150px; margin-bottom: var(--space-2); filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--color-white); margin-bottom: var(--space-2); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a:hover { color: var(--color-white); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.85rem;
}

.social-links { display: flex; gap: 0.7rem; margin-top: var(--space-2); }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: rgba(255, 255, 255, 0.12); }
.social-links svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

/* ====================== 15. LEGAL PAGES ====================== */
.legal-page { padding-block: var(--space-6); }
.legal-page .container { max-width: 860px; }
.legal-page h1 { margin-bottom: var(--space-2); }
.legal-page h2 { font-size: 1.3rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-page p, .legal-page li { max-width: none; margin-bottom: var(--space-2); color: #333; }
.legal-page ul { list-style: disc; padding-left: 1.4rem; }
.legal-page dl { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 0.5rem 1rem; }
.legal-page dt { font-weight: 600; color: var(--color-navy); }
.legal-page dd { margin: 0; }

.draft-banner {
  background: #FFF4E0;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
}
.draft-banner strong { display: block; margin-bottom: 0.3rem; color: #8a6d1f; }

/* ====================== 16. MISC ====================== */
hr.divider { border: none; border-top: 1px solid var(--color-border); margin-block: var(--space-5); }

@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}
