/* Roja Decorators — Distinctive one-page landing
   Aesthetic: Refined, warm, editorial with rose motif */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --cream: #FBF8F3;
  --cream-dark: #F2EDE6;
  --rose: #A85F6A;
  --rose-light: #E8D4D8;
  --rose-deep: #7E4550;
  --charcoal: #2D2A26;
  --text: #3D3935;
  --text-muted: #6B6560;
  --gold: #B8926B;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.5rem;
  --shadow: 0 4px 24px rgba(45, 42, 38, 0.08);
  --shadow-hover: 0 12px 40px rgba(45, 42, 38, 0.12);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle grain overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 95, 106, 0.08);
  transition: padding 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--rose); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--rose); }

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.3s var(--ease-out);
}

.nav-menu a:hover::after { width: 100%; }

.nav-menu a.gallery-link { color: var(--rose); }
.nav-menu a.gallery-link::after { display: none; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--rose-light); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 50vmin;
  height: 50vmin;
  background: radial-gradient(circle, var(--rose-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.8s var(--ease-out) forwards;
}

.hero-content .reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { animation-delay: 0.25s; }
.hero-content .reveal:nth-child(3) { animation-delay: 0.4s; }
.hero-content .reveal:nth-child(4) { animation-delay: 0.55s; }
.hero-content .reveal:nth-child(5) { animation-delay: 0.7s; }
.hero-content .reveal:nth-child(6) { animation-delay: 0.85s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-title .tamil { font-style: italic; color: var(--rose-deep); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 1.75rem;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hero-cta:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-visual {
  position: relative;
  opacity: 0;
  transform: translateX(24px);
  animation: reveal 0.8s var(--ease-out) 0.3s forwards;
  background: linear-gradient(145deg, var(--rose-light) 0%, rgba(232, 212, 216, 0.4) 50%, var(--cream-dark) 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-img,
.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(168, 95, 106, 0.12);
}

.hero-panel {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--rose-light) 0%, rgba(232, 212, 216, 0.5) 50%, var(--cream-dark) 100%);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(168, 95, 106, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168, 95, 106, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

/* ----- Sections common ----- */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 2rem;
}

/* ----- About ----- */
.about {
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(45, 42, 38, 0.06);
}

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

.about-inner--text-only {
  grid-template-columns: 1fr;
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 50ch;
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 1rem;
}

.about-image {
  position: relative;
  justify-self: end;
}

.about-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  left: 12px;
  bottom: 12px;
  border: 2px solid var(--rose-light);
  border-radius: var(--radius);
  z-index: -1;
}

/* ----- Why Choose Us ----- */
.why {
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(45, 42, 38, 0.06);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.why-item {
  padding: 1.5rem 0;
  border-left: 3px solid var(--rose-light);
  padding-left: 1.5rem;
}

.why-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Gallery preview (home) ----- */
.gallery-preview {
  background: linear-gradient(165deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}

.gallery-preview-desc {
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

.gallery-preview-cta {
  margin-top: 0.5rem;
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(168, 95, 106, 0.1);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rose-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-light);
  color: var(--rose-deep);
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

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

/* ----- Contact ----- */
.contact {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p { margin: 0 0 1rem; color: var(--text-muted); }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-list a:hover { color: var(--rose); }

.contact-list .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-light);
  color: var(--rose-deep);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-address {
  font-style: normal;
  max-width: 22ch;
}

/* ----- Footer ----- */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(45, 42, 38, 0.08);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- Gallery page ----- */
.page-gallery .nav { position: relative; }
.page-gallery .nav.scrolled { box-shadow: none; }

.gallery-hero {
  padding: 5rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.gallery-hero .section-title { margin-bottom: 0.5rem; }
.gallery-hero .section-label { margin-bottom: 0.25rem; }

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--rose);
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}

.gallery-back:hover { gap: 0.75rem; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(45, 42, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-cta { margin: 0 auto; }
  .hero-visual { order: -1; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; justify-self: center; }
  .about-image::before { left: 50%; transform: translateX(-50%); right: auto; width: calc(100% + 24px); max-width: 380px; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* Mobile: hamburger menu */
@media (max-width: 768px) {
  .nav { padding: 0.75rem 1rem; backdrop-filter: none; }
  .nav-inner { position: relative; min-width: 0; }
  .nav-logo { font-size: 1.25rem; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(280px, 85vw);
    max-width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: var(--cream);
    border-left: 1px solid rgba(168, 95, 106, 0.12);
    box-shadow: -4px 0 24px rgba(45, 42, 38, 0.15);
    padding: 5rem 1.25rem 1.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), visibility 0.3s;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-wrap.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-wrap .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav-wrap .nav-menu li {
    border-bottom: 1px solid rgba(45, 42, 38, 0.08);
  }
  .nav-wrap .nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(168, 95, 106, 0.15);
  }
  .nav-wrap .nav-menu a:hover,
  .nav-wrap .nav-menu a:focus {
    color: var(--rose-deep);
  }
  .nav-wrap .nav-menu a.gallery-link {
    color: var(--rose-deep);
  }
  .nav-wrap .nav-menu a::after {
    display: none;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 38, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 98;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .hero { padding: 5rem 1rem 3rem; min-height: auto; padding-top: 5rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  section { padding: 3rem 1rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .gallery-grid { padding: 1rem; grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
