/* =========================================================
   Danny Keys SoFlo — Static Site
   Dark theme, gold + teal accents, Playfair + Raleway fonts.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette (mirrors original Tailwind HSL tokens) */
  --background: hsl(220, 20%, 10%);
  --foreground: hsl(40, 10%, 92%);
  --card: hsl(220, 18%, 14%);
  --muted: hsl(220, 15%, 18%);
  --muted-strong: hsl(220, 15%, 22%);
  --border: hsl(220, 15%, 22%);

  --primary: hsl(45, 75%, 55%);           /* gold */
  --primary-foreground: hsl(220, 20%, 10%);
  --secondary: hsl(170, 55%, 45%);        /* teal */
  --accent: hsl(170, 55%, 45%);           /* same teal */

  /* Transparent helpers */
  --fg-80: hsla(40, 10%, 92%, 0.8);
  --fg-70: hsla(40, 10%, 92%, 0.7);
  --fg-60: hsla(40, 10%, 92%, 0.6);
  --fg-40: hsla(40, 10%, 92%, 0.4);

  --bg-80: hsla(220, 20%, 10%, 0.8);
  --bg-60: hsla(220, 20%, 10%, 0.6);
  --bg-40: hsla(220, 20%, 10%, 0.4);

  --primary-10: hsla(45, 75%, 55%, 0.1);

  --gold-gradient: linear-gradient(135deg, hsl(45, 75%, 55%), hsl(38, 80%, 45%));
  --dark-overlay: linear-gradient(180deg, hsla(220, 20%, 8%, 0.6) 0%, hsla(220, 20%, 8%, 0.8) 100%);

  --radius: 0.5rem;
  --container-max: 1400px;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  --font-elegant: 'Courgette', cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--foreground); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
p { color: var(--fg-70); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section { padding: 6rem 0; position: relative; }
.section-muted { background: hsla(220, 15%, 18%, 0.3); }
.section-features { background: var(--muted); position: relative; overflow: hidden; }
.section-contact { overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.text-center { text-align: center; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-foreground { color: var(--foreground); }

.rounded { border-radius: var(--radius); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3); }

.lead { font-size: 1.125rem; color: var(--fg-70); line-height: 1.65; margin-top: 1.5rem; }

/* Section heading block */
.section-heading { text-align: center; margin-bottom: 4rem; }
.section-heading .accent-line { width: 5rem; height: 4px; background: var(--primary); margin: 1rem auto 0; }
.section-sub { color: var(--fg-60); margin-top: 1rem; }

/* Underline link */
.link-underline {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity .2s;
}
.link-underline:hover { opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: opacity .2s, transform .2s;
  border-radius: 2px;
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-foreground);
}
.btn-gold:hover { opacity: 0.9; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(220, 15%, 22%, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}
.nav-links { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .nav-links { display: flex; flex: 1; }
  .nav-links-right { justify-content: flex-end; }
}
.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--fg-80);
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-palm { height: 2.5rem; width: auto; }
.nav-palm-left { transform: scaleX(-1); }
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--secondary);
  margin-top: 2px;
}

/* Mobile menu */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.navbar.open .nav-toggle .icon-menu { display: none; }
.navbar.open .nav-toggle .icon-close { display: block; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.navbar.open .mobile-menu { display: block; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.mobile-menu-inner a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--fg-80);
  padding: 0.5rem 0;
}
.mobile-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary) !important;
  margin-top: 0.5rem;
}

/* ---------- Floating Book Now ---------- */
.floating-book {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--gold-gradient);
  color: var(--primary-foreground);
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
  transition: transform .2s;
}
.floating-book:hover { transform: scale(1.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--dark-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 56rem;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--primary);
  margin-top: 0.5rem;
}
.hero-text {
  font-size: 1.125rem;
  color: var(--fg-80);
  margin: 1.5rem auto 0;
  max-width: 42rem;
}
.hero-logo { margin-top: 2rem; }
.hero-logo img {
  margin: 0 auto;
  width: 8rem;
  border-radius: var(--radius);
}
@media (min-width: 768px) { .hero-logo img { width: 11rem; } }
.hero .btn { margin-top: 2.5rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: hsla(220, 15%, 18%, 0.5);
  border-radius: var(--radius);
  transition: background .2s;
}
.service-item:hover { background: var(--muted); }
.service-item svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.service-item span {
  font-size: 0.875rem;
  color: var(--fg-80);
}

/* ---------- Our Story ---------- */
.story-grid { align-items: start; }
.team-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.team-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
}
.story-text > * + * { margin-top: 1.5rem; }
.story-text p { font-size: 1.125rem; color: var(--fg-70); line-height: 1.7; }
.story-text strong { color: var(--foreground); font-weight: 700; }
.story-text h3 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; }
.story-closing {
  text-align: center;
  font-family: var(--font-elegant);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  margin-top: 4rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.feature-card:hover img { transform: scale(1.1); }
.feature-overlay {
  position: absolute; inset: 0;
  background: var(--bg-40);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.feature-overlay h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  font-weight: 600;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--card);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.review-text {
  color: var(--fg-80);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: var(--bg-60);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  padding: 1rem;
  text-align: center;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--fg-80);
  transition: color .2s;
}
a.contact-item:hover { color: var(--primary); }
.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* Dot-pattern decorations */
.dot-pattern {
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  position: absolute;
  pointer-events: none;
}
.dot-tr {
  top: 0; right: 0;
  width: 16rem; height: 16rem;
  opacity: 0.2;
}
.dot-bl {
  bottom: 0; left: 0;
  width: 12rem; height: 12rem;
  opacity: 0.3;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.footer-brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--secondary);
  display: block;
  margin-top: 0.25rem;
}
.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-60);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a, .footer-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-60);
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--fg-40);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
/* Reveal on scroll (script adds .in-view) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .feature-card:hover img, .portfolio-item:hover img { transform: none; }
  html { scroll-behavior: auto; }
}
