/*
Theme Name: Joan Keyter
Theme URI: https://example.com/joankeyter
Author: Your Name
Description: ...
Version: 1.1
*/
/*!
Theme Name: Joan Keyter
Theme URI: http://underscores.me/
Author: Joan Keyter
Author URI: https://proteanpub.co.za
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: joankeyter
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* ── RESET & BOX SIZING ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  box-sizing: border-box;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}
b, strong {
  font-weight: bolder;
}
code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img {
  border-style: none;
  height: auto;
  max-width: 100%;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button, input { overflow: visible; }
button, select { text-transform: none; }
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset { padding: 0.35em 0.75em 0.625em; }
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* ── DESIGN TOKENS ── */
:root {
  --sand:    #FAFAF7;
  --charcoal:#1E2B2F;
  --sage:    #7A9E8E;
  --gold:    #D4A853;
  --muted:   #6B7B7E;
  --rule:    #E2DDD6;
}

/* ── BASE TYPOGRAPHY ── */
body {
  background: var(--sand);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { clear: both; }
p { margin-bottom: 1.5em; }
dfn, cite, em, i { font-style: italic; }
blockquote { margin: 0 1.5em; }
address { margin: 0 0 1.5em; }
pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}
code, kbd, tt, var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}
mark, ins {
  background: #fff9c0;
  text-decoration: none;
}
big { font-size: 125%; }

/* ── ELEMENTS ── */
hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}
ul, ol { margin: 0 0 1.5em 3em; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}
dt { font-weight: 700; }
dd { margin: 0 1.5em 1.5em; }
embed, iframe, object { max-width: 100%; }
figure { margin: 1em 0; }
table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* ── GLOBAL LINK DEFAULTS ── */
a { color: #4169e1; }
a:visited { color: #800080; }
a:hover, a:focus, a:active { color: #191970; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

/* ── FORMS ── */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}
select { border: 1px solid #ccc; }
textarea { width: 100%; }

/* ── ACCESSIBILITY ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ── ALIGNMENTS ── */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

/* ══════════════════════════════════════════
   CUSTOM THEME STYLES — JOAN KEYTER
══════════════════════════════════════════ */

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 6vw;
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
}
.nav-logo img {
  height: 36px;
  width: auto;
}
ul.nav-links {
  display: flex !important;
  gap: 2rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
ul.nav-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
ul.nav-links li a,
ul.nav-links li a:link,
ul.nav-links li a:visited {
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
ul.nav-links li a:hover {
  color: var(--charcoal) !important;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sand);
  border: 1px solid var(--rule);
  min-width: 160px;
  list-style: none !important;
  padding: 0.4rem 0;
  margin: 0 !important;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.dropdown li a,
.dropdown li a:link,
.dropdown li a:visited {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem !important;
  white-space: nowrap;
  color: var(--muted) !important;
  text-decoration: none !important;
}
.dropdown li a:hover {
  color: var(--charcoal) !important;
  background: #f0ede6;
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 6vw 5rem;
  border-bottom: 1px solid var(--rule);
}
.location {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.main-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 1.8rem;
}
.main-heading .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
}
.hero-text {
  max-width: 48ch;
  margin-bottom: 2.8rem;
}
.services-list {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}
.description strong {
  color: var(--charcoal);
  font-weight: 500;
}
.cta-button {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  padding: 0.85rem 2rem;
  background: var(--charcoal);
  color: var(--sand) !important;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s;
}
.cta-button:hover,
.cta-button:visited { background: var(--charcoal); color: var(--sand) !important; }
.cta-button:hover { background: var(--sage); }

/* ── SECTIONS ── */
section {
  padding: 6rem 6vw;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── WHAT I DO ── */
.what-i-do .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem 4rem;
  margin-top: 3.5rem;
}
.service-card .number {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
  display: block;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.service-card h3 a,
.service-card h3 a:link,
.service-card h3 a:visited {
  color: var(--charcoal);
  text-decoration: none;
}
.service-card h3 a:hover { color: var(--sage); }
.service-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── SELECTED WORK ── */
.work-group-label,
.category-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-top: 5rem;
  margin-bottom: 1.2rem;
  padding-top: 1rem;
}
.category:first-of-type .category-title,
.work-group-label:first-of-type {
  margin-top: 0;
}

/* 4-column project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.project-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
/* Images at natural ratio — no forced height, no object-fit */
.project-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}
.project-card:hover img { opacity: 0.85; }
.project-info h4,
.project-info h4 a,
.project-info h4 a:link,
.project-info h4 a:visited {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.project-info h4 a:hover { color: var(--sage); }
.project-info p {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ── PHOTOGRAPHY / BEHIND THE LENS ── */
.photo-category { margin-bottom: 3rem; }
.photo-category .category-title { margin-top: 3rem; }
.photo-category:first-of-type .category-title { margin-top: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1rem;
}
/* Images at natural ratio — no forced height */
.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.photo-grid img:hover { opacity: 0.85; }

/* ── SOCIAL MEDIA ── */
.client-campaign {
  margin-top: 4rem;
}
.client-campaign:first-of-type { margin-top: 3rem; }
.client-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.client-header .role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}
.campaign-description {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

/* 4-column social post grid */
.campaign-visuals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.social-post { display: block; }
/* Images and video at natural ratio — no forced height */
.social-post img,
.social-post video {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--charcoal);
  transition: opacity 0.2s;
}
.social-post img:hover,
.social-post video:hover { opacity: 0.85; }
.caption {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 700;
  font-style: italic;
}

/* ── WHO I AM / ABOUT ── */
.about-section {
  background: var(--sand);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}
.about-left .section-label { color: var(--sage); }
.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.about-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--charcoal);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.about-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-top: 1.5rem;
  border-radius: 2px;
}

/* ── HOW IT WORKS / PROCESS ── */
.process-section {
  background: var(--charcoal);
  color: var(--sand);
}
.process-section .section-label { color: var(--sage); }
.process-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 1rem;
}
.process-intro {
  font-size: 0.9rem;
  color: #A8B8BB;
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 3.5rem;
}
.process-step { display: block; }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.8rem;
  display: block;
}
.step-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--sand);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.step-body {
  font-size: 0.8rem;
  color: #A8B8BB;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── CONTACT ── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
.contact-left .section-label { color: var(--sage); }
.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2rem;
}
.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.contact-value {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 0;
}
.contact-link,
.contact-link:link,
.contact-link:visited {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.contact-link:hover { color: var(--sage); }
.contact-right {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}
.contact-body { margin-bottom: 1rem; }

/* ── FOOTER ── */
.site-footer {
  padding: 2rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.footer-left, .footer-right { margin-bottom: 0; }
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--charcoal); }

/* ── SCROLL MARGIN FOR FIXED NAV ── */
#about, #services, #work, #contact,
#web-design, #copywriting, #photography, #social-media {
  scroll-margin-top: 80px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .campaign-visuals { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 1rem 5vw; }
  ul.nav-links { gap: 1.2rem; }
  .hero { padding: 8rem 5vw 5rem; }
  .about-inner { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  section { padding: 4.5rem 5vw; }
  .site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-visuals { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  ul.nav-links { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
