/*
Theme Name: Daneal Rasquinha Photography
Theme URI: https://example.com/daneal-rasquinha
Author: Built for Daneal Rasquinha
Author URI: https://example.com
Description: An elegant, nature-inspired multi-page portfolio theme for wildlife & bird photographer Daneal Rasquinha. Features a camera-clipart navigated gallery that groups photographs by the camera system used (Nikon Coolpix P950, Fujifilm X-T2, OM System OM-1 Mark II).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daneal-rasquinha
Tags: photography, portfolio, custom-logo, custom-menu, featured-images, two-columns, right-sidebar, threaded-comments
*/

/* =====================================================================
   1. Design tokens  (derived from the Daneal Rasquinha logo)
   ===================================================================== */
:root {
	--cream:      #F7F2E7;   /* page background            */
	--cream-2:    #EFE7D6;   /* alternating panels         */
	--paper:      #FCFAF4;   /* cards / lifted surfaces    */
	--ink:        #26332A;   /* near-black forest, text    */
	--forest:     #3C5142;   /* primary green              */
	--sage:       #7E8C6A;   /* olive accent / borders     */
	--sage-soft:  #A7B18E;   /* faint botanical lines      */
	--teal:       #1C7B9E;   /* kingfisher — primary accent*/
	--teal-deep:  #145E7C;
	--ember:      #CE7635;   /* kingfisher belly — sparing */
	--muted:      #6A6E60;   /* secondary text             */
	--line:       #DCD3BF;   /* hairline rules on cream    */

	--font-display: "Cormorant Garamond", Georgia, serif;
	--font-body:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--wrap: 1180px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--radius: 4px;
	--shadow: 0 18px 40px -24px rgba(38, 51, 42, 0.45);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   2. Reset & base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.02rem;
	line-height: 1.7;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--teal-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--ember); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.12;
	color: var(--ink);
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p  { margin: 0 0 1.15em; }

::selection { background: var(--teal); color: var(--paper); }

/* Utility eyebrow — echoes the logo's wide-tracked tagline */
.eyebrow {
	font-family: var(--font-body);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.42em;
	font-size: 0.74rem;
	color: var(--sage);
	margin: 0 0 1.1rem;
	display: inline-block;
}
.eyebrow--center { display: block; text-align: center; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--cream-2); }

/* Feather / leaf divider echoing the logo footer motif */
.flourish {
	display: flex; align-items: center; justify-content: center;
	gap: 0.9rem; margin: 0 auto 2.5rem; max-width: 320px; color: var(--sage);
}
.flourish::before, .flourish::after {
	content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--sage-soft));
}
.flourish::after { background: linear-gradient(90deg, var(--sage-soft), transparent); }
.flourish svg { width: 26px; height: 26px; }

/* =====================================================================
   3. Buttons
   ===================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--font-body); font-weight: 400;
	text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem;
	padding: 0.95rem 1.9rem; border-radius: var(--radius);
	border: 1px solid var(--forest); background: var(--forest); color: var(--cream);
	cursor: pointer; transition: all 0.3s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--cream); }

/* =====================================================================
   4. Site header / navigation
   ===================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--cream) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand img, .brand svg { height: 52px; width: auto; }
.brand__text { line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); display: block; }
.brand__role {
	font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--sage); display: block; margin-top: 2px;
}

.primary-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.primary-nav a {
	font-family: var(--font-body); font-weight: 400; color: var(--ink);
	text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
	position: relative; padding: 0.3rem 0;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
	background: var(--teal); transition: width 0.3s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--teal-deep); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: 100%; }

.nav-toggle {
	display: none; background: none; border: 0; cursor: pointer; padding: 8px;
	width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   5. Hero
   ===================================================================== */
.hero {
	position: relative; text-align: center;
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
	overflow: hidden;
}
.hero__botanical {
	position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
	color: var(--sage-soft); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__logo {
	width: min(260px, 74vw); margin: 0 auto 1.5rem;
	animation: rise 1s var(--ease) both;
}
.hero__wordmark { margin: 0 auto 1.4rem; animation: rise 1s var(--ease) both; }
.hero__name {
	display: block; font-family: var(--font-display); font-weight: 500;
	font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.02; color: var(--ink);
}
.hero__role {
	display: block; font-family: var(--font-body); text-transform: uppercase;
	letter-spacing: 0.3em; font-size: 0.74rem; color: var(--sage); margin-top: 0.8rem;
}
.hero__title { animation: rise 1s var(--ease) 0.1s both; }
.hero__lead {
	max-width: 40ch; margin: 1.2rem auto 2.2rem; color: var(--muted);
	font-size: 1.1rem; animation: rise 1s var(--ease) 0.2s both;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: rise 1s var(--ease) 0.3s both; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   6. Camera-systems trio (home)
   ===================================================================== */
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.system-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2.2rem 1.6rem; text-align: center; text-decoration: none;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
	color: var(--ink); display: flex; flex-direction: column; align-items: center;
}
.system-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sage-soft); color: var(--ink); }
.system-card .dr-cam-photo {
	width: 150px; height: 104px; object-fit: contain; margin: 0 auto 1rem;
	filter: grayscale(0.7) opacity(0.72);
	transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}
.system-card:hover .dr-cam-photo { filter: none; transform: scale(1.04); }
.system-card__name { font-family: var(--font-display); font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.system-card__meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }
.system-card__link {
	margin-top: 1.1rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--teal-deep); display: inline-flex; align-items: center; gap: 0.4rem;
}
.system-card:hover .system-card__link { color: var(--ember); }

/* =====================================================================
   7. Camera clipart — themed states
   ===================================================================== */

/* =====================================================================
   8. Gallery page — camera tab navigation
   ===================================================================== */
.gallery-head { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 1rem; }

.cam-tabs {
	display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 5vw, 4rem);
	padding: 1.5rem 0 0.5rem;
}
.cam-tab {
	background: none; border: 0; cursor: pointer; padding: 1rem 0.5rem 1.4rem;
	display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
	color: var(--muted); position: relative; transition: transform 0.35s var(--ease);
	max-width: 220px;
}
.cam-tab .dr-cam-photo {
	width: clamp(120px, 19vw, 158px); height: 108px; object-fit: contain;
	filter: grayscale(0.9) opacity(0.5);
	transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}
.cam-tab:hover .dr-cam-photo,
.cam-tab.is-active .dr-cam-photo { filter: none; }
.cam-tab:hover { transform: translateY(-4px); }
.cam-tab.is-active { transform: translateY(-4px); }
.cam-tab__label {
	font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--muted); transition: color 0.3s var(--ease);
	text-align: center; line-height: 1.5;
}
.cam-tab.is-active .cam-tab__label, .cam-tab:hover .cam-tab__label { color: var(--forest); }
.cam-tab::after {
	content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 0; height: 2px; background: var(--ember); transition: width 0.3s var(--ease);
}
.cam-tab.is-active::after { width: 46px; }

/* Active section caption */
.cam-caption { text-align: center; max-width: 60ch; margin: 0.5rem auto 0; }
.cam-caption__spec {
	display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem;
	margin-top: 0.9rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
}
.cam-caption__spec span { display: inline-flex; align-items: center; gap: 0.45rem; }
.cam-caption__spec span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* =====================================================================
   9. Gallery grid & lightbox
   ===================================================================== */
.cam-section { display: none; }
.cam-section.is-active { display: block; animation: fade 0.5s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.masonry {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.9rem; margin-top: 2.5rem;
}
.frame {
	position: relative; cursor: zoom-in; aspect-ratio: 4 / 5;
	border-radius: var(--radius); overflow: hidden; background: var(--cream-2);
	border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.frame:hover img { transform: scale(1.06); }
.frame__cap {
	position: absolute; inset: auto 0 0 0; padding: 1.1rem 0.7rem 0.6rem;
	background: linear-gradient(transparent, rgba(38,51,42,0.82));
	color: var(--cream); opacity: 0; transform: translateY(8px);
	transition: all 0.35s var(--ease);
}
.frame:hover .frame__cap { opacity: 1; transform: none; }
.frame__cap b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; display: block; line-height: 1.2; }
.frame__cap small { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-soft); }

.gallery-empty {
	text-align: center; color: var(--muted); padding: 3rem 0; border: 1px dashed var(--line);
	border-radius: var(--radius); margin-top: 2rem; background: var(--paper);
}

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 100; display: none;
	background: rgba(24, 32, 27, 0.94); align-items: center; justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; animation: fade 0.3s ease both; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__cap { position: absolute; bottom: clamp(1rem, 4vw, 2.5rem); left: 0; right: 0; text-align: center; color: var(--cream); }
.lightbox__cap b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.lightbox__close, .lightbox__nav {
	position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
	color: var(--cream); width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; font-size: 1.4rem; transition: background 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__close { top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); }
.lightbox__nav--prev { left: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* =====================================================================
   10. Content sections (about / split / cta)
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* When no photo is set, the logo shows as a placeholder — keep it modest. */
.split__media--brand img {
	max-width: 340px; margin-inline: auto; box-shadow: none;
	background: var(--paper); border: 1px solid var(--line); padding: 1.6rem;
}
.split__media { position: relative; }
.split__media .badge {
	position: absolute; bottom: -18px; left: -18px; background: var(--paper);
	border: 1px solid var(--line); padding: 0.9rem 1.3rem; border-radius: var(--radius);
	font-family: var(--font-display); box-shadow: var(--shadow);
}
.split__media .badge span { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }

.gear-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.gear-list li {
	display: flex; gap: 0.9rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
	font-size: 0.98rem;
}
.gear-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; transform: translateY(2px); }
.gear-list b { font-weight: 400; color: var(--ink); }

.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.5rem; }

/* Featured strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.strip a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--cream-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.strip a:hover img { transform: scale(1.06); }

/* =====================================================================
   11. Page hero (interior pages)
   ===================================================================== */
.page-hero { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero p { max-width: 52ch; margin-inline: auto; color: var(--muted); }

/* =====================================================================
   12. Contact form
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h3 { margin-top: 0; }
.contact-info dl { margin: 1.5rem 0 0; }
.contact-info dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-top: 1.2rem; }
.contact-info dd { margin: 0.2rem 0 0; font-size: 1.05rem; }
.social-row { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.social-row a {
	width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
	display: grid; place-items: center; color: var(--forest); transition: all 0.3s var(--ease);
}
.social-row a:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.social-row svg { width: 18px; height: 18px; }

.dr-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.dr-form label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin: 0 0 0.4rem; }
.dr-form .field { margin-bottom: 1.3rem; }
.dr-form input, .dr-form textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
	background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 0.85rem 1rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dr-form input:focus, .dr-form textarea:focus {
	outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}
.dr-form textarea { resize: vertical; min-height: 140px; }
.dr-form .hp { position: absolute; left: -9999px; }
.dr-notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: 0.92rem; }
.dr-notice--ok { background: color-mix(in srgb, var(--teal) 14%, var(--paper)); border: 1px solid var(--teal); color: var(--teal-deep); }
.dr-notice--err { background: color-mix(in srgb, var(--ember) 14%, var(--paper)); border: 1px solid var(--ember); color: #9a4d19; }

/* =====================================================================
   13. Footer
   ===================================================================== */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.site-footer a { color: var(--sage-soft); }
.site-footer a:hover { color: var(--ember); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 90px; width: auto; filter: brightness(0) invert(1) opacity(0.92); margin-bottom: 1rem; }
.footer-brand p { color: var(--sage-soft); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { color: var(--cream); font-size: 1.2rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.35rem 0; font-size: 0.92rem; }
.footer-col .eyebrow { color: var(--sage); }
.footer-bottom {
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(167,177,142,0.2);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	font-size: 0.78rem; letter-spacing: 0.08em; color: var(--sage-soft);
}
.footer-feather { display: flex; justify-content: center; margin-bottom: 2rem; color: var(--sage); }
.footer-feather svg { width: 40px; height: 40px; opacity: 0.6; }

/* =====================================================================
   14. Accessibility & responsive
   ===================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--teal); outline-offset: 3px;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--forest); color: var(--cream);
	padding: 0.7rem 1.2rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--cream); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 900px) {
	.systems { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.split, .contact-grid { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.strip { grid-template-columns: repeat(2, 1fr); }
	.masonry { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; }
}

@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
		border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0;
		pointer-events: none; transition: 0.3s var(--ease);
	}
	.primary-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
	.primary-nav li { border-bottom: 1px solid var(--line); }
	.primary-nav a { display: block; padding: 0.9rem 0; }
	.cam-tabs { gap: 1.5rem; }
	.strip { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
