/*
 * ProgArt s.r.o. - modernised stylesheet.
 * Drop-in replacement for /uploads/styles.css.
 *
 * Keeps every existing markup hook (#title, #logo, #services, .service-item,
 * #office, .office-info, .office-item, #footer) so no page content in the
 * database has to change. Bootstrap 5 and Font Awesome stay loaded.
 *
 * Goals: responsive on phones, modern spacing and typography, accessible
 * colour contrast, subtle motion.
 */

/* ---------- Design tokens ---------- */
:root {
  --brand: #d52349;
  --brand-dark: #b01c3c;
  --brand-wash: #fdeef1;
  --ink: #1a1c20;
  --ink-soft: #4a4f57;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --dark: #1c1f24;
  --dark-2: #262a30;
  --on-dark: #e7e9ec;
  --on-dark-soft: #a9afb8;
  --border: #e5e7eb;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 18, 22, .08);
  --shadow-md: 0 10px 30px rgba(16, 18, 22, .10);
  --maxw: 1140px;

  /* Fluid section padding. */
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

/* ---------- Wordmark header (#title) ---------- */
#title {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

#title h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  display: inline-flex;
}

#title span {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#title span:nth-child(1) {
  background: var(--brand);
  border-radius: 12px 0 0 12px;
  color: #fff;
  padding: 0.1em 0.15em 0.1em 0.3em;
}

#title span:nth-child(2) {
  background: #eef1f4;
  color: var(--ink);
  border-radius: 0 12px 12px 0;
  padding: 0.1em 0.3em 0.1em 0.15em;
}

/* ---------- Hero (#logo) ---------- */
#logo {
  position: relative;
  padding: clamp(4rem, 14vw, 9rem) 1rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 22, 28, .55), rgba(20, 22, 28, .75)),
    #12141a url('/uploads/logo.jpg') no-repeat center / cover;
}

#logo header {
  display: inline-block;
  max-width: min(760px, 92vw);
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(18, 20, 26, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#logo h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 700;
}

#logo p {
  margin: 0;
  color: #ffd7df;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* ---------- Services (#services) ---------- */
#services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) clamp(1rem, 4vw, 2rem);
  text-align: center;
}

#services > header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

#services > header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

#services > header h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.75rem auto 0;
  background: var(--brand);
  border-radius: 2px;
}

.service-item-wrapper { margin-bottom: 1.5rem; }

.service-item {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-item h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.service-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Icons: were a fixed 8em, which overflowed on phones. */
.service-item span,
.service-item .icon {
  font-size: clamp(2.75rem, 7vw, 3.75rem);
  line-height: 1;
}

.icon {
  color: var(--brand);
  margin: 0;
}

/* ---------- Office / contact (#office) ---------- */
#office {
  background: var(--dark);
  color: var(--on-dark-soft);
  text-align: center;
}

#office .row { align-items: stretch; }

#office a,
#office a:link { color: var(--on-dark); text-decoration: none; }
#office a:hover { color: #fff; text-decoration: underline; }

.office-map { padding: 0; }

.office-map iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  height: 100%;
  border: 0;
  filter: grayscale(.2);
}

.office-info {
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.office-info h6 {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.office-info > p { color: var(--on-dark-soft); }

.office-info h5 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.office-info .office-item p { color: var(--on-dark-soft); margin: 0; }

.office-item {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  text-align: left;
}

.office-item div:nth-child(1) { padding: 0; }
.office-item div:nth-child(2) { padding-left: 1.25rem; }

/* Icon chips: replace the thin bordered box with a soft branded chip. */
.office-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  padding: 0;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
#footer {
  background: #0f1114;
  color: #8b929c;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Generic form fields (contact component) ---------- */
input, textarea, select {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-wash);
}

button, .btn, input[type="submit"] {
  background: var(--brand);
  border: 0;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

button:hover, .btn:hover, input[type="submit"]:hover { background: var(--brand-dark); }

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
  .office-info { text-align: left; }
  .office-map iframe { min-height: 260px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
