/* ============================================================
   HILOMAR — Tailor & Sailor
   Vela Luka · Otok Korčula
   Paleta: brand navy #162847 · zlatna #C79D62 · bjelokost
   Tipografija: Marcellus (display) + Instrument Sans (tekst)
   ============================================================ */

:root {
  --navy: #162847;
  --navy-deep: #101e36;
  --gold: #c79d62;
  --gold-soft: rgba(199, 157, 98, .55);
  --gold-faint: rgba(199, 157, 98, .22);
  --ivory: #faf8f3;
  --ivory-2: #f1ede3;
  --ink: #1c2434;
  --muted: rgba(28, 36, 52, .68);
  --light-muted: rgba(250, 248, 243, .78);
  --white: #ffffff;
  --maxw: 1100px;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Zajednički elementi ---------- */

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1.5px dashed var(--gold-soft);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.rule {
  border: none;
  border-top: 1.5px dashed var(--gold);
  max-width: 150px;
  margin: 0 0 28px;
}

.rule-center { margin-left: auto; margin-right: auto; }

/* šav — brand motiv, suptilan */
.stitch-line {
  border: none;
  border-top: 1px dashed var(--gold-soft);
  margin: 0;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(199, 157, 98, .28);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .16em;
  color: var(--gold);
}

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

.main-nav a {
  color: var(--light-muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.lang-switch { font-size: .82rem; display: flex; gap: 10px; align-items: center; color: var(--gold-soft); }
.lang-switch a { color: var(--light-muted); text-decoration: none; font-weight: 600; letter-spacing: .1em; }
.lang-switch a:hover, .lang-switch a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 13px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 90% 70% at 75% 15%, rgba(199,157,98,.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 92px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.14;
  color: var(--white);
  margin-bottom: 26px;
}

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

.hero .lead {
  font-size: 1.13rem;
  color: var(--light-muted);
  max-width: 48ch;
  margin-bottom: 38px;
}

.hero-media { display: flex; justify-content: center; }

.hero-media img {
  width: min(520px, 100%);
  height: auto;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, .45));
  animation: floatBoat 8s ease-in-out infinite;
}

@keyframes floatBoat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px); }
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 15px 30px;
  border-radius: 8px;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--navy-deep); border: 1px solid var(--gold); }
.btn-primary:hover { background: #d6b078; border-color: #d6b078; }

.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--gold-soft); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--gold-soft); }
.btn-ghost-dark:hover { color: var(--gold); border-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

.chip {
  display: inline-block;
  text-decoration: none;
  color: var(--light-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 9px 20px;
  border: 1px solid rgba(199, 157, 98, .35);
  border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s;
}

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

.chip-repair { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.chip-repair:hover { background: #d6b078; color: var(--navy-deep); }

/* ---------- Sekcije ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--ivory-2); }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--ivory); }
.section-dark h2 { color: var(--white); }

.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; line-height: 1.2; }

.section-intro { max-width: 64ch; margin-bottom: 48px; font-size: 1.08rem; color: var(--muted); }
.section-dark .section-intro { color: var(--light-muted); }

/* ---------- Kartice prednosti ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.feature {
  background: var(--white);
  border-radius: 10px;
  border: 1.5px dashed rgba(22, 40, 71, .2);
  padding: 30px 26px;
  transition: border-color .25s, transform .2s;
}
.feature:hover { border-color: var(--gold); transform: translateY(-3px); }

.feature .f-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: .12em;
  display: block;
  margin-bottom: 12px;
}

.feature h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--navy); }
.feature p { font-size: .93rem; color: var(--muted); }

/* ---------- Usluge ---------- */

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

.service-card {
  background: var(--white);
  border-radius: 10px;
  border: 1.5px dashed rgba(22, 40, 71, .2);
  padding: 32px 28px;
  transition: border-color .25s, transform .2s;
}

.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.service-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: .95rem; color: var(--muted); }

.service-card.card-repair { background: var(--navy); border: 1.5px dashed var(--gold); }
.service-card.card-repair h3 { color: var(--gold); }
.service-card.card-repair p { color: var(--light-muted); }

/* ---------- Proces — rimski brojevi ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.step {
  background: var(--white);
  border-radius: 10px;
  border: 1.5px dashed rgba(22, 40, 71, .2);
  padding: 34px 28px;
}

.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: .95rem; color: var(--muted); }

/* ---------- Lokacija ---------- */

.location-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.location-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  letter-spacing: .16em;
  margin-bottom: 6px;
}

.map-frame {
  border: 1.5px dashed var(--gold-soft);
  border-radius: 10px;
  padding: 10px;
}

.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; filter: saturate(.85); }

/* ---------- CTA ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin-bottom: 34px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Kontakt ---------- */

.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 64px; max-width: 780px; margin-left: auto; margin-right: auto; }

.quick-card {
  display: block;
  text-decoration: none;
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  border: 1.5px dashed rgba(22, 40, 71, .2);
  padding: 32px 24px;
  transition: border-color .25s, transform .2s;
}

.quick-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.quick-card .qc-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); display: block; margin-bottom: 10px; font-weight: 600; }
.quick-card .qc-value { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); word-break: break-word; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }

.contact-form { background: var(--white); border-radius: 10px; border: 1.5px dashed rgba(22, 40, 71, .2); padding: 38px 34px; }

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

.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 16px 0 6px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(22, 40, 71, .22);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ivory);
  transition: border-color .25s;
}

.contact-form input:focus, .contact-form textarea:focus { outline: none; border: 1.5px dashed var(--gold); }

.contact-form button { margin-top: 28px; width: 100%; border: 1px solid var(--gold); cursor: pointer; font-family: var(--font-body); }

.form-note { font-size: .86rem; color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--light-muted);
  border-top: 1px solid rgba(199, 157, 98, .28);
  padding: 72px 0 36px;
  text-align: center;
}

.site-footer .footer-logo { width: 120px; height: 120px; margin: 0 auto 20px; }

.footer-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .34em; color: var(--gold); margin-bottom: 4px; }
.footer-tag { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 28px; }

.footer-contact p { margin-bottom: 6px; font-size: .96rem; }
.footer-contact a { color: var(--ivory); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 16px; justify-content: center; margin-top: 28px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--light-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .05em;
  transition: border-color .25s, color .25s;
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px dashed rgba(199, 157, 98, .3);
  font-size: .82rem;
  color: rgba(250, 248, 243, .5);
}

/* ---------- Podstranice ---------- */

.page-hero {
  background:
    radial-gradient(ellipse 90% 80% at 70% 0%, rgba(199,157,98,.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--ivory);
  padding: 84px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); color: var(--white); }
.page-hero p { max-width: 62ch; margin: 16px auto 0; color: var(--light-muted); font-size: 1.08rem; }
.page-hero .eyebrow { margin-bottom: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero .container { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 72px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .chips { justify-content: center; }
  .hero-media { order: -1; }
  .hero-media img { width: min(340px, 80%); }
  .features { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
  .location-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .quick-contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 20px 28px 26px;
    gap: 18px;
    border-bottom: 1px solid rgba(199, 157, 98, .28);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .features, .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .btn, .service-card, .quick-card, .feature { transition: none; }
}

/* ============================================================
   Krojački elementi
   ============================================================ */

/* Krojački metar — traka s oznakama (dijeli tamne sekcije od svijetlih) */
.tape {
  height: 18px;
  background-color: var(--navy-deep);
  background-image:
    repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(199, 157, 98, .45) 0 1.5px, transparent 1.5px 12.8px);
  background-size: auto 100%, auto 55%;
  background-repeat: repeat-x, repeat-x;
  background-position: bottom left, bottom left;
  border-bottom: 1px solid rgba(199, 157, 98, .35);
}

/* Linija "izreži ovdje" — škarice na šavu */
.cut-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 28px;
}

.cut-line::before, .cut-line::after {
  content: "";
  flex: 0 1 130px;
  border-top: 1.5px dashed var(--gold);
}

/* Konac s iglom — akcent ispod hero teksta */
.thread-accent {
  display: block;
  width: min(300px, 70%);
  height: auto;
  margin-top: 30px;
  opacity: .9;
}

@media (max-width: 900px) {
  .thread-accent { margin-left: auto; margin-right: auto; }
}

/* Dugmad u podnožju */
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 24px;
}

.footer-buttons svg { opacity: .85; }
