/* Flowers4U - External stylesheet */

/* Reset some default styles */
*,
*::before,
*::after {box-sizing: border-box;}

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

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

/* Theme */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #1f2937;       /* slate-800 */
  --muted: #6b7280;      /* slate-500 */
  --brand: #9d174d;      /* rose-800 */
  --brand-2: #be185d;    /* rose-700 */
  --border: #e5e7eb;     /* slate-200 */
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,0.06);
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Utility classes */
.container { width: min(1100px, 92%); margin-inline: auto; }
.flow > * + * { margin-top: 1rem; }     /* vertical rhythm */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky; top: 0; z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .5rem;
}

.brand {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--brand);
  padding: 1rem .25rem;
}

.nav {
  list-style: none; margin: 0; padding: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  padding: .85rem .8rem;
  border-radius: 10px;
}
.nav a[aria-current="page"] { color: #fff; background: var(--brand); }
.nav a:hover { background: var(--surface); }

/* ---------- Mobile-friendly header & menu (replacement) ---------- */

/* Keep the menu container at the right */
.menu{ margin-left:auto; position:relative; }
.menu[open]{ isolation:isolate; }

/* Hide default disclosure arrow */
.menu-toggle{ list-style:none; cursor:pointer; user-select:none; }
.menu-toggle::-webkit-details-marker{ display:none; }
.menu-toggle::marker{ content:""; }

/* Hamburger button */
.menu-toggle{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem .8rem;
  border:1px solid var(--border);
  border-radius:10px; background:#fff; font-weight:700;
}
.menu-toggle:focus-visible{
  outline:3px solid rgba(190,24,93,.35); outline-offset:2px;
}

/* 3-bar icon (needs inner <span>) */
.hamburger{ width:20px; height:14px; position:relative; display:inline-block; }
.hamburger::before,
.hamburger::after,
.hamburger span{
  content:""; position:absolute; left:0; right:0; height:2px; background:var(--text);
}
.hamburger::before{ top:0; }
.hamburger span{ top:6px; }
.hamburger::after{ bottom:0; }

/* Menu panel media query */
@media (min-width: 720px) {
  .menu {
    display: block !important;
    position: static;
    margin-left: auto;
  }
  .menu-toggle {
    display: none !important;
  }
}
@media (max-width: 719px) {
        .nav-desktop {
            display: none;
        }
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero h1 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); line-height: 1.2; }

/* Grid & Cards */
.grid-3 {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}
.grid-2 {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card img { 
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; }
.card figcaption { margin-top: .6rem; }
.card small { display: block; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--brand-2);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin: .25rem;
}
.btn:hover { background: var(--brand-2); }
.btn-ghost {
  background: #fff; color: var(--brand);
  border-color: var(--brand);
}

/* Forms */
.form {
  display: grid; gap: 1rem;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
legend { padding: 0 .4rem; font-weight: 700; color: var(--brand); }
label { display: block; font-weight: 600; margin-bottom: .35rem; }

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, .15);
}

/* Footer */
.site-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-top: 3rem;
  z-index: 999;
}