/* ============================================================
   main.css — Design System & Global Styles
   Arinis Colibita | ariniscolibita.ro
   Aesthetic: Mountain Lodge — Organic, Natural, Refined
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Josefin+Sans:wght@300;400;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --forest-deep:   #1b2e1a;
  --forest-mid:    #2d4a2c;
  --forest-light:  #4a7348;
  --forest-pale:   #7aaa78;

  --amber:         #c8892a;
  --amber-light:   #e0a84a;
  --amber-pale:    #f4d18a;

  --parchment:     #f7f2e8;
  --cream:         #fdfaf4;
  --warm-white:    #fffef9;

  --charcoal:      #2a2a2a;
  --stone:         #6b6560;
  --mist:          #c8c2b8;

  --lake-blue:     #4a7fa5;
  --lake-light:    #87b8d4;

  --shadow-sm:     0 2px 8px rgba(27,46,26,.12);
  --shadow-md:     0 6px 24px rgba(27,46,26,.18);
  --shadow-lg:     0 16px 48px rgba(27,46,26,.22);

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Crimson Pro', Georgia, serif;
  --font-label:    'Josefin Sans', sans-serif;

  --transition:    all .3s cubic-bezier(.25,.8,.25,1);
  --max-width:     1280px;
  --section-pad:   clamp(3rem, 8vw, 6rem);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

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

a {
  color: var(--forest-mid);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--amber); }

ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
}

.label {
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
}

.italic-serif { font-style: italic; font-family: var(--font-display); }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section { padding-block: var(--section-pad); }

.section--dark {
  background: var(--forest-deep);
  color: var(--parchment);
}

.section--dark h2,
.section--dark h3 { color: var(--parchment); }

.section--parchment { background: var(--parchment); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,460px),1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85em 2em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: var(--warm-white);
  border-color: var(--amber);
}
.btn--primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--warm-white);
  box-shadow: 0 4px 16px rgba(200,137,42,.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--forest-mid);
  border-color: var(--forest-mid);
}
.btn--outline:hover {
  background: var(--forest-mid);
  color: var(--warm-white);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(247,242,232,.5);
}
.btn--outline-light:hover {
  background: rgba(247,242,232,.15);
  border-color: var(--amber);
  color: var(--amber-pale);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__body { padding: 1.5rem; }
.card__label { margin-bottom: .5rem; }
.card__title { margin-bottom: .75rem; }
.card__text { color: var(--stone); font-size: .95rem; }

/* ── Section Title ──────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .label { display: block; margin-bottom: .75rem; }

.section-title h2 { margin-bottom: 1rem; }

.section-title p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--stone);
}

.divider {
  width: 56px;
  height: 2px;
  background: var(--amber);
  margin: 1.25rem auto 0;
}

/* ── Hero Base (shared across pages) ──────────────────────── */
.page-hero {
  position: relative;
  height: clamp(260px, 40vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.page-hero:hover .page-hero__bg { transform: scale(1.03); }

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,46,26,.75) 0%, rgba(27,46,26,.2) 60%, transparent 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
}

.page-hero__content .label { color: var(--amber-pale); }
.page-hero__content h1 { color: var(--warm-white); text-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ── Alerts / Flash ─────────────────────────────────────────── */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-label);
  font-size: .85rem;
  letter-spacing: .03em;
  border-left: 4px solid;
  margin-bottom: 1.5rem;
}
.alert--success { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.alert--error   { background: #fce4ec; border-color: #e91e63; color: #880e4f; }
.alert--info    { background: #e3f2fd; border-color: #2196f3; color: #0d47a1; }

/* ── Lazy images ────────────────────────────────────────────── */
.lazy { opacity: 0; transition: opacity .5s ease; }
.lazy.loaded { opacity: 1; }

/* ── Scrollbar custom ───────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--forest-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Animatii entry ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up  { animation: fadeUp .7s ease both; }
.anim-fade-in  { animation: fadeIn .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
