/* ============================================================
   HANU REDDY STUDIOS — stylesheet
   ============================================================ */

:root {
  --cream: #fcf6e6;
  --dark: #222222;
  --ink: #1c1c1c;
  --ink-soft: #4a4642;
  --white: #ffffff;
  --wood: #8a4b2b;
  --wood-light: #b97a4a;
  --line: rgba(28, 28, 28, 0.12);

  --font-heading: 'Forum', serif;
  --font-body: 'Poppins', sans-serif;

  --section-pad: clamp(3rem, 6vw, 6rem);
  --container-max: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

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

.section-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.section-heading.light { color: var(--white); }

.section-subheading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--ink);
}

.section-subheading.light { color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--wood);
  transition: right 0.25s ease;
}

.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0) 55%);
}

.hero-content {
  position: absolute;
  left: clamp(1.25rem, 6vw, 6rem);
  bottom: clamp(1.5rem, 6vw, 4rem);
  max-width: 620px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(40, 34, 30, 0.42);
  backdrop-filter: blur(2px);
  color: var(--white);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  margin: 0 0 0.6rem;
}

.hero-content p {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  max-width: 46ch;
}

/* ============================================================
   ABOUT US
   ============================================================ */

.about-section { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 1.1rem;
}

.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.collage-item { overflow: hidden; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collage-item:hover img { transform: scale(1.05); }

.item-1 { grid-row: span 2; aspect-ratio: 342/386; }
.item-2 { aspect-ratio: 330/398; }
.item-3 { grid-row: span 2; aspect-ratio: 342/398; }
.item-4 { aspect-ratio: 330/398; }

/* ============================================================
   OUR MASTERPIECE
   ============================================================ */

.masterpiece-section { background: var(--white); }

.masterpiece-text {
  max-width: 900px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.masterpiece-text p {
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.masterpiece-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.mp-item { overflow: hidden; aspect-ratio: 4/3; border-radius: 2px; }
.mp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mp-item:hover img { transform: scale(1.05); }

/* ============================================================
   OUR CREATIONS
   ============================================================ */

.creations-section {
  background: var(--white);
  background-image: linear-gradient(to top, var(--white) 60%, var(--dark) 0%);
}

.creations-dark {
  background: var(--dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}

.creations-grid {
  columns: 4;
  column-gap: 1.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.cg-item {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.cg-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cg-item:hover img { transform: scale(1.06); }

/* ============================================================
   CONTACT US
   ============================================================ */

.contact-section { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-info .section-heading { margin-bottom: 1.8rem; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.contact-line .icon {
  width: 20px; height: 20px;
  color: var(--ink);
  flex-shrink: 0;
}

.contact-line:hover { color: var(--wood); }
.contact-line:hover .icon { color: var(--wood); }

.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-soft); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--wood);
}

.btn-send {
  align-self: flex-start;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-send:hover { background: var(--wood); }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success { color: #2e6b3e; }
.form-status.error { color: #a3352b; }

.botcheck-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 2.2rem;
}

.footer-logo .line {
  flex: 1;
  max-width: 340px;
  height: 1px;
  background: var(--line);
}

.footer-logo .logo { align-items: center; }
.footer-logo-img { height: clamp(30px, 4vw, 38px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-bottom p { margin: 0; }
.footer-bottom strong { color: var(--ink); font-weight: 600; }

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-to-top {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-to-top svg { width: 16px; height: 16px; }

.back-to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-collage { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }

  .masterpiece-gallery { grid-template-columns: repeat(2, 1fr); }

  .creations-grid { columns: 3; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .creations-grid { columns: 2; }

  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .about-collage { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .masterpiece-gallery { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .creations-grid { columns: 2; column-gap: 0.8rem; }
  .cg-item { margin-bottom: 0.8rem; }
  .hero-content { max-width: 90%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collage-item img, .mp-item img, .cg-item img { transition: none; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}
