/* =============================================
   DIVINE FLOWERS & GIFTS — Florist, Oshawa
   Palette: Deep Forest (#1B3A2B)
            Warm Ivory (#FDF8F0)
            Rose Gold (#E8A87C)
   Type:    Playfair Display (display)
            Plus Jakarta Sans (body)
   ============================================= */

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

/* ---- CUSTOM PROPERTIES ---- */
:root {
  /* Palette */
  --green: #1B3A2B;
  --green-light: #2A5A3F;
  --ivory: #FDF8F0;
  --ivory-dark: #F5EDE0;
  --rose-gold: #E8A87C;
  --rose-gold-light: #F0C4A0;
  --rose-gold-dark: #D48A5A;
  --text: #2C2418;
  --text-muted: #7A6E5E;
  --text-on-dark: #FDF8F0;
  --text-on-dark-muted: rgba(253, 248, 240, 0.7);
  --border: #E5D9CC;
  --white: #FFFFFF;

  /* Typography */
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p { max-width: 65ch; }
.small { font-size: 0.875rem; color: var(--text-muted); }

/* ---- UTILITY ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.8s var(--ease);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 43, 0.3) 0%,
    rgba(27, 58, 43, 0.85) 60%,
    var(--green) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 800px;
  animation: heroFadeIn 1.2s var(--ease) forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--space-md);
}

.hero h1 {
  color: var(--text-on-dark);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--rose-gold);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.35);
}

.btn-primary:hover {
  background: var(--rose-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 168, 124, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--text-on-dark-muted);
}

.btn-outline:hover {
  border-color: var(--text-on-dark);
  background: rgba(253, 248, 240, 0.08);
  transform: translateY(-2px);
}

.btn-phone {
  font-weight: 500;
}

/* ---- SECTION BASE ---- */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto;
}

/* ---- SOCIAL PROOF / REVIEWS ---- */
.reviews-section {
  background: var(--green);
  color: var(--text-on-dark);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-gold-light), var(--rose-gold));
  opacity: 0.6;
}

.reviews-section .section-header h2 {
  color: var(--text-on-dark);
}

.reviews-section .section-header p {
  color: var(--text-on-dark-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reviews-grid .review-card:first-child {
    grid-column: 1 / -1;
  }
}

.review-card {
  background: rgba(253, 248, 240, 0.06);
  border: 1px solid rgba(253, 248, 240, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease);
}

.review-card:hover {
  background: rgba(253, 248, 240, 0.1);
  transform: translateY(-3px);
}

.review-stars {
  color: var(--rose-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
  quotes: "“" "”" "‘" "’";
}

.review-text::before { content: "“"; }
.review-text::after { content: "”"; }

.review-author {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 58, 43, 0.08);
  border-color: var(--rose-gold-light);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

@media (min-width: 640px) {
  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
}

/* ---- HOURS & INFO ---- */
.info-section {
  background: var(--ivory-dark);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--border);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--rose-gold-light);
}

.info-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.info-card address strong {
  color: var(--text);
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table .today {
  font-weight: 600;
  color: var(--green);
}

/* ---- CONTACT FORM ---- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--body);
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.15);
}

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

.form-status {
  text-align: center;
  font-size: 0.95rem;
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.form-status.success {
  color: var(--green);
  background: rgba(27, 58, 43, 0.06);
}

.form-status.error {
  color: #b33a3a;
  background: rgba(179, 58, 58, 0.06);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--green);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  color: var(--text-on-dark);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose-gold);
  margin-bottom: var(--space-md);
}

.footer-links ul li {
  margin-bottom: var(--space-sm);
}

.footer-links ul li a {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}

.footer-links ul li a:hover {
  color: var(--rose-gold);
}

.footer-contact p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--rose-gold);
  transition: opacity var(--duration) var(--ease);
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 248, 240, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.footer-bottom .attribution {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-bottom .attribution a {
  color: var(--text-on-dark-muted);
  transition: opacity var(--duration) var(--ease);
}

.footer-bottom .attribution a:hover {
  opacity: 1;
  color: var(--rose-gold);
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FOCUS ---- */
:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 3px;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero-content { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE TWEAKS ---- */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section {
    padding: var(--space-xl) 0;
  }
  .info-card {
    padding: var(--space-lg);
  }
}
