/* =========================================================
   Brand & Web — Danijela | landing page stylesheet
   ========================================================= */

:root {
  --burgundy: #681644;
  --burgundy-dark: #4a0f30;
  --burgundy-light: #8a2861;
  --cream: #f9e5a9;
  --cream-light: #fdf6e3;
  --charcoal: #2b2320;
  --grey: #6b6058;
  --grey-light: #efe9e0;
  --white: #ffffff;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 4px 16px rgba(43, 35, 32, 0.08);
  --shadow-md: 0 12px 32px rgba(43, 35, 32, 0.14);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--burgundy-dark);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-sub { color: var(--grey); font-size: 16px; }
.section-head.light .eyebrow { color: var(--cream); }
.section-head.light h2 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--burgundy);
  color: var(--burgundy);
  background: transparent;
}
.btn-outline:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--grey-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--burgundy-dark);
}
.brand-name .amp { color: var(--burgundy-light); margin: 0 1px; }

.main-nav ul { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--burgundy);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--burgundy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--burgundy-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--burgundy-dark);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 168px 0 96px;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--white) 78%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--burgundy); }
.hero-lead {
  font-size: 18px;
  color: var(--grey);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

.hero-media { display: flex; justify-content: center; }
.hero-frame {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 3 / 3.55;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--cream);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.tools-card {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.tools-label {
  font-weight: 600;
  color: var(--burgundy-dark);
  margin-bottom: 20px;
}
.tools-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tool-chip {
  flex: 1 1 90px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.tool-chip img {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 6px;
  object-fit: cover;
}
.tool-chip span { font-size: 13px; font-weight: 500; color: var(--charcoal); }

.about-text h2 { font-size: clamp(26px, 3.6vw, 36px); }
.about-points { margin-top: 20px; }
.about-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--charcoal);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--cream-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--burgundy-dark);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--grey); margin: 0; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.portfolio-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-light);
}
.portfolio-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.06); }
.portfolio-item figcaption {
  padding: 18px 20px;
}
.portfolio-item .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cream-light);
  color: var(--burgundy);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}
.portfolio-item h3 {
  color: var(--burgundy-dark);
  font-size: 17px;
  margin: 0;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--burgundy);
  background-image: radial-gradient(circle at 85% 20%, var(--burgundy-light) 0%, var(--burgundy) 55%);
  color: var(--cream-light);
}
.testimonial-track { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-slides { position: relative; min-height: 220px; }
.testimonial-slide {
  margin: 0;
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial-slide.is-active { display: block; }
.testimonial-slide p {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  color: var(--white);
  font-style: italic;
}
.testimonial-slide footer {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}
.testimonial-slide footer span { font-weight: 400; opacity: 0.85; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}
.testimonial-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.testimonial-controls button:hover { background: rgba(255,255,255,0.15); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.35);
}
.testimonial-dots button.is-active { background: var(--cream); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-list { margin-top: 28px; }
.contact-list li { margin-bottom: 16px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s ease;
}
.contact-list a:hover { color: var(--burgundy); }
.contact-list .icon {
  width: 42px; height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .icon svg { width: 19px; height: 19px; fill: var(--burgundy); }

.contact-form {
  background: var(--cream-light);
  padding: 36px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--burgundy-dark);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #e2d7c3;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}
.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 18px;
}
.form-status.success { color: #2f7d4f; }
.form-status.error { color: #b3261e; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: var(--grey-light);
  padding: 52px 0 28px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-footer .brand-name { color: var(--cream); }
.footer-tag { font-size: 14px; color: #cfc6bd; margin: 0; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--burgundy); }
.footer-social svg { width: 16px; height: 16px; fill: var(--cream-light); }
.footer-copy { font-size: 12.5px; color: #a89f96; margin: 10px 0 0; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure {
  max-width: 880px;
  width: 100%;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.lightbox img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: var(--cream-light);
}
.lightbox figcaption { padding: 22px 26px; overflow-y: auto; }
.lightbox figcaption h3 { margin-bottom: 8px; font-size: 20px; }
.lightbox figcaption p { font-size: 14.5px; color: var(--grey); margin: 0; }
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 68px 0; }

  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav li { width: 100%; }
  .nav-link {
    display: block;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--grey-light);
  }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }
  .nav-toggle { display: flex; }

  .hero { padding: 128px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; margin-bottom: 12px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: 2; }

  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
  .lightbox figcaption { padding: 18px; }
  .hero-frame { aspect-ratio: 3 / 3.2; }
}
