﻿:root{
  --bg:#f6f6f6;
  --card:#ffffff;
  --text:#1f1f1f;
  --muted:#6b6b6b;
  --accent:#b08d57;
  --shadow:0 10px 30px rgba(0,0,0,.10);
  --shadow-lg:0 20px 60px rgba(0,0,0,.15);
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
}
body{
  margin:0;
  font-family:system-ui, Segoe UI, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ================================
   HOMEPAGE LAYOUT
================================ */
.homepage{
  background: url('uploads/hero-bg.jpg') center/cover no-repeat fixed;
  min-height:100vh;
}

.homepage::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(255,255,255,0.75);
  z-index:0;
  pointer-events:none;
}

.homepage > *{
  position:relative;
  z-index:1;
}

/* ================================
   HERO SECTION
================================ */
.hero-full{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  text-align:center;
  position:relative;
}

.hero-content{
  max-width:800px;
  width:100%;
  padding:60px 40px;
  background:rgba(255,255,255,0.95);
  border-radius:24px;
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(10px);
}

.hero-title-main{
  font-family:"Allura", cursive;
  font-size:64px;
  margin:0 0 16px 0;
  line-height:1.1;
  font-weight:400;
}

.hero-title-first{
  color:var(--accent);
}

.hero-title-second{
  color:var(--muted);
}

.hero-subtitle{
  font-size:24px;
  color:var(--muted);
  margin:0 0 40px 0;
  font-weight:400;
  letter-spacing:0.5px;
}

.hero-buttons{
  display:flex;
  gap:20px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ================================
   BUTTONS
================================ */
.btn{
  display:inline-block;
  padding:16px 32px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  transition:all 0.3s ease;
  border:none;
  cursor:pointer;
  font-family:inherit;
}

.btn-primary{
  background:#fff;
  color:var(--accent);
  border:2px solid var(--accent);
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover{
  background:var(--accent);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(176,141,87,0.3);
}

.btn-secondary{
  background:#fff;
  color:var(--accent);
  border:2px solid var(--accent);
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover{
  background:var(--accent);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(176,141,87,0.3);
}

/* ================================
   CONTAINER
================================ */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:60px 20px;
}

/* ================================
   SECTIONS
================================ */
.section-title{
  font-size:36px;
  font-weight:700;
  text-align:center;
  margin:0 0 40px 0;
  color:#2f2a26;
  letter-spacing:-0.5px;
}

.gallery-section{
  background:rgba(255,255,255,0.95);
  padding:80px 0;
  margin-top:-1px;
}

.form-section{
  background:rgba(255,255,255,0.98);
  padding:80px 0;
  margin-top:-1px;
  scroll-margin-top:20px;
}

/* ================================
   GALLERY GRID
================================ */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:24px;
}

.thumb{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

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

.thumb img{
  width:100%;
  height:300px;
  object-fit:cover;
  display:block;
  cursor:pointer;
  transition:opacity 0.3s ease;
}

.thumb img:hover{
  opacity:0.9;
}

.thumb p{
  margin:0 8px;
  padding:16px 0 0 0;
  color:var(--muted);
  font-size:15px;
}

.thumb h4{
  margin:8px 0 4px 8px;
  font-size:16px;
  color:var(--text);
}

/* ================================
   LIGHTBOX MODAL
================================ */
.lightbox{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.95);
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:20px;
  box-sizing:border-box;
}

.lightbox-close{
  position:absolute;
  top:20px;
  right:30px;
  color:#fff;
  font-size:40px;
  font-weight:300;
  cursor:pointer;
  line-height:1;
  transition:color 0.3s ease;
  z-index:1001;
}

.lightbox-close:hover{
  color:#b08d57;
}

.lightbox-image{
  max-width:90%;
  max-height:85vh;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-desc{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-size:18px;
  text-align:center;
  background:rgba(0,0,0,0.7);
  padding:12px 24px;
  border-radius:8px;
  max-width:80%;
  margin:0;
}

/* ================================
   FORMS
================================ */
.form-card{
  max-width:600px;
  margin:0 auto;
  background:#fff;
  padding:50px 40px;
  border-radius:20px;
  box-shadow:var(--shadow);
}

input, textarea, button, select{
  width:100%;
  padding:14px 16px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  font-size:16px;
  background:#fff;
  color:var(--text);
  font-family:inherit;
  margin-bottom:16px;
  transition:border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:var(--accent);
}

textarea{
  min-height:120px;
  resize:vertical;
}

button[type="submit"]{
  background:var(--accent);
  color:#fff;
  border:none;
  font-weight:700;
  cursor:pointer;
  padding:16px;
  margin-top:8px;
  transition:all 0.3s ease;
}

button[type="submit"]:hover{
  background:#8b6f47;
  transform:translateY(-2px);
  box-shadow:0 4px 15px rgba(176,141,87,0.3);
}

/* ================================
   ALERTS
================================ */
.alert{
  max-width:600px;
  margin:0 auto 30px;
  padding:16px 20px;
  border-radius:10px;
  text-align:center;
  font-weight:500;
}

.alert-success{
  background:#e8f5e9;
  color:#2e7d32;
  border:1px solid #4caf50;
}

.alert-error{
  background:#ffebee;
  color:#c62828;
  border:1px solid #f44336;
}

/* ================================
   FOOTER
================================ */
.footer{
  background:rgba(255,255,255,0.98);
  padding:50px 20px;
  text-align:center;
  margin-top:-1px;
}

.footer p{
  margin:8px 0;
  color:var(--text);
}

.footer a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  transition:color 0.2s ease;
}

.footer a:hover{
  color:#8b6f47;
  text-decoration:underline;
}

.footer .container{
  padding:0;
}

/* ================================
   NAVBAR (hidden on homepage, kept for admin)
================================ */
.nav{
  position:sticky;
  top:0;
  z-index:10;
  padding:14px 18px;
  border-bottom:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

.nav a{
  text-decoration:none;
  color:#2f2a26;
  font-weight:650;
  padding:8px 10px;
  border-radius:10px;
}

.nav a:hover{
  background:rgba(176,141,87,.12);
}

.brand{
  display:inline-flex;
  align-items:baseline;
  gap:10px;
  white-space:nowrap;
}

.logo-sophie{
  font-family:"Allura", cursive;
  font-size:34px;
  line-height:1;
  color:var(--accent);
  letter-spacing:.2px;
}

.logo-rest{
  font-family:"Playfair Display", serif;
  font-size:22px;
  line-height:1;
  color:#2f2a26;
  font-style:italic;
}

/* ================================
   CARD (for admin pages)
================================ */
.card{
  background:var(--card);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
  margin:16px 0;
  border:1px solid rgba(0,0,0,.06);
}

/* ================================
   RESPONSIVE
================================ */
@media(max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr); gap:16px}
  .hero-title-main{font-size:48px}
  .hero-subtitle{font-size:20px}
  .section-title{font-size:30px}
  .hero-buttons{gap:16px}
  .hero-content{padding:50px 30px}
  .form-card{padding:40px 30px}
}

@media(max-width:600px){
  .grid{grid-template-columns:1fr}
  .hero-title-main{font-size:40px}
  .hero-subtitle{font-size:18px}
  .hero-content{padding:40px 24px}
  .form-card{padding:30px 24px}
  .section-title{font-size:28px}
  .container{padding:40px 16px}
  .gallery-section, .form-section{padding:60px 0}
  .btn{padding:14px 28px; font-size:15px}
  .hero-buttons{flex-direction:column; align-items:stretch}
  .hero-buttons .btn{width:100%}
  .lightbox-close{top:15px; right:20px; font-size:35px}
  .lightbox-image{max-width:95%; max-height:80vh}
  .lightbox-desc{font-size:16px; padding:10px 20px; bottom:20px}
}
