/*
Theme Name: Courtsas
Theme URI: https://courtsas.pl
Author: Courtsas
Author URI: https://courtsas.pl
Description: Oficjalny motyw strony Sądu Arbitrażowego Służb COURTSAS – Bartoszyce.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: courtsas
Tags: law, arbitration, one-page, professional, minimal
*/


  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #0f1a2e;
    --navy-mid: #1a2d4a;
    --navy-light: #243f66;
    --gold: #b8923a;
    --gold-light: #d4aa5a;
    --gold-pale: #f5edd8;
    --cream: #faf8f4;
    --off-white: #f0ece4;
    --text-dark: #0f1a2e;
    --text-mid: #3d5070;
    --text-muted: #7a8ba6;
    --border: rgba(15,26,46,0.12);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', system-ui, sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4rem;
    height: 72px;
    background: rgba(15,26,46,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184,146,58,0.2);
  }

  .nav-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
  }

  .nav-logo span {
    color: var(--gold-light);
  }

  .nav-links {
    display: flex; align-items: center; gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.2s;
  }

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

  .nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy) !important;
    background: var(--gold-light);
    padding: 0.55rem 1.4rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s !important;
  }

  .nav-cta:hover { background: var(--gold) !important; color: #fff !important; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 42%;
    background: linear-gradient(135deg, transparent 0%, rgba(184,146,58,0.06) 100%);
    border-left: 1px solid rgba(184,146,58,0.12);
  }

  .hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 60%);
  }

  .hero-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 1rem;
  }

  .hero-label::before {
    content: '';
    display: block;
    width: 40px; height: 1px;
    background: var(--gold);
  }

  .hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 300;
    line-height: 1.12;
    color: #fff;
    max-width: 700px;
    margin-bottom: 2rem;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--gold-light);
  }

  .hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 3rem;
  }

  .hero-actions {
    display: flex; align-items: center; gap: 1.5rem;
  }

  .btn-primary {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold-light);
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
  }

  .btn-primary:hover { background: var(--gold); }

  .btn-outline {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }

  .btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

  .hero-stats {
    position: absolute; bottom: 4rem; right: 4rem;
    display: flex; gap: 3rem;
  }

  .stat { text-align: right; }

  .stat-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
  }

  .stat-label {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
  }

  /* ── SECTION SHARED ── */
  section { padding: 7rem 4rem; }

  .section-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.8rem;
  }

  .section-label::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--gold);
  }

  h2.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
  }

  h2.section-title em { font-style: italic; color: var(--navy-light); }

  .section-intro {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.85;
    font-weight: 300;
  }

  /* ── SERVICES ── */
  .services { background: var(--cream); }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 4rem;
    border: 1px solid var(--border);
  }

  .service-card {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s;
    position: relative;
  }

  .service-card:hover { background: #fff; }

  .service-card:nth-child(3n) { border-right: none; }

  .service-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(184,146,58,0.18);
    line-height: 1;
    margin-bottom: 1.5rem;
  }

  .service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
  }

  .service-arrow {
    position: absolute; bottom: 2rem; right: 2.5rem;
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
  }

  .service-card:hover .service-arrow { opacity: 1; transform: translateX(4px); }

  /* ── WHY ── */
  .why { background: var(--off-white); }

  .why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
  }

  .why-text p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-weight: 300;
  }

  .why-pillars { display: flex; flex-direction: column; gap: 0; }

  .pillar {
    display: flex; align-items: flex-start; gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
  }

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

  .pillar-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--navy);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
  }

  .pillar-icon svg { width: 18px; height: 18px; fill: var(--gold-light); }

  .pillar h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
  }

  .pillar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── PROCESS ── */
  .process { background: var(--navy); overflow: hidden; }

  .process .section-title { color: #fff; }
  .process .section-intro { color: rgba(255,255,255,0.5); }

  .steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 4rem;
    position: relative;
  }

  .steps::before {
    content: '';
    position: absolute; top: 28px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
  }

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

  .step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(184,146,58,0.4);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--gold-light);
    background: rgba(184,146,58,0.06);
  }

  .step h4 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.6rem;
  }

  .step p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── ARBITERS ── */
  .arbiters { background: var(--cream); }

  .arbiters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .arbiter-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 2px;
    transition: border-color 0.2s;
  }

  .arbiter-card:hover { border-color: var(--gold); }

  .arbiter-initials {
    width: 52px; height: 52px;
    background: var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
  }

  .arbiter-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
  }

  .arbiter-card .role {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
  }

  .arbiter-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── CONTACT ── */
  .contact { background: var(--off-white); }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    margin-top: 4rem;
    align-items: start;
  }

  .contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
  }

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

  .contact-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--navy);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
  }

  .contact-icon svg { width: 15px; height: 15px; fill: var(--gold-light); }

  .contact-item-text label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
  }

  .contact-item-text span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 300;
  }

  /* FORM */
  .contact-form { background: #fff; border: 1px solid var(--border); padding: 2.5rem; }

  .form-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
  }

  .form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
  }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  .form-group { margin-bottom: 1.2rem; }

  .form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--navy-light);
    background: #fff;
  }

  .form-group textarea { min-height: 110px; resize: vertical; }

  .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ba6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    cursor: pointer;
  }

  .form-consent {
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .form-consent input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--navy);
    cursor: pointer;
  }

  .form-consent label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: pointer;
  }

  .form-submit {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold-light);
    border: none;
    padding: 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .form-submit:hover { background: var(--gold); }

  .form-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 300;
  }

  /* success state */
  .form-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
  }

  .form-success.show { display: block; }
  .contact-form form.hide { display: none; }

  .success-icon {
    width: 56px; height: 56px;
    background: var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
  }

  .success-icon svg { width: 24px; height: 24px; fill: var(--gold-light); }

  .form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
  }

  .form-success p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--navy);
    padding: 3.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(184,146,58,0.15);
  }

  .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
  }

  .footer-logo span { color: var(--gold-light); }

  .footer-tagline {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
  }

  .footer-links {
    display: flex; gap: 2rem; list-style: none;
  }

  .footer-links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
  }

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

  .footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    font-weight: 300;
  }

  /* ── DIVIDER ── */
  .gold-rule {
    height: 1px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 80%);
    margin: 0;
  }

  /* ── ANIMATIONS ── */
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-up.visible { opacity: 1; transform: none; }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    nav { padding: 0 2rem; }
    section { padding: 5rem 2rem; }
    .hero { padding: 0 2rem; padding-top: 100px; }
    .hero-stats { right: 2rem; bottom: 2.5rem; gap: 2rem; }
    .stat-num { font-size: 1.6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
    .service-card:nth-child(2n) { border-right: none; }
    .why-layout { gap: 3rem; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps::before { display: none; }
    .step { margin-bottom: 2rem; }
    .arbiters-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { gap: 3rem; }
    footer { padding: 2.5rem 2rem; gap: 1.5rem; flex-wrap: wrap; }
  }

  @media (max-width: 768px) {
    nav { padding: 0 1.25rem; height: 64px; }
    .nav-logo { font-size: 1.1rem; }

    section { padding: 4rem 1.25rem; }

    .hero { padding: 100px 1.25rem 3rem; min-height: auto; padding-bottom: 220px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 0.92rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 0.85rem 1.5rem; }
    .hero-stats {
      position: relative; bottom: auto; right: auto;
      flex-direction: row; flex-wrap: wrap;
      gap: 1.5rem; margin-top: 2.5rem;
    }
    .stat { text-align: left; }
    .hero::before { display: none; }

    .services-grid { grid-template-columns: 1fr; border: none; }
    .service-card {
      border: 1px solid var(--border) !important;
      margin-bottom: 0.75rem;
      border-radius: 2px;
    }

    .why-layout { grid-template-columns: 1fr; gap: 2.5rem; }

    .steps { grid-template-columns: 1fr 1fr; gap: 0; }
    .step { padding: 1.5rem 1rem; border-bottom: 1px solid rgba(184,146,58,0.1); }
    .steps::before { display: none; }

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

    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }

    footer { flex-direction: column; gap: 1.5rem; padding: 2rem 1.25rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  }

  @media (max-width: 480px) {
    .hero h1 { font-size: 2rem; line-height: 1.18; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .steps { grid-template-columns: 1fr; }
    h2.section-title { font-size: 1.75rem; }
    .stat-num { font-size: 1.8rem; }
  }
