/* ============================================================
   PETAL & GRACE — FLORAL DESIGN WEBSITE
   Color palette: cream, blush, sage, warm rose
   ============================================================ */

:root {
  --cream:       #FAE9E4;
  --cream-dark:  #F0D0C6;
  --blush:       #E8C5BC;
  --blush-light: #F4DDD8;
  --rose:        #C4857A;
  --rose-dark:   #A86558;
  --sage:        #A8BBA4;
  --sage-dark:   #7D9E7A;
  --brown:       #5C3D2E;
  --brown-light: #8C6A57;
  --white:       #FFFFFF;
  --text:        #4A3728;
  --text-light:  #7D6357;
  --border:      #E8D5CB;
  --shadow:      rgba(90, 60, 45, 0.10);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Lato', system-ui, sans-serif;
  --max-width:   1180px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

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

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

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--white); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--brown); }
h3 { font-size: 1.35rem; color: var(--brown); margin-bottom: .5rem; }

h1 em, h2 em { font-style: italic; color: var(--blush); }

p { font-size: .975rem; color: var(--text-light); }

.label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .75rem;
}

.center { text-align: center; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.section-pad { padding: 6rem 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: .85rem 2.4rem;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  padding: .8rem 2.2rem;
  border: 1.5px solid var(--rose);
  color: var(--rose);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--rose); color: var(--white); transform: translateY(-2px); }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(254, 250, 246, 0.97);
  box-shadow: 0 2px 20px var(--shadow);
  padding: .75rem 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .05em;
  transition: color var(--transition);
}
.logo span { color: var(--blush); }
#navbar.scrolled .logo { color: var(--brown); }

/* SVG logo in navbar */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--transition), opacity var(--transition);
}
#navbar.scrolled .logo-img {
  filter: none;
}

/* SVG logo in footer */
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: .75rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--blush-light); }
#navbar.scrolled .nav-links a { color: var(--brown-light); }
#navbar.scrolled .nav-links a:hover { color: var(--rose); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}
#navbar.scrolled .nav-toggle { color: var(--brown); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, #c4857a44 0%, #a8bba433 50%, #e8c5bc22 100%),
    url('https://images.unsplash.com/photo-1470509037663-253afd7f0f51?w=1600&q=85') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 45, 34, 0.52) 0%,
    rgba(74, 45, 34, 0.38) 60%,
    rgba(74, 45, 34, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  padding: 0 1.5rem;
}

.hero-sub {
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blush-light);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 500px;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── About ──────────────────────────────────────────────────── */
.about { background: var(--cream); }

.about-img-wrap {
  position: relative;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow);
  aspect-ratio: 4/5;
}

.about-img-wrap iframe,
.about-img-wrap .about-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text { padding: 1rem 0; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; line-height: 1.8; }
.about-text .btn-secondary { margin-top: .75rem; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery { background: var(--cream-dark); }
.gallery h2 { margin-bottom: .75rem; }
.section-intro {
  max-width: 540px;
  margin: 0 auto 3.5rem;
  font-size: .95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item { display: flex; flex-direction: column; gap: .75rem; }

.frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 32px;
  overflow: hidden;
  background: var(--blush-light);
  box-shadow: 0 6px 24px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.frame-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(90, 60, 45, 0.18);
}

.frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.frame-wrap .frame-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.frame-wrap .frame-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.frame-wrap:hover .frame-fallback img { transform: scale(1.05); }

.gallery-caption {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown-light);
  text-align: center;
  font-style: italic;
}

.gallery-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--blush-light);
  border-radius: 4px;
  border: 1px solid var(--blush);
}
.gallery-note p { font-size: .9rem; }
.gallery-note a { color: var(--rose); border-bottom: 1px solid var(--blush); }
.gallery-note a:hover { color: var(--rose-dark); }

/* ── Services ───────────────────────────────────────────────── */
.services { background: var(--cream); }
.services h2 { margin-bottom: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  padding: 2.25rem 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--shadow);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: .6rem; }
.service-card p { font-size: .9rem; line-height: 1.75; }

/* ── Contact ────────────────────────────────────────────────── */
.contact { background: var(--cream-dark); }
.contact-cols { align-items: start; gap: 5rem; }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; line-height: 1.8; }

.contact-details { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.75rem; }
.contact-item { display: flex; align-items: center; gap: .85rem; font-size: .9rem; color: var(--text-light); }
.contact-icon { font-size: 1.1rem; color: var(--rose); flex-shrink: 0; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown-light);
  font-weight: 400;
}
label span { color: var(--rose); }

input, select, textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 300;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input::placeholder, textarea::placeholder { color: #C0A898; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 133, 122, 0.15);
}

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C4857A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }

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

.full-btn { width: 100%; text-align: center; padding: 1.1rem; font-size: .85rem; border: none; cursor: pointer; }

/* File upload */
.optional { color: var(--text-light); font-size: .72rem; text-transform: none; letter-spacing: 0; }

.file-upload-wrap {
  position: relative;
  border: 1.5px dashed var(--blush);
  border-radius: 3px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.file-upload-wrap:hover { border-color: var(--rose); background: var(--blush-light); }
.file-upload-wrap.has-file { border-color: var(--sage); border-style: solid; }

.file-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  box-shadow: none;
  padding: 0;
}
.file-upload-wrap input[type="file"]:focus { outline: none; box-shadow: none; }

.file-upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.75rem 1rem;
  pointer-events: none;
}
.file-icon { font-size: 1.8rem; }
.file-label { font-size: .88rem; color: var(--brown-light); }
.file-hint  { font-size: .75rem; color: var(--text-light); }

.file-chosen {
  text-align: center;
  font-size: .82rem;
  color: var(--sage-dark);
  padding: .4rem 1rem .6rem;
  display: none;
}
.file-chosen.visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  color: var(--sage-dark);
  font-size: .9rem;
  padding: .75rem;
  background: rgba(168, 187, 164, 0.2);
  border: 1px solid var(--sage);
  border-radius: 3px;
}
.form-success.visible { display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--brown);
  color: rgba(255,255,255,0.8);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo { font-size: 1.4rem; color: var(--white); margin-bottom: .75rem; }
.footer-brand .logo span { color: var(--blush); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: .25rem;
}
.footer-links a {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blush-light); }

.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-top: .25rem;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--blush-light); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,0.35); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .two-col       { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-cols  { gap: 2.5rem; }
  .footer-inner  { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(254, 250, 246, 0.98);
    box-shadow: 0 8px 24px var(--shadow);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--brown-light) !important;
    padding: .85rem 2rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .nav-toggle { display: block; }
  #navbar { background: rgba(74, 45, 34, 0.75); }
  #navbar.scrolled { background: rgba(254, 250, 246, 0.97); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-pad { padding: 4rem 0; }
}
