/* =========================================================
   TURNER CUSTOM FURNITURE — CLEAN TYPE SYSTEM (NEWSREADER)
   Single flat background, single font family, no “bowl” gradients
   ========================================================= */

/* ---------- ROOT / VARIABLES ---------- */
:root{
  /* Colors */
  --bg: #0b0f12;
  --ink: #e9dfcf;
  --muted: #c9bca8;

  --paper: #d7c6aa;
  --paper-ink: #1b1a18;

  --line: rgba(233,223,207,.18);
  --line2: rgba(0,0,0,.18);

  /* Typography */
  --font: "Newsreader", serif;

  /* Layout */
  --wrap: 1080px;
  --radius: 12px;
}

/* ---------- RESET / BASE ---------- */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  overflow-x:hidden;

  /* ONE background color (kills all ghost gradients) */
  background: var(--bg);

  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: .02em;
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

.wrap{
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* =========================================================
   TYPOGRAPHY — SINGLE SOURCE OF TRUTH
   ========================================================= */

/* Paragraphs */
p{
  font-weight: 400;
  font-style: normal;
  margin: 0 0 1.1rem;
}

/* Eyebrows / Kickers (e.g. “SELECTED WORK”) */
.kicker,
.eyebrow{
  font-weight: 400;
  font-style: italic;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 .8rem;
}

/* Headings */
h1, h2{
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}

/* Subsection headings (used in band content) */
h4{
  margin: 1.2rem 0 .35rem;   /* tight gap above, very tight below */
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* Portfolio headline spacing */
.portfolio-title{
  font-weight: 600;
  letter-spacing: .7em; /* spaced-out PORTFOLIO */
}

/* Band / Split titles (normal casing, calmer spacing) */
.band-title,
.split-title{
  font-weight: 500;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: none;
}

/* Drop cap */
.dropcap{ margin:0; }
.dropcap::first-letter{
  float: left;
  font-weight: 500;
  font-style: normal;

  font-size: 3.6rem;

  /* This is the key: make the letter "shorter" so it releases sooner */
  line-height: .78;

  /* Nudge down a touch so it sits nicely on the first line */
  padding: .28rem .6rem 0 0;

  color: rgba(27,26,24,.95);
}


/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .6rem 0;
  font-size: .85rem;
}

.iconlink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:.75rem;
  opacity:.85;
  border:0;
  width:auto;
  height:auto;
  background:none;
}


.iconlink:hover{
  background: rgba(255,255,255,.04);
  opacity: 1;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;

  backdrop-filter: none;          /* remove blur */
  background: #0b0f12;            /* solid, matches --bg */

  border-bottom: 1px solid var(--line);
}


.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}

.brand-mark{
  font-weight: 00;
  font-size: 1rem;
}

.brand-sub{
  font-weight: 300;
  font-style: italic;
  letter-spacing: .18em;
  font-size: .72rem;
  opacity: .8;
}

.nav{
  display:flex;
  gap: 1.2rem;
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav a{ opacity: .86; }
.nav a:hover{ opacity: 1; }

.cta{
  border: 1px solid var(--line);
  padding: .65rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.03);
}

.cta:hover{ background: rgba(255,255,255,.06); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-media{
  height: 56vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  
}

/* Subtle top-to-bottom darkening for legibility (not a “bowl”) */
/* REMOVE THIS */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.0),
    rgba(0,0,0,.00)
  );
  pointer-events:none;
}


/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero{
  position: relative;
  border-bottom: 1px solid var(--line);
}

/* The visible slide (background image is applied here) */
.hero-media{
  height: 56vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* fade between slides */
  transition: opacity 450ms ease;
  opacity: 1;
}

/* Caption sits ~2/3 down (SQUARE, not pill) */
.hero-caption{
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;

  padding: .7rem 1.1rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(233,223,207,.22);
  border-radius: 0;          /* <- square */
  backdrop-filter: blur(6px);
}

.hero-kicker{
  margin: 0 0 .25rem;
  font-weight: 200;
  font-style: italic;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .9;
  font-size: .72rem;
}

.hero-headline{
  margin: 0;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 1.0rem; /* smallish */
}

/* Arrows */
.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 46px;
  height: 46px;

  /* keep arrows round */
  border-radius: 999px;

  border: 1px solid rgba(233,223,207,.22);
  background: rgba(0,0,0,.22);
  color: rgba(233,223,207,.92);

  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;

  display: grid;
  place-items: center;
}

.hero-arrow:hover{
  background: rgba(0,0,0,.38);
}

.hero-prev{ left: 1rem; }
.hero-next{ right: 1rem; }

/* Small screens */
@media (max-width: 520px){
  .hero-arrow{ display: none; }

  .hero-caption{
    top: 70%;
    width: calc(100% - 2.5rem);
    border-radius: 0; /* still square */
  }
}



/* =========================================================
   BEIGE BAND
   ========================================================= */
.band{
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}

.band-inner{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.2rem;
  padding: 4rem 0;
}

.band-aside p{ margin:0 0 1rem; }
.band-article p{ color: rgba(27,26,24,.92); }

/* Readmore */
.readmore{
  display:inline-block;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .10em;
  border-bottom: 1px solid rgba(27,26,24,.35);
  padding-bottom: .15rem;
}
.readmore:hover{ border-bottom-color: rgba(27,26,24,.7); }

/* =========================================================
   PORTFOLIO (HEADER + GRID)
   ========================================================= */
.portfolio{
  border-bottom: 1px solid var(--line);
  background: transparent; /* IMPORTANT: no gradients here */
}

.portfolio-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 2.2rem 0 2.6rem;
}


/* Tighten spacing inside the portfolio head */
.portfolio-head .kicker{ margin: 0 0 1rem; }
.portfolio-head .portfolio-title{ margin: 0; }

/* Full-bleed grid with perfectly flat lines */
.pgrid-full{
  --linew: 2px;
  --linec: rgba(233,223,207,.22);

  width: 100vw;
  margin-left: calc(50% - 50vw);

  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--linew);

  background: var(--linec);     /* the “lines” */
  padding: var(--linew);        /* outer border line */
}

.pgrid-full .pitem{
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;

  background: var(--bg);        /* ensures no translucent seams */
  cursor: zoom-in;
  overflow: hidden;
}

.pgrid-full .pitem img{
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  transform: none !important;
  transition: filter .25s ease;
}

.pgrid-full .pitem:hover img{
  filter: saturate(1.05) contrast(1.05);
}

/* =========================================================
   SPLIT SECTION
   ========================================================= */
.split{
  background: var(--paper);
  color: var(--paper-ink);
  border-bottom: 1px solid var(--line2);
}

.split-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  padding: 4.2rem 0;
}

/* =========================================================
   GALLERY STRIP (if you bring it back later)
   ========================================================= */
.gallery{ padding: 3.2rem 0 4.2rem; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gcard{
  border: 1px solid rgba(233,223,207,.22);
  overflow: hidden;
  background: rgba(255,255,255,.02);
  transition: transform .18s ease, border-color .18s ease;
}

.gcard:hover{
  transform: translateY(-4px);
  border-color: rgba(233,223,207,.38);
}

/* =========================================================
   FOOTER (DARK)
   ========================================================= */
.footer{
  background: #0f0f0f;                 /* near-black, not pure */
  color: rgba(255,255,255,.88);
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

/* Head labels (e.g., "Navigation", "Get in touch") */
.footer-head{
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .9rem;
  color: rgba(255,255,255,.72);
}

/* Links */
.footer-col a{
  display:block;
  padding: .25rem 0;
  color: rgba(255,255,255,.82);
  opacity: 1;
}
.footer-col a:hover{
  color: rgba(255,255,255,.96);
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* Brand */
.footer-brand{
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 .25rem;
  color: rgba(255,255,255,.94);
}

.footer-sub{
  font-weight: 300;
  font-style: italic;
  letter-spacing: .18em;
  margin: 0 0 1.2rem;
  color: rgba(255,255,255,.70);
}

.footer-note{
  margin: 0;
  color: rgba(255,255,255,.70);
}

/* Bottom strip */
.footer-bottom{
  padding: 1rem 0 1.6rem;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: .85rem;
  color: rgba(255,255,255,.60);
}



/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.lightbox.is-open{
  display: grid;
  place-items: center;
}

.lb-backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.72);
  cursor: zoom-out;
}

.lb-figure{
  position: relative;
  z-index: 2;

  width: min(1100px, calc(100% - 2.5rem));
  max-height: calc(100% - 2.5rem);
  margin: 0;

  overflow: hidden;
  border: 1px solid rgba(233,223,207,.18);
  background: rgba(10,14,17,.92);
}

.lb-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 2.5rem);
  object-fit: contain;
  display: block;
}

.lb-close{
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(233,223,207,.22);
  background: rgba(0,0,0,.28);
  color: rgba(233,223,207,.92);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lb-close:hover{
  background: rgba(0,0,0,.42);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .pgrid-full{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px){
  .nav{ display:none; }
  .band-inner,
  .split-inner{ grid-template-columns: 1fr; }
  .pgrid-full{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px){
  .pgrid-full{ grid-template-columns: 1fr; }
}



/* =========================================================
   CONTACT (GLOBAL) — LAYOUT ONLY
   Used on homepage + contact page
   ========================================================= */

.contact{
  padding: 5rem 0 6rem;
}

.contact-head{
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title{
  font-weight: 500;
  letter-spacing: .4em;
  margin-top: .3rem;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

/* LEFT */
.contact-info{
  font-size: 1.05rem;
}

.contact-name{
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
}

.contact-line{
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.contact-note{
  font-size: .9rem;
  font-style: italic;
  opacity: .75;
}

/* RIGHT */
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  font-family: var(--font);
  font-size: .95rem;
  padding: .75rem .8rem;
  outline: none;
}

.contact-submit{
  align-self: flex-start;
  margin-top: .5rem;
  padding: .7rem 1.4rem;
  font-family: var(--font);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Form + map stack on right */
.contact-right{
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-map{
  overflow: hidden;
}

.contact-map iframe{
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* Responsive */
@media (max-width: 760px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .contact-map iframe{ height: 280px; }
}






/* =========================================================
   CONTACT PAGE — PAPER THEME
   Apply by setting: <body class="page-contact">
   IMPORTANT: Does NOT change topbar/header/nav
   Footer stays global dark
   ========================================================= */

.page-contact{
  background: var(--paper);
  /* REMOVE color override */
}


/* Make ONLY the contact section paper */
.page-contact .contact{
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 1px solid var(--line2);
}

/* Type inside contact */
.page-contact .kicker,
.page-contact .contact-note{
  color: rgba(27,26,24,.72);
}



.page-contact .contact a:hover{
  text-decoration-color: rgba(27,26,24,.75);
}

/* Form fields (paper area) */
.page-contact .contact-form input,
.page-contact .contact-form textarea{
  background: rgba(255,255,255,.55);
  color: var(--paper-ink);
  border: 1px solid rgba(0,0,0,.18);
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder{
  color: rgba(27,26,24,.55);
}

.page-contact .contact-form input:focus,
.page-contact .contact-form textarea:focus{
  border-color: rgba(0,0,0,.35);
}

/* Button (paper area) */
.page-contact .contact-submit{
  background: transparent;
  color: var(--paper-ink);
  border: 1px solid rgba(0,0,0,.22);
}
.page-contact .contact-submit:hover{
  background: rgba(0,0,0,.06);
}

/* Map frame (paper area) */
.page-contact .contact-map{
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
}


/* =========================================================
   PORTFOLIO PAGE — SECTION LABEL BARS
   Add anywhere in styles.css (near Portfolio styles is fine)
   ========================================================= */

.port-label{
  background: rgba(0,0,0,.22);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.port-label .wrap{
  padding: .75rem 0;
}

.port-label span{
  display: inline-block;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  opacity: .9;
}

/* Slightly tighter grid feel on portfolio page */
.portfolio .pgrid-full{
  --linew: 2px;
  --linec: rgba(233,223,207,.18);
}


/* Elegant inline text links */
.band-article a,
p a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(27,26,24,.35); /* subtle hairline */
  padding-bottom: .05em;
  transition: border-color .2s ease, opacity .2s ease;
}

.band-article a:hover,
p a:hover{
  border-bottom-color: rgba(27,26,24,.75);
  opacity: .9;
}
