/* Obuka DVD – klasičan web sajt */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --navy: #1e3a5f;
  --cream: #faf7f2;
  --border: #d4cfc4;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --max-width: 1100px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--red);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header top bar */
.header-top {
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
}

.header-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: #fff;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.header-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0;
  padding: 4px;
  border-radius: 0;
}

.header-top-inner {
  display: contents;
}

.header-tagline {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

.header-phones {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  padding: 0.5rem 1.25rem 0.5rem 0;
  justify-self: end;
}

.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone:hover {
  color: #fcd34d;
}

/* Hero – glavna slika dvd.webp */
.hero {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: var(--red-dark);
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 58, 95, 0.85) 0%,
    rgba(30, 58, 95, 0.55) 45%,
    rgba(30, 58, 95, 0.2) 100%
  );
  display: flex;
  align-items: center;
}

.hero-content {
  color: #fff;
  padding: 2rem 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .btn-primary {
  margin-top: 0.5rem;
}

/* Navigation */
.main-nav {
  background: var(--red);
  border-bottom: 4px solid var(--red-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-list a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.nav-list li:last-child a {
  border-right: none;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--red-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.col-image img {
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-top: 4px solid var(--red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Gallery – mozaik: sala levo, portret desno, tri slike dole */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 165px 165px 165px;
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery-item img {
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  flex-shrink: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.gallery-wide {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-portrait {
  grid-column: 3;
  grid-row: 1 / 3;
}

.gallery-portrait img {
  object-position: center 15%;
}

.gallery-item:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.gallery-item:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

.gallery-item:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

/* Documents */
.doc-list {
  list-style: none;
}

.doc-list li {
  margin-bottom: 0.75rem;
}

.doc-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  width: 100%;
  max-width: 480px;
  transition: border-color 0.2s, background 0.2s;
}

.doc-list a::before {
  content: "📄";
}

.doc-list a:hover {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

/* Contact */
.section-contact {
  background: var(--navy);
  color: #fff;
}

.section-contact h2 {
  color: #fff;
  border-bottom-color: var(--red);
}

.section-contact a {
  color: #fcd34d;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-company {
  margin-bottom: 1rem !important;
  line-height: 1.45;
}

.company-details {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

.company-details dt {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.company-details dd {
  margin: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form .btn-primary {
  border-color: var(--red);
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 1.75rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-inner p {
  margin-bottom: 0.35rem;
}

.footer-company {
  margin-bottom: 0.5rem !important;
  color: #ddd;
}

.footer-email {
  margin-top: 0.35rem !important;
  margin-bottom: 0.25rem !important;
}

.footer-copy {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  font-size: 0.8rem;
  color: #777;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Header – tagline centrirano preko ekrana */
  .header-top-bar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    padding: 0.5rem 0 0.65rem;
  }

  .header-logo-link {
    grid-row: 1;
    grid-column: 1;
    align-self: stretch;
    justify-content: center;
    min-width: 72px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-logo {
    width: 60px;
    height: 60px;
    padding: 6px;
  }

  .header-tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
    justify-self: center;
  }

  .header-phones {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0.35rem 1rem 0.35rem 0.5rem;
    align-self: center;
  }

  .header-phone {
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-image {
    height: 300px;
  }

  .hero {
    max-height: 300px;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(30, 58, 95, 0.92) 0%,
      rgba(30, 58, 95, 0.7) 50%,
      rgba(30, 58, 95, 0.35) 100%
    );
    align-items: flex-end;
  }

  .hero-content {
    padding: 2rem 1.5rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    margin-bottom: 1rem;
    line-height: 1.2;
    padding-right: 3rem;
  }

  .hero-content .btn-primary {
    margin-top: 0.75rem;
    padding: 0.85rem 1.65rem;
  }

  .main-nav .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px auto auto;
  }

  .gallery-wide {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
  }

  .gallery-portrait {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .gallery-portrait img {
    min-height: 260px;
    object-position: center 20%;
  }

  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-row: auto;
  }

  .gallery-item:nth-child(3) {
    grid-column: 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: 2;
  }

  .gallery-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .gallery-item:nth-child(3) img,
  .gallery-item:nth-child(4) img,
  .gallery-item:nth-child(5) img {
    height: 150px;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.65rem;
    z-index: 110;
  }

  .nav-inner {
    justify-content: flex-start;
    position: relative;
    padding: 0.75rem 0 0.5rem;
    min-height: 52px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    gap: 0.15rem;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .nav-list li:last-child a {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-top-bar {
    grid-template-columns: 64px 1fr;
    padding: 0.5rem 0 0.6rem;
  }

  .header-logo-link {
    min-width: 64px;
  }

  .header-logo {
    width: 54px;
    height: 54px;
    padding: 5px;
  }

  .header-tagline {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .hero-content {
    padding: 1.85rem 1.25rem 2.35rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
    margin-bottom: 1.1rem;
    padding-right: 2.5rem;
  }

  .hero-content .btn-primary {
    margin-top: 0.85rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .btn-primary {
    padding: 0.75rem 1.35rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-wide,
  .gallery-portrait,
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-wide img {
    height: 200px;
  }

  .gallery-portrait img {
    min-height: 300px;
    height: 300px;
  }

  .gallery-item:nth-child(3) img,
  .gallery-item:nth-child(4) img,
  .gallery-item:nth-child(5) img {
    height: 180px;
  }
}
