/*
  =========================================================
  NJ STUDIO WEBSITE CSS
  ---------------------------------------------------------
  Easy Editing Guide:
  1. Change brand colours in the :root section below.
  2. Each website section is clearly separated with comments.
  3. Feature card hover colour can be changed in --feature-hover.
  =========================================================
*/

/* ========== 01. BRAND COLOURS & GLOBAL SETTINGS ========== */
:root {
  --body-bg: #fffaf1;
  --card-bg: #fffdf8;
  --soft-bg: #f6efe3;
  --text-dark: #17130f;
  --text-muted: #70675d;
  --border-light: rgba(23, 19, 15, 0.12);
  --brand-gold: #d2a63a;
  --brand-brown: #6e4525;
  --brand-brown-dark: #17130f;
  --white: #ffffff;

  /* Feature card default and hover colours */
  --feature-default: rgba(255, 253, 248, 0.86);
  --feature-hover: linear-gradient(135deg, #1a1511 0%, #5b351e 100%);

  --shadow-soft: 0 18px 50px rgba(42, 31, 18, 0.12);
  --shadow-strong: 0 28px 80px rgba(42, 31, 18, 0.20);
  --radius-small: 16px;
  --radius-medium: 26px;
  --radius-large: 38px;
  --container-width: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(210, 166, 58, 0.20), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, var(--body-bg) 45%, #f3eadc 100%);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container-width), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
  scroll-margin-top: 100px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 8px rgba(210, 166, 58, 0.16);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-dark);
}

h1 {
  max-width: 820px;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========== 02. BUTTONS ========== */
.btn,
.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.nav-call:hover {
  transform: translateY(-3px);
}

.btn-dark,
.nav-call {
  color: var(--white);
  background: var(--brand-brown-dark);
  box-shadow: 0 16px 36px rgba(23, 19, 15, 0.22);
}

.btn-dark:hover,
.nav-call:hover {
  background: var(--brand-brown);
  box-shadow: 0 20px 42px rgba(110, 69, 37, 0.28);
}

.btn-light {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--border-light);
  backdrop-filter: blur(18px);
}

.full-width {
  width: 100%;
}

/* ========== 03. HEADER / NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 56px;
  height: 42px;
  object-fit: contain;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 14px;
  letter-spacing: 0.10em;
}

.brand-text small {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(23, 19, 15, 0.68);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
  background: rgba(210, 166, 58, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-brown-dark);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 999px;
}

/* ========== 04. HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding-top: 140px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 250, 241, 0.84) 42%, rgba(255, 250, 241, 0.20) 100%),
    linear-gradient(0deg, rgba(23, 19, 15, 0.34), transparent 45%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 410px;
  align-items: end;
  gap: 34px;
}

.hero-copy p:not(.section-tag) {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: var(--radius-medium);
  background: rgba(255, 250, 241, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-strong);
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.hero-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.hero-card span {
  color: var(--text-muted);
  font-weight: 700;
}

.hero-card strong {
  color: var(--brand-brown);
}

/* ========== 05. ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-image {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow-soft);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(210, 166, 58, 0.22);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 530px;
  object-fit: cover;
  border-radius: 28px;
}

.about-content > p:not(.section-tag) {
  max-width: 600px;
  font-size: 17px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.about-highlights div {
  padding: 24px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.70);
}

.about-highlights strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-brown);
  font-size: 34px;
  line-height: 1;
}

.about-highlights span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

/* ========== 06. FEATURES SECTION ========== */
.features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(246, 239, 227, 0.82));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.feature-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(23, 19, 15, 0.10);
  border-radius: var(--radius-medium);
  background: var(--feature-default);
  box-shadow: 0 14px 40px rgba(42, 31, 18, 0.08);
  transition: transform 0.30s ease, box-shadow 0.30s ease, background 0.30s ease, border-color 0.30s ease;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--brand-gold);
  background: rgba(23, 19, 15, 0.90);
  font-weight: 900;
  transition: background 0.30s ease, color 0.30s ease, transform 0.30s ease;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: color 0.30s ease;
}

.feature-card p {
  transition: color 0.30s ease;
}

/* All cards have same default colour. Only mouse hover changes the card colour. */
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(210, 166, 58, 0.50);
  background: var(--feature-hover);
  box-shadow: 0 28px 70px rgba(23, 19, 15, 0.22);
}

.feature-card:hover .feature-icon {
  color: var(--text-dark);
  background: var(--brand-gold);
  transform: rotate(-6deg) scale(1.05);
}

.feature-card:hover h3,
.feature-card:hover p {
  color: var(--white);
}

/* ========== 07. GALLERY SECTION ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--soft-bg);
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(42, 31, 18, 0.08);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.50s ease, filter 0.50s ease;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 19, 15, 0.76);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.30s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.06) contrast(1.04);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 08. CONTACT SECTION ========== */
.contact {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-content > p:not(.section-tag) {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-list a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.contact-list span {
  color: var(--brand-brown);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: 18px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background: var(--card-bg);
  padding: 15px 16px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(210, 166, 58, 0.16);
}

.contact-form textarea {
  resize: vertical;
}

/* ========== 09. FOOTER ========== */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer img {
  width: 58px;
}

.footer p,
.footer a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.footer a:hover {
  color: var(--brand-brown);
}

/* ========== 10. LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(14, 11, 8, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 84vh;
  border-radius: var(--radius-medium);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--text-dark);
  background: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ========== 11. SCROLL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.delay-1 {
  transition-delay: 0.10s;
}

.delay-2 {
  transition-delay: 0.20s;
}

/* ========== 12. RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .nav-call {
    display: none;
  }

  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }

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

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

@media (max-width: 780px) {
  .section {
    padding: 76px 0;
  }

  .site-header {
    top: 10px;
  }

  .navbar {
    border-radius: 28px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 250, 241, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 70px;
  }

  .hero-bg::after {
    background: rgba(255, 250, 241, 0.86);
  }

  .hero-card img {
    height: 250px;
  }

  .about-image img {
    height: 360px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-content,
  .footer-content div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container-width));
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: 47px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-card,
  .contact-form {
    padding: 24px;
  }
}

/* ========== 13. PHP FORM, MAP & SEO ACCESSIBILITY EXTRAS ========== */
.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 999;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-brown-dark);
  transform: translateY(-120px);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.no-scroll {
  overflow: hidden;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(210, 166, 58, 0.24), transparent 32%);
  opacity: 0;
  transition: opacity 0.30s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.map-card {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 40px rgba(42, 31, 18, 0.08);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.form-alert.error {
  color: #6f1d1b;
  background: #fff1ef;
  border: 1px solid rgba(111, 29, 27, 0.18);
}

.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-note {
  margin-top: -4px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form input.field-error,
.contact-form textarea.field-error {
  border-color: #b33939;
  box-shadow: 0 0 0 4px rgba(179, 57, 57, 0.12);
}

/* ========== 14. 404 PAGE ========== */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(circle at top left, rgba(210, 166, 58, 0.22), transparent 30%),
    linear-gradient(135deg, #fffdf8, #f3eadc);
}

.error-page .container {
  max-width: 760px;
}

.error-page p:not(.section-tag) {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 18px;
}
