:root {
    --accent: #285570;
    --sand: #e3ded7;
    --cream: #faf7f6;
    --mist: #cbcac7;
    --ink: #333333;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .12);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.5;
}

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

a:hover {
    opacity: .9;
}

button{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.top-strip {
    background: rgba(227, 222, 215, .75);
    color: var(--ink);
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(51, 51, 51, .08);
}

.top-strip p {
    margin: 0;
    text-align: center;
}


/* Header overlay */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 14px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    transition: background .25s ease, backdrop-filter .25s ease;
}

.header.scrolled {
    background: rgba(250, 247, 246, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, .08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.header.scrolled .brand {
    color: var(--ink);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-tag {
    font-size: 12px;
    opacity: .85;
}


/* Nav */

.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .18);
    cursor: pointer;
}

.header.scrolled .nav-toggle {
    border-color: rgba(51, 51, 51, .18);
    background: rgba(203, 202, 199, .35);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 10px;
    background: white;
    border-radius: 99px;
}

.header.scrolled .nav-toggle span {
    background: var(--ink);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    color: white;
    font-weight: 500;
}

.header.scrolled .nav-links {
    color: var(--ink);
}

.nav-links a {
    padding: 10px 8px;
    border-radius: 12px;
}

.nav-links a:hover {
    background: rgba(250, 247, 246, .18);
}

.header.scrolled .nav-links a:hover {
    background: rgba(203, 202, 199, .35);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 14px !important;
    border-radius: 999px;
    box-shadow: 0 10px 18px rgba(40, 85, 112, .25);
}


/* Hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding-top: 78px;
    /* header space */
}

.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 900ms ease, transform 2500ms ease;
}

.slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 30% 70%, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0)), linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .15));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 56px 0 40px;
    color: white;
    max-width: 760px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.3px;
}

.hero p {
    margin: 0 0 22px;
    font-size: clamp(16px, 1.35vw, 18px);
    opacity: .95;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 16px 26px rgba(40, 85, 112, .35);
}

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

.btn-ghost {
    background: rgba(250, 247, 246, .14);
    color: white;
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(250, 247, 246, .18);
}

.btn {
    letter-spacing: .2px;
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, .12);
}

.hero-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 14px;
    opacity: .95;
}

.hero-badges span {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 8px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}


/* Dots */

.dots {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .18);
    cursor: pointer;
}

.dot.is-active {
    background: white;
    border-color: white;
}


/* Sections */

.section {
    padding: 70px 0;
    background: var(--cream);
}

.section-alt {
    background: rgba(227, 222, 215, .55);
    border-top: 1px solid rgba(51, 51, 51, .08);
    border-bottom: 1px solid rgba(51, 51, 51, .08);
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.2vw, 34px);
    letter-spacing: -0.2px;
}

.section-head p {
    margin: 0;
    opacity: .9;
}


/* Cards */

.grid {
    display: grid;
    gap: 14px;
}

.cards {
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 4;
    background: white;
    border: 1px solid rgba(51, 51, 51, .10);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    opacity: .9;
}

.why {
    grid-template-columns: repeat(12, 1fr);
}

.why-item {
    grid-column: span 4;
    background: rgba(250, 247, 246, .75);
    border: 1px solid rgba(51, 51, 51, .10);
    border-radius: var(--radius);
    padding: 16px;
}

.why-item h3 {
    margin: 0 0 8px;
}

.why-item p {
    margin: 0;
    opacity: .9;
}


/* FAQ */

.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: white;
    border: 1px solid rgba(51, 51, 51, .10);
    border-radius: var(--radius);
    padding: 6px 14px;
    box-shadow: var(--shadow);
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 4px;
    font-weight: 650;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-body {
    padding: 0 4px 14px;
    opacity: .92;
}

.faq-item summary {
    position: relative;
    padding-right: 34px;
}

.faq-item summary::after {
    content: "\f078";
    /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: .9;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}


/* Contact */

.contact {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
}

.contact-card {
    grid-column: span 5;
    background: rgba(250, 247, 246, .85);
    border: 1px solid rgba(51, 51, 51, .10);
    border-radius: var(--radius);
    padding: 18px;
}

.contact-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.contact-list span {
    display: inline-block;
    width: 90px;
    color: rgba(51, 51, 51, .75);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    width: 18px;
    color: var(--accent);
    opacity: .9;
}

.muted {
    opacity: .8;
}

.form {
    grid-column: span 7;
    background: white;
    border: 1px solid rgba(51, 51, 51, .10);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(51, 51, 51, .18);
    background: var(--cream);
    outline: none;
    font: inherit;
    font-weight: 500;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(40, 85, 112, .65);
    box-shadow: 0 0 0 4px rgba(40, 85, 112, .15);
}

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

.form-note code {
    background: rgba(203, 202, 199, .35);
    padding: 2px 6px;
    border-radius: 8px;
}


/* Footer */

.footer {
    padding: 26px 0;
    background: var(--cream);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-top: 1px solid rgba(51, 51, 51, .08);
    padding-top: 18px;
}

.footer-links {
    display: flex;
    gap: 12px;
    opacity: .9;
}

.hero-badges i {
    margin-right: 8px;
    opacity: .95;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-top i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(40, 85, 112, .12);
    color: var(--accent);
    border: 1px solid rgba(40, 85, 112, .18);
}

.card p {
    margin: 0;
    opacity: .9;
}


.brand-badge{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(250,247,246,.86);
  border: 1px solid rgba(51,51,51,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.brand-logo{
  display:block;
  height: 44px;   /* ajustezi după gust: 40–52 */
  width: auto;
}

@media (max-width: 720px){
  .brand-logo{ height: 38px; }
}


/* Responsive */

@media (max-width: 980px) {
    .card {
        grid-column: span 6;
    }
    .why-item {
        grid-column: span 6;
    }
    .contact-card {
        grid-column: span 12;
    }
    .form {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px;
        border-radius: 18px;
        background: rgba(250, 247, 246, .92);
        border: 1px solid rgba(51, 51, 51, .10);
        box-shadow: var(--shadow);
        color: var(--ink);
        display: none;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-links a {
        padding: 12px 12px;
    }
    .nav-cta {
        text-align: center;
    }
    .brand {
        max-width: 220px;
    }
    .hero-content {
        padding: 52px 0 34px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .card {
        grid-column: span 12;
    }
    .why-item {
        grid-column: span 12;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ===== Portfolio ===== */
.portfolio-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin: 18px 0 16px;
  flex-wrap: wrap;
}

.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(51,51,51,.14);
  background: rgba(250,247,246,.9);
  cursor:pointer;
  font-weight: 650;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);

  /* 🔒 fix iOS / Safari */
  color: var(--ink);
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn i{
  color: var(--accent);
}

/* active */
.filter-btn.is-active{
  background: var(--accent);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.filter-btn.is-active i{
  color: #fff;
}

/* focus (accessibility) */
.filter-btn:focus-visible{
  outline: none;
  box-shadow:
    0 10px 18px rgba(0,0,0,.08),
    0 0 0 4px rgba(40,85,112,.18);
}


.chip{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(51,51,51,.14);
  background: rgba(227,222,215,.55);
  font-weight: 700;
}

.btn-small{
  padding: 10px 12px;
  font-size: 14px;
}

/* grid */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.p-item{
  grid-column: span 4;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(51,51,51,.10);
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateZ(0);
}
.p-item:hover .p-thumb img{ transform: scale(1.03); }

.p-thumb{
  aspect-ratio: 4 / 3;
  background: rgba(203,202,199,.35);
  overflow:hidden;
}
.p-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform 350ms ease;
}

.p-caption{
  padding: 12px 14px 14px;
}
.p-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.p-sub{
  margin-top: 4px;
  opacity: .8;
  font-weight: 600;
  font-size: 13px;
}

/* responsive */
@media (max-width: 980px){
  .p-item{ grid-column: span 6; }
}
@media (max-width: 720px){
  .p-item{ grid-column: span 12; }
}

/* ===== Lightbox ===== */
.no-scroll{ overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 999;
}
.lightbox.is-open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
}

.lightbox-ui{
  position:absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display:flex;
  justify-content: flex-end;
  gap: 10px;
  pointer-events:none;
}
.lb-btn{
  pointer-events:auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: white;
  cursor:pointer;
  backdrop-filter: blur(10px);
}
#lbPrev, #lbNext{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#lbPrev{ left: 18px; }
#lbNext{ right: 18px; }
#lbClose{ position: absolute; top: 18px; right: 18px; }

.lightbox-content{
  position:absolute;
  inset: 70px 18px 18px 18px;
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}

.lightbox-stage{
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  position: relative;
}

.lightbox-stage img{
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-panel{
  border-radius: 18px;
  background: rgba(250,247,246,.92);
  border: 1px solid rgba(51,51,51,.12);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  padding: 14px;
  backdrop-filter: blur(10px);
  overflow:auto;
}

.lb-category{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40,85,112,.12);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 10px;
}
.lb-title{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.lb-note{
  margin: 0 0 12px;
  opacity: .92;
}

.lb-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lb-hint{ margin: 0; font-size: 13px; }

/* UI buttons over the IMAGE (not over the whole overlay) */
.lightbox-ui{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Place Prev/Next on top of the stage (image area) */
#lbPrev, #lbNext{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

#lbPrev{ left: 16px; }
#lbNext{ right: 16px; }

/* Close button top-right on the stage */
#lbClose{
  position: absolute;
  top: 16px;
  right: 16px;
  pointer-events: auto;
}

/* Make buttons look like proper overlay controls */
.lb-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.40);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.lb-btn:hover{
  background: rgba(0,0,0,.55);
}

/* anchor controls to the image stage area */
.lightbox-stage{
  position: relative; /* already present, keep it */
}
.lightbox-ui{
  position: absolute;
  inset: 0; /* now it can be placed inside stage */
}

/* Fix ghost buttons inside the lightbox panel (light background) */
.lightbox-panel .btn-ghost{
  background: rgba(203,202,199,.35);
  color: var(--ink);
  border-color: rgba(51,51,51,.14);
}

.lightbox-panel .btn-ghost:hover{
  background: rgba(203,202,199,.55);
}

.lightbox-panel .btn-ghost i{
  color: var(--accent);
}

/* Make Contact button stand out when header is scrolled */
.header.scrolled .btn-ghost{
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(40,85,112,.35);
}

.header.scrolled .btn-ghost i{
  color: #fff;
}

.header.scrolled .btn-ghost:hover{
  background: #1f455c; /* accent mai inchis */
}


@media (hover:hover){
  #lbPrev, #lbNext, #lbClose{
    opacity: .92;
    transition: opacity .2s ease, transform .2s ease;
  }
  .lightbox-stage:hover #lbPrev,
  .lightbox-stage:hover #lbNext,
  .lightbox-stage:hover #lbClose{
    opacity: 1;
  }
}


@media (max-width: 980px){
  .lightbox-content{
    grid-template-columns: 1fr;
    inset: 70px 12px 12px 12px;
  }
  .lightbox-panel{
    max-height: 300px;
  }
}

@media (max-width: 720px){
  .nav-links{
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;

    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    padding: 20px;
    border-radius: 18px;
    background: rgba(250,247,246,.95);
    border: 1px solid rgba(51,51,51,.10);
    box-shadow: var(--shadow);

    color: var(--ink);

    /* IMPORTANT: keep it in layout so it can animate */
    display: flex;

    /* hidden state */
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    visibility: hidden;

    transition:
      opacity .22s ease,
      transform .22s cubic-bezier(.4,0,.2,1),
      visibility 0s linear .22s;
  }

  .nav-links.is-open{
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;

    transition:
      opacity .22s ease,
      transform .22s cubic-bezier(.4,0,.2,1),
      visibility 0s;
  }
}
