/* ============================================================
   Maison One — Beauty Salon, Clontarf Dublin
   Starter Package | Avora Digital
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #8C6B5D;
  --color-primary-dark: #6B4F44;
  --color-primary-light: #B8998E;
  --color-accent: #D4A89A;
  --color-accent-glow: rgba(212, 168, 154, 0.4);
  --color-dark: #2C2220;
  --color-text: #4A3F3C;
  --color-text-light: #7A6E6B;
  --color-bg: #FDF9F7;
  --color-bg-alt: #F5EDEA;
  --color-white: #FFFFFF;
  --color-border: #E8DDD9;
  --color-success: #5B8C6B;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --section-pad-desktop: 100px 0;
  --section-pad-mobile: 60px 0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(44, 34, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 34, 32, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 34, 32, 0.12);
  --shadow-hover: 0 20px 56px rgba(44, 34, 32, 0.15);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: 0.875rem;
}
.skip-link:focus { top: 16px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 20px; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 107, 93, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(140, 107, 93, 0.2);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}
.nav-phone svg { width: 16px; height: 16px; }

.nav-cta { margin-left: 8px; padding: 10px 24px; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  padding: 100px 40px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { right: 0; }

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:hover { color: var(--color-primary); padding-left: 8px; }

.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 34, 32, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-overlay.active { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroBgFade 0.8s ease forwards;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 34, 32, 0.75) 0%, rgba(44, 34, 32, 0.3) 60%, rgba(140, 107, 93, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 60px 0;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: slideUp 0.7s 0.3s ease both;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.7s 0.4s ease both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
  opacity: 0;
  animation: slideUp 0.7s 0.6s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  animation: slideUp 0.7s 0.8s ease both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: slideUp 0.7s 1s ease both;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-trust-item .stars { color: #F5C542; font-size: 1rem; }
.hero-trust-item strong { font-size: 1.3rem; color: var(--color-white); }

.hero-trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-pad-desktop);
  background: var(--color-white);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body { padding: 28px; }

.service-card-body h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card-body p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 10px; }

/* Services CTA row */
.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- About / Trust ---------- */
.about {
  padding: var(--section-pad-desktop);
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-img-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content .section-subtitle { margin-bottom: 24px; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
}
.about-value h4 { margin-bottom: 4px; font-size: 1rem; }
.about-value p { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-pad-desktop);
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(140, 107, 93, 0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }
.form-error {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}
.form-error.visible { display: block; }

.form-submit { align-self: flex-start; }

.contact-info-block { display: flex; flex-direction: column; gap: 28px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.contact-detail h4 { margin-bottom: 4px; }
.contact-detail p { font-size: 0.93rem; color: var(--color-text-light); margin-bottom: 0; }
.contact-detail a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--color-primary-dark); }

.map-wrapper {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-wrapper iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-contact-item a { color: rgba(255, 255, 255, 0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Sticky Mobile Phone Bar ---------- */
.sticky-phone-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 900;
  display: none;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUpBar 0.4s 2s ease both;
}

.sticky-phone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 1rem;
}

.sticky-phone-inner .pulse-icon {
  animation: pulse 2s ease infinite 4s;
}

/* ---------- Animation Classes ---------- */
.fade-up    { opacity: 0; transform: translateY(40px); }
.fade-left  { opacity: 0; transform: translateX(-40px); }
.fade-right { opacity: 0; transform: translateX(40px); }
.fade-in    { opacity: 0; }
.scale-in   { opacity: 0; transform: scale(0.92); }

.animate {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Keyframes ---------- */
@keyframes heroBgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes slideUpBar {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrapper { max-width: 500px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero { min-height: auto; padding-top: 72px; padding-bottom: 0; }
  .hero-content { padding: 48px 0 56px; }

  .services { padding: var(--section-pad-mobile); }
  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .about { padding: var(--section-pad-mobile); }
  .about-values { grid-template-columns: 1fr; }

  .contact { padding: var(--section-pad-mobile); }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .sticky-phone-bar { display: block; }

  .hero-trust { gap: 16px; }
  .hero-trust-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .stat-number { font-size: 2rem; }
}
