/* ==============================================
   Liora Flow — pure HTML/CSS, no JavaScript
   ============================================== */

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Theme ---------- */
:root {
  --color-text:    #5C4B51;
  --color-blush:   #F6E7E7;
  --color-cream:   #EDE4D9;
  --color-tan:     #D6CFC2;
  --color-sage:    #8CA6A6;
  --color-olive:   #A3A380;
  --color-white:   #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-blush);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1  { font-family: var(--font-serif); font-weight: 500; margin: 0; line-height: 1.2; color: var(--color-text); }
h2, h3 { font-family: var(--font-serif); font-weight: 500; margin-bottom: 20px; line-height: 1.2; color: var(--color-text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(214, 207, 194, 0.3);
}
.navbar-blush       { background: var(--color-blush); }
.navbar-cream       { background: var(--color-cream); }
.navbar-transparent { background: transparent; border-bottom: none; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }

.navbar-logo img { height: 48px; width: auto; }

.navbar-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  justify-content: flex-end;
}
.navbar-menu a { transition: color 0.2s; padding: 0.25rem 0; }
.navbar-menu a:hover, .navbar-menu a.is-active { color: var(--color-sage); }

@media (max-width: 600px) {
  .navbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .navbar-menu { width: 100%; justify-content: flex-start; gap: 0.75rem 1.25rem; }
  .hero-image {
    max-height: 50vh;  /* Kisebb mobilokon még kisebb */
    width: 100%;
    height: auto;
  }
}
@media (min-width: 768px) {
  .navbar-menu { gap: 2rem; font-size: 0.8rem; }
}
@media (min-width: 1024px) {
  .navbar { padding: 1.5rem 3rem; }
}

/* Keyboard focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 2px;
}

/* When transparent navbar is on top of hero, push hero down on mobile so nav doesn't overlap */
@media (max-width: 600px) {
  .navbar-transparent + .hero { padding-top: 8rem; }
  .navbar-transparent { position: relative; background: var(--color-cream); border-bottom: 1px solid rgba(214,207,194,0.3); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-sage);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn:hover { background: var(--color-text); }

/* ============================================== */
/* HOME PAGE                                       */
/* ============================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(237, 228, 217, 0.85), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.hero-text {
  background: rgba(255,255,255,0.45);
  padding: 1.5rem;
  max-width: 38rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 2px;
}
@media (min-width: 1024px) {
  .hero-content { padding: 0 3rem; }
}

/* ============================================== */
/* PERSONAL PAGE                                   */
/* ============================================== */
.personal-page { background: var(--color-cream); min-height: 100vh; display: flex; flex-direction: column; }
.personal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.personal-portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3rem;
}
.personal-portrait {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-top-left-radius: 50% 30%;
  border-top-right-radius: 50% 30%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.personal-portrait img { width: 100%; height: 100%; object-fit: cover; }
.personal-text { padding: 0; }
.personal-text h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.personal-text p { margin: 0 0 1rem; opacity: 0.9; line-height: 1.75; }
.personal-text .highlight {
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  background: rgb(201, 146, 126);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);  /* Finom, modern shadow */
  border-radius: 8px;  /* Opcionális lekerekítés */
}

@media (min-width: 1024px) {
  .personal-main { flex-direction: row; padding: 0; }
  .personal-portrait-wrap { width: 50%; padding: 3rem; }
  .personal-text { width: 50%; padding: 4rem 4rem 4rem 0; align-self: center; }
}

/* ============================================== */
/* SERVICES PAGE                                   */
/* ============================================== */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem 1.5rem 0;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; opacity: 0.8; max-width: 36rem; margin: 0 auto; }

.services-list { display: flex; flex-direction: column; gap: 4rem; padding: 0 0 5rem; }

.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-image:hover img { transform: scale(1.05); }
.service-text h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin-bottom: 1rem; }
.service-text .divider {
  width: 3rem; height: 1px;
  background: var(--color-olive);
  margin-bottom: 1rem;
}
.service-text p { line-height: 1.75; opacity: 0.9; }

@media (min-width: 1024px) {
  .service-row { flex-direction: row; gap: 4rem; }
  .service-row.reversed { flex-direction: row-reverse; }
  .service-image, .service-text { width: 50%; }
}

/* ============================================== */
/* PORTFOLIO PAGE                                  */
/* ============================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0 0 3rem;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }

.portfolio-item {
  aspect-ratio: 0.8 / 1;
  background: var(--color-cream);
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-position: top;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }


/* ============================================== */
/* CONTACT PAGE                                    */
/* ============================================== */
.contact-page { background: var(--color-cream); min-height: 100vh; }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0 5rem;
}
@media (min-width: 1024px) { .contact-grid { flex-direction: row; gap: 4rem; } }

.contact-col { 
  width: 100%; 
  background: rgb(255, 251, 242);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);  /* Finom, modern shadow */
  border-radius: 8px;  /* Opcionális lekerekítés */
  transition: box-shadow 0.3s ease;  /* Hover effekt */
}

@media (min-width: 1024px) { .contact-col { width: 50%; } }

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-tan);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}
.price-list li .price { font-weight: 700; color: var(--color-sage); }

.price-note {
  margin-top: 0.25rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.7;
}

.contact-block { margin-top: 3rem; }
.contact-block h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--color-sage); }
.contact-link .icon { color: var(--color-olive); flex-shrink: 0; }

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--color-blush);
  border-radius: 50%;
  color: var(--color-text);
  transition: background 0.2s;
}
.social-link:hover { background: var(--color-tan); }

/* Contact form */
.contact-form-card {
  background: rgba(255,255,255,0.55);
  padding: 2rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.contact-form-card h2 { font-size: 1.85rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--color-tan);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-olive); }
.form-group textarea { resize: vertical; min-height: 8rem; }
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-sage);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--color-text); }

/* ---------- Page wrappers ---------- */
.page-blush  { background: var(--color-blush); min-height: 100vh; }
.page-cream  { background: var(--color-cream); min-height: 100vh; }
