/* ============================================================
   NYREE DESIGNS — Global Stylesheet
   ============================================================ */

/* ============================================================
   CUSTOM FONTS
   ============================================================ */
@font-face {
  font-family: 'Editors Note Display';
  src: url('../fonts/EditorsNoteDisplay-Hairline.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Editors Note Display';
  src: url('../fonts/EditorsNoteDisplay-HairlineItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Texta';
  src: url('../fonts/Texta Medium-ef2a.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'La Luxes Script';
  src: url('../fonts/LaLuxesScript-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   COLOUR PALETTE — change colours here and they update EVERYWHERE
   ============================================================
   --bg        = main page background (the sage green)
   --bg-alt    = slightly darker green used on the Services section background
   --dark      = very dark green, used for text, buttons, footer background
   --mid       = medium green, used for body/paragraph text
   --light     = lighter green, used for small labels and placeholders
   --border    = colour of lines/borders between things
   --accent    = same as --dark right now (used for highlights, underlines, bullet dashes)
   --accent-d  = even darker version of accent (used on hover states)
   --white     = pure white (used for card backgrounds, form inputs)
   --nav-h     = height of the top navigation bar (don't change unless nav looks wrong)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #B2BBAD;
  --bg-alt:   #A3ACA0;
  --dark:     #2A2E28;
  --mid:      #3D4439;
  --light:    #6B7568;
  --border:   #9BA59A;
  --accent:   #5C3D2A;
  --accent-d: #3B2A1A;
  --brown-dark:   #3B2A1A;
  --brown-mid:    #5C3D2A;
  --brown-light:  #8C6B52;
  --text:         #5C3D2A;
  --white:    #FFFFFF;
  --cream:    #fcf8ef;
  --brown:    #6c5c4d;
  --nav-h:    72px;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --font-heading:  'Editors Note Display', Georgia, serif; /* headlights / section titles */
  --font-body:     'Texta', system-ui, sans-serif;         /* paragraphs */
  --font-script:   'La Luxes Script', cursive;             /* special/accent text */

  --ease: cubic-bezier(0.4, 0, 0.2, 1); /* smoothness of animations — don't touch */
}

html { scroll-behavior: smooth; font-size: 16px; }

/* BODY — overall page background and default text colour */
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }


/* ============================================================
   TYPOGRAPHY — global text sizes for headings
   These apply across ALL pages
   ============================================================ */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 100; font-style: italic; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); } /* biggest heading, e.g. hero title */
h2 { font-size: clamp(2rem,   4vw, 3.2rem); } /* section headings */
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); } /* card titles */
em { font-style: italic; color: var(--accent); } /* italic coloured text, e.g. "before you do." in hero */

p + p { margin-top: 1rem; }

/* SECTION — wrapper used for each full-width block on a page */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); } /* gives a section a slightly different background colour — used on Services */

/* CONTAINER — centres content and limits width so it doesn't stretch too wide */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.mobile-only { display: none; }

/* EYEBROW TEXT — the small uppercase label above a heading, e.g. "ABOUT NYREE DESIGNS" */
.section__eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 100;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 1rem;
  -webkit-text-stroke: 0.4px currentColor;
}

/* SECTION HEADING — the large heading inside a section */
.section__heading {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 100;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

/* SECTION HEADER — centres the eyebrow + heading block at the top of a section */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}


/* ============================================================
   NAVIGATION — the fixed bar at the very top of every page
   Contains the logo on the left and the Home / Portfolio / Contact links on the right
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background: var(--bg);
}

/* Nav background — only shows once you scroll down the page */
.nav.scrolled {
  background:  rgb(178, 187, 173, 0.4); /* semi-transparent sage green */
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

/* Logo text in the nav (used as fallback if logo image doesn't load) */
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  display: flex;
  align-items: center;
}
.nav__logo span { color: var(--accent); }

/* Logo image in the nav */
.nav__logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  /* tint the cream PNG text to match the nav brown #5C3D2A */
  filter: brightness(0) saturate(100%) invert(22%) sepia(30%) saturate(600%) hue-rotate(345deg) brightness(80%);
}

/* The nav links: Home, Portfolio, Contact */
.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

/* Individual nav link text */
.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

/* The underline that slides in when you hover a nav link */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Hamburger menu button — only visible on mobile screens */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}


/* ============================================================
   FLASH MESSAGES — the pop-up notification that appears after submitting the contact form
   e.g. "Thanks! Your message has been sent."
   ============================================================ */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: slideDown 0.4s var(--ease) both;
}
.flash--success { border-left: 3px solid var(--accent); } /* green left border on success messages */
.flash__close {
  background: none; border: none;
  color: var(--light); cursor: pointer;
  font-size: 1rem; line-height: 1;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ============================================================
   HERO — HOMEPAGE ONLY
   The very first thing visitors see: full-screen section with the big heading
   "Design that speaks before you do." and the two buttons below it
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* ── HERO BACKGROUND IMAGE ──────────────────────────────
   Move the image by changing the four values below.
   right  = distance from the RIGHT edge  (bigger number = shifts more left)
   top    = distance from the TOP         (bigger number = lower down, use negative to go up)
   width  = how wide the image is         (bigger = fills more of the screen)
   height = how tall the image container is (100% = full hero height)
   ──────────────────────────────────────────────────────── */
.hero__bg-image {
  position: absolute;
  right:  2%;   /* ← move left/right */
  top:    5%;    /* ← move up/down    */
  width:  58%;   /* ← image size      */
  height: 100%;
  pointer-events: none;
}

.hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* ← ZOOM: change this number to zoom in (>100%) or out (<100%) */
  transform: scale(1.6);
  transform-origin: center center;
}

/* Gradient that fades the image into the cream background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--cream) 50%, rgba(252,248,239,0.55) 65%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
}

/* Small uppercase text above the main heading, e.g. "Creative Studio — UK Based" */
.hero__eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 100;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 1.5rem;
  -webkit-text-stroke: 0.4px currentColor;
}

/* The giant main heading "Design that speaks before you do." */
.hero__heading {
  font-size: clamp(2.6rem, 5.25vw, 4.9rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero__heading-script {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 100;
}
.hero__heading-body {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 100;
}

/* The paragraph text below the heading */
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* The row containing "View Portfolio" and "Work With Me" buttons */
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* "Scroll" text + animated line at the bottom-left of the hero */
.hero__scroll {
  position: absolute;
  bottom: 40px; left: 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
}
.hero__scroll-line {
  width: 48px; height: 1px;
  background: var(--light);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; width: 48px; }
  50%       { opacity: 1;   width: 72px; }
}


/* ============================================================
   BUTTONS — used across all pages
   .btn--primary = cream button (e.g. "View Portfolio", "Start a Project")
   .btn--ghost   = cream outline button (e.g. "Work With Me")
   .btn--light   = white button on dark backgrounds (e.g. "Get a Quote" in the dark banner)
   .btn--submit  = the "Send Message" button on the contact form
   .btn--cream   = the cream button used in the Instagram CTA section (e.g. "Follow on Instagram")
     — this is a custom style just for that section, since the hover state is different from the main primary button
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); } /* lifts slightly on hover */

/* Primary button — cream background */
.btn--primary {
  background: var(--bg);
  color: var(--cream);
  border-color: var(--border);
}
.btn--primary:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

/* Ghost button — same cream but slightly transparent look */
.btn--ghost {
  background: var(--bg);
  color: var(--cream);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

/* Light button — used on the dark "Ready to elevate your brand?" banner */
.btn--light {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--bg-alt);
}
.btn--light:hover {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--bg-alt);
}

.btn--cream {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--bg-alt);
}
.btn--cream:hover {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--bg-alt);
}

/* Submit button — full-width, used for the "Send Message" button on the contact form */
.btn--submit { width: 100%; justify-content: center; margin-top: 8px; color: var(--white); }


/* ============================================================
   MARQUEE — HOMEPAGE ONLY
   The scrolling text strip between the hero and the About section
   Shows: "Brand Identity • Logo Design • Print Design • Training Manuals ..."
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite; /* 28s = how long one full scroll takes */
}

/* Each word/phrase in the scrolling strip */
.marquee__track span {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
  color: var(--cream);
}
/* The bullet dot between words in the marquee */
.marquee__track .dot { color: var(--cream); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   ABOUT SECTION — HOMEPAGE ONLY
   The two-column section with Holly's photo on the left
   and the intro text + stats (1000+ Projects, 5★, 7+ Years) on the right
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 80px;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image-frame {
  aspect-ratio: 4/5; /* portrait shape */
  overflow: hidden;
  border-radius: 2px;
}

.about__image-frame img {
  transition: transform 0.6s var(--ease);
}
.about__image-frame:hover img { transform: scale(1.04); } /* subtle zoom on hover */

/* The dark box in the bottom-right corner of the photo showing "7K+ Instagram Followers" */
.about__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--bg);
  color: var(--white);
  padding: 20px 24px;
  text-align: center;
  border-radius: 2px;
}
/* The "7K+" number inside the badge */
.about__badge-num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 100;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--cream);
}
/* The "Instagram Followers" label inside the badge */
.about__badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}

.about__content { padding-right: 20px; }

/* The row of stats: "1000+ Projects | 5★ | 7+ Years" */
.about__stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* The big number in each stat, e.g. "1000+" */
.about__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--bg);
  line-height: 1;
}
/* The label below each stat number, e.g. "Projects Delivered" */
.about__stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 4px;
}


/* ============================================================
   SERVICES SECTION — HOMEPAGE ONLY
   The four white cards: Brand Identity, Print Design, Training Manuals, Social Media Branding
   They have a dark background colour when you hover over them
   ============================================================ */
.services .section__eyebrow {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.8rem;
  color: var(--white);
  -webkit-text-stroke: 0.4px var(--white);
  paint-order: stroke fill;
}
.services .section__heading {
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards in a row */
  gap: 1.5px;
}

/* Each individual service card */
.service-card {
  background: var(--cream);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
  cursor: default;
}

/* Card goes dark when hovered */
.service-card:hover {
  background: rgb(241, 237, 227);
  border-color: var(--dark);
}

/* Text inside the card turns white when the card is dark */
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-card__icon { color: var(--dark); }

/* The icon at the top of each card */
.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

/* Card title, e.g. "Brand Identity" */
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

/* Card description paragraph */
.service-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  transition: color 0.3s;
}


/* ============================================================
   PROCESS SECTION — HOMEPAGE ONLY
   Dark warm brown background with one large centred statement heading.
   No boxes — just the big text, matching Holly's brand reference image.
   ============================================================ */

/* The whole process section — dark brown background */
.process {
  background: var(--brown);
  padding: 120px 0; /* extra tall so the heading has breathing room */
}

/* Wrapper that centres the heading — full container width so text doesn't wrap early */
.process__statement {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* The big statement heading — large cream serif text */
.process__big-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem); /* sized so the first line fits on one row */
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
}

/* The italic words inside the heading — e.g. "beauticians & training academies" */
.process__big-heading em {
  font-style: italic;
  color: var(--cream); /* same cream, italic style comes from the font */
}


/* ============================================================
   CTA BANNER — HOMEPAGE ONLY
   The dark full-width band near the bottom of the homepage
   Text: "Ready to elevate your brand?" with the "Get a Quote" button
   ============================================================ */
.cta-banner {
  background: var(--bg); /* dark green background */
  padding: 80px 0 0;
}

.cta-banner__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* "Ready to elevate your brand?" heading */
.cta-banner__inner h2 {
  color: var(--cream);
  margin-bottom: 1rem;
}

/* Paragraph text inside the banner */
.cta-banner__inner p {
  color: rgba(255,255,255,0.6); /* 60% white = slightly faded */
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============================================================
   PAGE HERO — PORTFOLIO & CONTACT PAGES ONLY
   The top section of inner pages (not the homepage)
   e.g. on Portfolio: big "Portfolio" heading at the top
   e.g. on Contact: big "Let's Work Together" heading
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section__eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
}

/* The big heading on portfolio/contact pages */
.page-hero__heading {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

/* The subtitle text below the page heading */
.page-hero__sub {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 480px;
}


/* ============================================================
   PORTFOLIO PAGE — portfolio.html only
   The grid of work examples with filter buttons at the top
   ============================================================ */

/* Row of filter buttons: "All", "Branding", "Print", etc. */
.portfolio__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Each filter button */
.filter-btn {
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Filter button when active (selected) or hovered */
.filter-btn:hover,
.filter-btn.active {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

/* The 3-column grid of portfolio images */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
}

.portfolio__item {
  overflow: hidden;
  transition: opacity 0.4s, transform 0.4s;
}

/* Items hidden when a filter is active */
.portfolio__item.hidden {
  display: none;
}

/* The image container for each portfolio item */
.portfolio__thumb {
  position: relative;
  aspect-ratio: 1080 / 1320;
  overflow: hidden;
  background: transparent;
}

/* Blurred background — same image stretched to fill, blurred behind the main image */
.portfolio__blur-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.1); /* slightly scaled so blur doesn't leave white edges */
  opacity: 1;
  transition: none; /* never moves or changes on hover */
}

/* Main image — sits on top of the blur, shows full image without cropping */
.portfolio__thumb img:not(.portfolio__blur-bg) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.55s var(--ease);
}

/* Only zoom the main image on hover, not the blur background */
.portfolio__thumb:hover img:not(.portfolio__blur-bg) { transform: scale(1.06); }

/* The dark overlay that slides up over the image on hover, showing the project title */
.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: rgba(252,248,239,0.88); /* cream semi-transparent overlay */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0; /* hidden by default */
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

/* Overlay stays hidden on hover — no colour change, just the zoom */
.portfolio__thumb:hover .portfolio__overlay {
  opacity: 0;
  transform: translateY(0);
}

/* Category label on the overlay, e.g. "Branding" */
.portfolio__cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Project title on the overlay */
.portfolio__overlay h3 {
  color: var(--text);
  font-size: 1.2rem;
}

/* Project description on the overlay */
.portfolio__overlay p {
  color: rgba(42,46,40,0.7);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* The info note box at the bottom of the portfolio page */
.portfolio__note {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent); /* thick left border accent */
  background: var(--bg-alt);
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 2px;
}

.portfolio__note code {
  font-family: monospace;
  background: var(--border);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.82rem;
}

.portfolio__note a {
  color: var(--accent);
  text-decoration: underline;
}


/* ============================================================
   INSTAGRAM CTA SECTION — HOMEPAGE ONLY
   Two-column layout: left = text + button, right = 3x3 grid of Instagram photos
   ============================================================ */
.ig-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Heading and paragraph on the left side */
.ig-cta__content h2 { margin-bottom: 1rem; }

.ig-cta__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ig-cta__content p {
  color: var(--cream);
  margin-bottom: 2rem;
}
.ig-cta__content h2 { color: var(--cream); }
.ig-cta .section__eyebrow { color: var(--cream); }

/* The 3x3 Instagram photo grid on the right side */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

/* Each individual Instagram square */
.ig-grid__item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.ig-grid__item:hover { opacity: 0.8; }


/* ============================================================
   INSTAGRAM LIVE FEED — portfolio page
   ============================================================ */
.ig-feed__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ig-feed__header h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.ig-feed__header h2 a:hover { color: var(--accent); }

.ig-feed__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ig-feed__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
}

.ig-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.ig-feed__item:hover img { transform: scale(1.05); }

.ig-feed__hover {
  position: absolute;
  inset: 0;
  background: rgba(42, 46, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.ig-feed__item:hover .ig-feed__hover { opacity: 1; }

.ig-feed__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   CONTACT PAGE — contact.html only
   Packages carousel on top, form below
   ============================================================ */

/* ── PACKAGES CAROUSEL ── */
.pkg-carousel {
  margin-bottom: 60px;
}

/* Row with tabs on left and arrows on right */
.pkg-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}


/* Arrow buttons */
.pkg-carousel__arrows {
  display: flex;
  gap: 8px;
}

.pkg-arrow {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkg-arrow:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Hides the overflow so only 3 cards show at once */
.pkg-carousel__track-wrap {
  overflow: hidden;
}

/* The sliding row of all 7 cards */
.pkg-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s var(--ease);
}

/* Each card is exactly 1/3 of the track width */
.pkg-carousel__track .package {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

@media (max-width: 768px) {
  .pkg-carousel__track .package {
    flex: 0 0 100%;
  }
}

/* Form heading */
.contact__form-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── PRICING PACKAGES shared styles ── */
.packages {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Each pricing package box */
.package {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
}

/* Package box on hover */
.package:hover {
  border-color: var(--accent);
  background: rgba(178,187,173,0.06);
}

/* The highlighted/featured package (shown with a coloured border) */
.package--featured {
  border-color: var(--accent);
  background: rgba(178,187,173,0.10);
}

.package__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Package title */
.package__header h3 {
  font-size: 1rem;
  font-weight: 500;
}

/* Small tag badge on a package, e.g. "Most Popular" */
.package__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 2px;
}

/* Gold/accent-coloured version of the tag */
.package__tag--gold {
  background: var(--accent);
}

/* Description text inside a package */
.package p {
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 10px;
}

/* Bullet list inside a package */
.package ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text);
}

.package ul li {
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

/* The "—" dash before each list item */
.package ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}


.package__price {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ── ENQUIRY FORM (right column on contact page) ── */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* A row that places two form fields side by side, e.g. First Name + Last Name */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Makes a field span the full width of the form */
.form__group--full { grid-column: 1 / -1; }

/* Form field labels, e.g. "Your Name", "Email" */
label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.required { color: var(--accent); }  /* the red * on required fields */

input.input--error {
  border-color: #c0392b;
  background: #fff8f8;
  outline: none;
}
.optional  { color: var(--light); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* All form input fields, text areas, and dropdowns */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

/* Placeholder text inside inputs, e.g. "Your full name" */
input::placeholder, textarea::placeholder { color: var(--light); }

/* Input border glows when you click into it */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178,187,173,0.15);
}

/* The message text area — taller than a normal input */
textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

/* Dropdown wrapper (the service type dropdown) */
.select-wrap {
  position: relative;
}

.select-wrap select { padding-right: 40px; cursor: pointer; }

/* The little arrow on the right of the dropdown */
.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  pointer-events: none;
  font-size: 0.9rem;
}


/* ============================================================
   FOOTER — appears at the bottom of every page
   Dark background with the logo, tagline, Instagram link, and copyright
   ============================================================ */
.footer {
  background: var(--bg); /* dark green background */
  padding: 32px 0 40px;
  text-align: center;
}

.footer__inner {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Logo text in the footer (fallback if logo image doesn't load) */
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer__logo span { color: var(--accent); }

/* Logo image in the footer — replace static/images/logo-light.png with your light logo */
.footer__logo-img {
  height: 56px;  /* change this number to resize the footer logo */
  width: auto;
  object-fit: contain;
}

/* "Branding • Print • Training Manuals" tagline below the footer logo */
.footer__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgb(252,248,239);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Row of links in the footer: Instagram, Get in Touch */
.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgb(252,248,239,1);
  transition: color(var(--white));
}
.footer__links a:hover { color: var(--brown); }

/* "© 2026 Nyree Designs. All rights reserved." */
.footer__copy {
  font-size: 0.75rem;
  color: rgb(252,248,239);
}


/* ============================================================
   SCROLL REVEAL — affects every section on every page
   Elements start invisible and fade/slide in as you scroll down
   If you want to disable this effect, set opacity: 1 and remove the transform
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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


/* ============================================================
   RESPONSIVE — adjustments for tablets and mobile phones
   These rules only kick in when the screen is smaller than the widths below
   You generally don't need to change anything here
   ============================================================ */

/* Tablet (screens narrower than 1024px) */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 60px; } /* about section stacks vertically */
  .about__content { padding-right: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); } /* 2 service cards per row instead of 4 */
  .contact__grid  { grid-template-columns: 1fr; }            /* contact page stacks vertically */
  .ig-cta__inner  { grid-template-columns: 1fr; gap: 48px; } /* instagram section stacks vertically */
  .ig-feed__grid  { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile (screens narrower than 768px) */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav — the full-screen menu that slides in from the right */
  .nav__links {
    position: fixed;
    inset: 0; top: var(--nav-h);
    background: #B2BBAD;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; }
  .nav__burger { display: flex; } /* show the hamburger button on mobile */

  /* When menu is open, always show solid green nav regardless of scroll position */
  .nav:has(.nav__links.open) {
    background: #B2BBAD !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .services__grid { grid-template-columns: 1fr; } /* 1 service card per row on mobile */

  /* Process section heading scales down on mobile */
  .process { padding: 80px 0; }
  .process__big-heading { font-size: clamp(1rem, 4vw, 1.5rem); }

  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }

  .form__row { grid-template-columns: 1fr; } /* form fields stack vertically */

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

  /* Slightly smaller hero heading on mobile */
  .hero__heading { font-size: clamp(2.8rem, 10vw, 4.5rem); }

  /* Reduce gap between hero buttons and marquee */
  .hero { min-height: unset; padding-bottom: 32px; }

  /* Show mobile-only line breaks */
  .mobile-only { display: block; }

  .about__badge { bottom: -16px; right: 16px; }

  /* Hero background fills full width on mobile */
  .hero__bg-image {
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
  }

  .hero__bg-image img {
    transform: scale(1);
    object-position: center top;
  }

  /* Gradient fades from cream at bottom so text stays readable */
  .hero::before {
    background: linear-gradient(to top, var(--cream) 30%, rgba(252,248,239,0.7) 60%, transparent 100%);
  }
}

/* Small mobile (screens narrower than 480px) */
@media (max-width: 480px) {
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__ctas { flex-direction: column; }          /* buttons stack vertically */
  .hero__ctas .btn { text-align: center; justify-content: center; }
}

/* ── Intro overlay animation ─────────────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #b7beae;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFadeOut 0.7s ease forwards;
  animation-delay: 1.1s;
  pointer-events: none;
}

#intro-logo {
  width: min(280px, 55vw);
  height: auto;
  animation: introLogoIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introLogoIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes introFadeOut {
  from { opacity: 1; visibility: visible; }
  to   { opacity: 0; visibility: hidden; }
}
