/* ==========================================================
   Apartmani i sobe Jordanovac — style.css
   Brand: Amber #C17F3A | Oak #8B6347 | Charcoal #2C2C2A
   Font: Nunito (Google Fonts)
   ========================================================== */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber:      #C17F3A;
  --amber-dark: #A06828;
  --oak:        #8B6347;
  --charcoal:   #2C2C2A;
  --cream:      #F5F0E8;
  --cream-dark: #EDE5D8;
  --green:      #4A6741;
  --white:      #FFFFFF;
  --gray-light: #F7F4F0;
  --gray-mid:   #D9D0C4;
  --gray-text:  #666666;
  --font:       'Nunito', system-ui, sans-serif;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(44,44,42,.09);
  --shadow-sm:  0 2px 8px rgba(44,44,42,.06);
  --transition: .22s ease;
  --max-w:      1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-dark); }
ul { list-style: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--amber); color: var(--white);
  padding: .5rem 1rem; border-radius: var(--radius);
  font-weight: 700; z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--amber);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.logo img { height: 100px; width: auto; }

/* Nav */
#main-nav ul { display: flex; gap: .25rem; align-items: center; }
#main-nav li { position: relative; }
#main-nav a {
  display: block; padding: .45rem .85rem;
  font-weight: 600; font-size: .95rem; color: var(--charcoal);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
#main-nav a:hover,
#main-nav .current > a { color: var(--amber); background: var(--gray-light); }
.btn-nav {
  background: var(--amber) !important; color: var(--white) !important;
  padding: .45rem 1.1rem !important; border-radius: var(--radius) !important;
}
.btn-nav:hover { background: var(--amber-dark) !important; }

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 180px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all var(--transition); z-index: 200;
  flex-direction: column; display: flex;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { font-weight: 400; font-size: .9rem; padding: .5rem 1rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px;
  background: var(--amber); opacity: .06;
  border-radius: 50%;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--amber); margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.25;
  color: var(--charcoal); margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-desc { font-size: 1.1rem; color: var(--gray-text); margin-bottom: 2rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: .75rem 1.75rem;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--amber); border-color: var(--amber); }
.btn-outline:hover { background: var(--amber); color: var(--white); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ── SECTION ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-light); }
.section-cream { background: var(--cream); }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  color: var(--charcoal); margin-bottom: .5rem;
}
.section-subtitle { color: var(--gray-text); font-size: 1.05rem; margin-bottom: 2.5rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.amber-line {
  display: block; width: 48px; height: 3px;
  background: var(--amber); border-radius: 2px; margin-bottom: 1rem;
}
.centered .amber-line { margin: 0 auto 1rem; }

/* ── CARDS — smještaj ── */
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.unit-card {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.unit-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.unit-card-img { height: 200px; overflow: hidden; }
.unit-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.unit-card:hover .unit-card-img img { transform: scale(1.04); }
.unit-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.unit-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .65rem; border-radius: 99px; margin-bottom: .75rem;
}
.tag-sonja { background: #fdecea; color: #C0392B; }
.tag-zara  { background: #fef0e6; color: #E67E22; }
.tag-nika  { background: #fefce6; color: #b5860d; }
.unit-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.unit-card p { font-size: .95rem; color: var(--gray-text); margin-bottom: 1rem; flex: 1; }
.unit-price { font-size: 1.1rem; font-weight: 700; color: var(--amber); margin-bottom: 1rem; }
.unit-price span { font-size: .85rem; font-weight: 400; color: var(--gray-text); }

/* ── AMENITIES LIST ── */
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .75rem; }
.amenity-item { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.amenity-item::before { content: '✓'; color: var(--amber); font-weight: 700; flex-shrink: 0; }

/* ── LOKACIJA BOX ── */
.location-highlight {
  background: var(--amber); color: var(--white);
  border-radius: 14px; padding: 2rem 2.25rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
}
.location-highlight .icon { font-size: 2.5rem; flex-shrink: 0; }
.location-highlight h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.location-highlight p { font-size: .97rem; opacity: .92; }
.location-highlight a { color: var(--white); text-decoration: underline; }

/* ── MAP ── */
.map-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info address { font-style: normal; }
.contact-info address p { margin-bottom: .6rem; }
.contact-info address a { color: var(--charcoal); font-weight: 600; }
.contact-info address a:hover { color: var(--amber); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem 1rem;
  font-family: var(--font); font-size: 1rem;
  border: 2px solid var(--gray-mid); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--amber);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; }
.form-message.success { background: #edfaed; color: #2a6b2a; border: 1px solid #9dd89d; }
.form-message.error   { background: #fdecea; color: #8b1a1a; border: 1px solid #f5a5a5; }

/* ── FAQ ── */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; font-family: var(--font);
  font-size: 1.05rem; font-weight: 600; color: var(--charcoal);
  text-align: left; transition: color var(--transition);
}
.faq-question:hover { color: var(--amber); }
.faq-question .icon { font-size: 1.3rem; transition: transform var(--transition); flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding-bottom: 1.1rem; color: var(--gray-text); line-height: 1.75; }

/* ── UNIT DETAIL PAGE ── */
.unit-detail-hero {
  background: var(--cream); padding: 3rem 0 0;
}
.unit-detail-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.unit-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border-radius: 14px; overflow: hidden; }
.unit-gallery img { width: 100%; height: 180px; object-fit: cover; cursor: pointer; transition: opacity var(--transition); }
.unit-gallery img:first-child { grid-column: span 2; height: 260px; }
.unit-gallery img:hover { opacity: .88; }
.unit-meta h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.unit-meta .unit-tag { font-size: .8rem; }
.price-box {
  background: var(--cream-dark); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.25rem 0;
  border-left: 4px solid var(--amber);
}
.price-box .price-main { font-size: 1.5rem; font-weight: 700; color: var(--amber); }
.price-box .price-note { font-size: .9rem; color: var(--gray-text); margin-top: .25rem; }
.checkin-box { display: flex; gap: 1.5rem; margin: 1rem 0; }
.checkin-item { display: flex; flex-direction: column; font-size: .9rem; }
.checkin-item strong { font-size: 1rem; }

/* ── TRUST BADGES ── */
.trust-strip { background: var(--charcoal); padding: 1.75rem 0; }
.trust-inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .65rem; color: var(--white); font-size: .95rem; }
.trust-item .t-icon { font-size: 1.5rem; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: .85rem 0; font-size: .88rem; color: var(--gray-text); }
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { margin: 0 .4rem; }

/* ── PAGE HEADER ── */
.page-header { background: var(--cream); padding: 2.5rem 0 1.5rem; }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.85); padding: 3rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem; padding-bottom: 2rem;
}
.footer-logo img { filter: brightness(10); margin-bottom: .75rem; }
.footer-tagline { font-size: .9rem; opacity: .75; margin-top: .5rem; line-height: 1.5; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-bottom: .9rem; }
.site-footer ul li { margin-bottom: .45rem; }
.site-footer ul a { color: rgba(255,255,255,.75); font-size: .9rem; }
.site-footer ul a:hover { color: var(--amber); }
.site-footer address p { margin-bottom: .45rem; font-style: normal; font-size: .9rem; }
.site-footer address a { color: rgba(255,255,255,.75); }
.site-footer address a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--amber); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .units-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .unit-detail-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  #main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1rem;
    border-top: 1px solid var(--cream-dark);
    box-shadow: var(--shadow);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav a { padding: .65rem 1rem; border-radius: var(--radius); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 1rem; }
  .units-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .checkin-box { flex-direction: column; gap: .75rem; }
  .amenities-grid { grid-template-columns: 1fr; }
}

/* ── UTILITIES ── */
.text-amber { color: var(--amber); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
