/*
Theme Name: Hair Nature Group
Theme URI: https://hairnaturegroup.com/
Author: Hair Nature Group
Description: A lightweight custom block theme for the Hair Nature Group brochure site. Showcase only — no commerce. Exclusive Artego distributor for Australia and New Zealand.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hairnature
Tags: one-column, custom-colors, featured-images, block-patterns, block-styles, full-site-editing, translation-ready
*/

/* Hair Nature Group — monochrome palette matched to the logo. Dark surfaces use #0e0e0e. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --dark: #0e0e0e;
  --dark-text: #f3f3f3;
  --dark-muted: #9a9a9a;
  --dark-line: #2a2a2a;
  --placeholder: #8a8a8a;
  --font-display: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 1.5rem;
  --header-h: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

a { color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.85rem;
}

.header-logo img {
  height: 4.6rem;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Intro ---------- */

.intro {
  background: var(--dark);
  color: var(--dark-text);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 0 6rem;
}

.intro-inner {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-logo {
  width: min(26rem, 86%);
  height: auto;
  margin-bottom: 2rem;
}

.tagline {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(243, 243, 243, 0.42);
}

.intro-lead {
  margin: 0;
  max-width: 28rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-text);
}

/* ---------- Shared section chrome ---------- */

.section-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* ---------- Brands ---------- */

.brands {
  padding: 6.5rem 0 5rem;
  background: var(--bg);
}

.brand-card {
  padding: 0;
}

.brand-identity {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 1rem;
}

.brand-identity:hover .brand-caption,
.brand-identity:focus-visible .brand-caption {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.brand-logo {
  width: 13.5rem;
  height: auto;
}

.brand-caption {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-blurb {
  max-width: 36rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: minmax(220px, 32vw) minmax(220px, 32vw) minmax(280px, 38vw) auto auto;
  gap: 0.7rem;
}

.brand-gallery .cell {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.brand-gallery .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Feature: tall about-us portrait, two supporting frames beside it */
.brand-gallery .feature {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}

.brand-gallery .feature + .cell {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
}

.brand-gallery .feature + .cell + .cell {
  grid-column: 7 / 13;
  grid-row: 2 / 3;
}

/* Four model portraits */
.brand-gallery .portrait:nth-of-type(4) { grid-column: 1 / 4; grid-row: 3 / 4; }
.brand-gallery .portrait:nth-of-type(5) { grid-column: 4 / 7; grid-row: 3 / 4; }
.brand-gallery .portrait:nth-of-type(6) { grid-column: 7 / 10; grid-row: 3 / 4; }
.brand-gallery .portrait:nth-of-type(7) { grid-column: 10 / 13; grid-row: 3 / 4; }

.brand-gallery .wide {
  grid-column: 1 / 13;
  grid-row: 4 / 5;
  aspect-ratio: 21 / 7;
}

.brand-gallery .banner {
  grid-row: 5 / 6;
  aspect-ratio: 16 / 6;
}

.brand-gallery .banner:nth-of-type(9) { grid-column: 1 / 7; }
.brand-gallery .banner:nth-of-type(10) { grid-column: 7 / 13; }

.brand-gallery .oasis {
  background: #ececec;
}

.brand-gallery .oasis img {
  object-fit: contain;
  padding: 1.25rem 1rem;
}

/* ---------- About ---------- */

.about {
  padding: 5.5rem 0 6rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.about-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-bottom: 1.5rem;
}

.about p:not(.section-label) {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: 6rem 0 7rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.contact-inner { max-width: 58rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: 3.5rem 4.5rem;
  align-items: start;
}

.contact-grid .contact-details { margin-bottom: 0; }

.contact h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.contact-lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.contact-details {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-details li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.contact-kind {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value.placeholder {
  color: var(--placeholder);
  font-style: italic;
  font-size: 1.15rem;
}

.enquiry-form {
  display: grid;
  gap: 1.25rem;
}

.form-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.enquiry-form label {
  display: grid;
  gap: 0.4rem;
}

.enquiry-form label span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.enquiry-form input,
.enquiry-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0 0.65rem;
  border-radius: 0;
  width: 100%;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.enquiry-form textarea { resize: vertical; min-height: 7rem; }

.enquiry-form button {
  justify-self: start;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dark);
  border: 0;
  padding: 0.95rem 1.7rem;
  cursor: not-allowed;
  opacity: 0.55;
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: min(16.5rem, 70%);
  height: auto;
  margin-bottom: 1.75rem;
}

.footer-domain {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--dark-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dark-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root {
    --header-h: 5.4rem;
    --gutter: 1.25rem;
  }

  .header-logo img { height: 3.6rem; }

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

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

  /* Reset desktop 12-col placements; sibling/nth selectors are more specific. */
  .brand-gallery .cell,
  .brand-gallery .feature,
  .brand-gallery .feature + .cell,
  .brand-gallery .feature + .cell + .cell,
  .brand-gallery .portrait:nth-of-type(n),
  .brand-gallery .wide,
  .brand-gallery .banner:nth-of-type(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .brand-gallery .feature,
  .brand-gallery .wide,
  .brand-gallery .banner,
  .brand-gallery .banner:nth-of-type(n) {
    grid-column: 1 / -1;
  }

  .brand-gallery .feature { aspect-ratio: 3 / 4; }
  .brand-gallery .feature + .cell,
  .brand-gallery .feature + .cell + .cell { aspect-ratio: 1 / 1; }
  .brand-gallery .portrait { aspect-ratio: 3 / 4; }
  .brand-gallery .wide,
  .brand-gallery .banner { aspect-ratio: 2 / 1; }
  .brand-gallery .oasis img { padding: 1rem 0.75rem; }
}

@media (max-width: 600px) {
  :root {
    --header-h: 7.25rem;
    --gutter: 1.1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    padding-block: 0.7rem 0.75rem;
  }
  .header-logo img { height: 3.85rem; }
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 1.75rem;
  }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.22em; }

  .intro { padding: 4rem 0 4.5rem; min-height: calc(100svh - var(--header-h)); }
  .intro-logo { width: min(18.5rem, 92%); margin-bottom: 1.5rem; }
  .intro-lead { font-size: 1.05rem; }

  .brands, .about, .contact { padding-block: 4.25rem; }

  .brand-gallery { gap: 0.5rem; }
  .brand-gallery .oasis img { padding: 0.75rem 0.5rem; }

  .brand-logo { width: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav a::after { transition: none; }
}


/* ---------- WordPress block / layout resets ---------- */

.wp-site-blocks { padding: 0; }
.wp-block-group { margin-block: 0; }
.wp-block-template-part { margin: 0; }
.wp-block-group.alignfull,
.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.brand-gallery .wp-block-image,
.brand-gallery figure { margin: 0; }

.site-header .wp-block-navigation {
  display: flex;
  gap: 2rem;
}
.site-header .wp-block-navigation a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
