/*
Theme Name: Neethu Productions
Description: The Neethu Photography portfolio and booking website.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: neethu-photography
*/
:root {
  --ink: #172432;
  --muted: #4f5962;
  --gold: #75572f;
  --rule: #dcd7cc;
  --ivory: #f5f2ec;
  --paper: #fcfbf8;
  --ribbon-height: 4.9rem;
  --ribbon-spacing: .9rem;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-height) + 2 * var(--ribbon-spacing) + .75rem); }
body { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #9a6b30; outline-offset: 4px; }
[hidden] { display: none !important; }

.skip {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .6rem;
  transform: translateY(-180%);
  padding: .5rem 1rem;
  background: var(--paper);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 5rem, 77rem); margin-inline: auto; }
h1, h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h2 { font-size: clamp(2.6rem, 4.6vw, 4.35rem); line-height: 1.03; }
p { margin-top: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--ivory);
  padding-block: var(--ribbon-spacing);
}
.header-inner {
  position: relative;
  width: min(100% - 5rem, 63rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: var(--ribbon-height);
  padding: .55rem 1.25rem .55rem 1.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 5px 16px #1724320b;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; width: fit-content; text-decoration: none; line-height: 1; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  padding-right: .14rem;
  border: 1px solid #91794f;
  color: var(--gold);
  font: 1.28rem/1 var(--serif);
  letter-spacing: -.08em;
}
.brand-type { display: grid; gap: .36rem; }
.brand-type > span { font: 2rem/.9 var(--serif); letter-spacing: -.05em; }
.brand-type small { font-size: .7rem; letter-spacing: .19em; text-transform: uppercase; }
.header-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3.6vw, 3rem); }
.header-nav a, .footer-nav a, .mobile-menu a { font-size: .9375rem; text-decoration: none; }
.header-nav a:hover, .footer a:hover, .mobile-menu a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header .header-contact { justify-self: end; border-radius: 999px; padding-inline: 1.35rem; }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: 0;
  padding: .65rem 1.15rem;
  text-decoration: none;
  font-weight: 650;
  font-size: .9375rem;
}
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #33495c; }
.button-outline { border-color: #817b70; color: var(--ink); background: transparent; }
.button-outline:hover { background: #e9e3d9; }
.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.hero-content {
  align-self: center;
  padding: clamp(3.1rem, 6.2vw, 6.1rem) clamp(1.6rem, 5vw, 5.7rem) clamp(3.1rem, 6.2vw, 6.1rem) 0;
}
.hero h1 { font-size: clamp(3.05rem, 5.15vw, 5.25rem); line-height: 1.01; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-intro { color: var(--muted); max-width: 35ch; margin-bottom: 1.55rem; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-image { height: 100%; min-height: 34rem; object-fit: cover; object-position: 73% center; background: #d9d0bf; }

.work, .inquire { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  margin-bottom: 1.65rem;
}
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p, .form-note { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2.3vw, 2rem); }
.photo-card {
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 1px solid var(--rule);
  background: white;
}
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; background: #d9d0bf; }
.photo-caption { min-height: 3.95rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; }
.photo-caption > span:first-child { font: clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--serif); }
.photo-plus { color: var(--gold); font-size: 1.32rem; }
.photo-card:hover .photo-caption { background: var(--ivory); }
.photo-card:hover .photo-caption > span:first-child { text-decoration: underline; text-underline-offset: .17em; }

.approach { background: var(--ivory); border-block: 1px solid var(--rule); padding-block: clamp(3rem, 5vw, 5.5rem); }
.approach-grid, .inquire { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 7vw, 7rem); }
.approach-grid { align-items: center; }
.approach-grid h2 { margin-bottom: 0; }
.approach-copy { max-width: 37rem; font-size: 1.0625rem; color: var(--muted); }
.approach-copy p { margin-bottom: 1rem; }
.text-link { color: var(--ink); font-weight: 650; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.inquire { align-items: start; }
.inquire .form-note { max-width: 35ch; }
form { padding: clamp(1.25rem, 2.65vw, 2.5rem); border: 1px solid var(--rule); background: white; }
form label { display: block; margin-bottom: .95rem; font-size: .9375rem; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
form label span { color: var(--muted); font-weight: 400; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin-top: .3rem;
  padding: .55rem .65rem;
  border: 1px solid #9d9a93;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.65rem;
}
.draft { margin-top: 1.4rem; border: 1px solid var(--rule); padding: 1rem; }
.draft textarea { margin-bottom: .8rem; }
#copy-status { margin: .55rem 0 0; color: var(--muted); }
#copy-status:empty { display: none; }

.footer { background: var(--ink); color: #fbf8f1; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .55fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.6rem, 5vw, 4.8rem);
  padding-block: clamp(2.65rem, 5.5vw, 5rem);
  border-bottom: 1px solid #bda47e66;
}
.footer-brand .brand-mark { width: 3.4rem; height: 3.4rem; font-size: 1.48rem; }
.footer-brand .brand-type > span { font-size: 2.35rem; }
.footer-brand p { margin: 1.1rem 0 0; color: #ded8ce; }
.footer-nav { display: grid; justify-items: start; gap: .5rem; padding-top: .25rem; }
.footer-nav a { padding-block: .25rem; }
.footer-booking {
  padding-left: clamp(1.2rem, 3vw, 2.7rem);
  border-left: 1px solid #bda47e66;
}
.footer-booking h2 { margin-bottom: 1.15rem; font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.1; }
.footer-contact { border-radius: 999px; border-color: #d5bb90; color: #f8ead0; }
.footer-contact:hover { background: #e9d1ae; color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-bottom { padding-block: 1.15rem; color: #ded8ce; }
.footer-bottom a, .footer-bottom small { font-size: .875rem; text-decoration: none; }
.footer .brand-mark { color: #e9d1ae; border-color: #bda47e; }
.footer :focus-visible { outline-color: #e9d1ae; }

dialog { width: min(54rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: .8rem; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #172432d9; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.dialog-top h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.35rem); }
.dialog-top button { height: 2.6rem; width: 2.6rem; border: 1px solid var(--rule); background: transparent; font-size: 1.65rem; line-height: 1; }
dialog img { max-height: calc(100dvh - 7rem); object-fit: contain; background: var(--ink); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero-break, .approach-break { display: none; }
}
@media (max-width: 720px) {
  :root { --ribbon-height: 4.35rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { width: min(100% - 2rem, 32rem); display: flex; justify-content: space-between; gap: .65rem; min-height: var(--ribbon-height); padding-inline: 1rem .7rem; }
  .header-nav, .header-contact { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 2.75rem;
    padding-inline: .8rem;
    border: 1px solid #817b70;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    font-size: .9375rem;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon { width: .85rem; height: .52rem; border-block: 1px solid currentColor; }
  .mobile-menu[open] summary { background: var(--ink); color: white; }
  .mobile-menu nav {
    position: absolute;
    z-index: 2;
    inset: calc(100% + .45rem) 0 auto;
    display: grid;
    padding: .4rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 1rem;
    background: var(--paper);
    box-shadow: 0 .75rem 2rem #17243222;
  }
  .mobile-menu nav a { padding: .7rem .5rem; }
  .mobile-menu nav a + a { border-top: 1px solid var(--rule); }
  .hero-grid, .approach-grid, .inquire { grid-template-columns: 1fr; }
  .hero-content { padding: 2.75rem 0 2rem; }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 1.37; }
  .hero { padding-bottom: 1rem; }
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.35rem; }
  .footer-nav { display: flex; gap: .6rem 1.4rem; }
  .footer-booking { border-left: 0; border-top: 1px solid #bda47e66; padding: 1.35rem 0 0; }
}
@media (max-width: 400px) {
  .header .brand { gap: .55rem; }
  .header .brand-mark { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
  .header .brand-type small { font-size: .65rem; }
  .mobile-menu summary { gap: .5rem; padding-inline: .55rem; }
  .hero h1 { font-size: clamp(2.45rem, 10.4vw, 2.85rem); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.admin-bar .header { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--ribbon-height) + 2 * var(--ribbon-spacing) + .75rem + 32px); }
.entry-content { max-width: 48rem; padding-block: 4rem; }
.entry-content article + article { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 2rem; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  html:has(body.admin-bar) { scroll-padding-top: calc(var(--ribbon-height) + 2 * var(--ribbon-spacing) + .75rem + 46px); }
}
@media (max-width: 600px) {
  body.admin-bar .header { top: 0; }
  html:has(body.admin-bar) { scroll-padding-top: calc(var(--ribbon-height) + 2 * var(--ribbon-spacing) + .75rem); }
}

.brand-logo { display: block; width: 10rem; height: 3.58rem; object-fit: cover; object-position: center; }
.footer .brand-logo { border-radius: .2rem; }
@media (max-width: 400px) {
  .header .brand-logo { width: 8.5rem; height: 3.05rem; }
}
