/*
Theme Name: PlaceCraft Designs
Theme URI: https://placecraftdesigns.com
Author: PlaceCraft Designs
Description: A clean, professional portfolio theme for urban designers and planners. Features customizable About, Services, and Social Media sections — all managed from the WordPress Customizer. No coding required.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: placecraft
Tags: portfolio, one-page, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* =============================================
   CSS VARIABLES — LIGHT THEME
============================================= */
:root {
  --bg:         #f8f5f0;
  --bg-alt:     #f0ece4;
  --bg-card:    #ffffff;
  --ink:        #1a1814;
  --ink-mid:    #4a4640;
  --muted:      #8a857c;
  --border:     rgba(26,24,20,0.1);
  --border-md:  rgba(26,24,20,0.16);
  --accent:     #b84c1e;
  --accent-dim: rgba(184,76,30,0.08);
  --accent-bg:  rgba(184,76,30,0.06);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --nav-h:  68px;
  --radius: 3px;
  --ease:   cubic-bezier(0.4,0,0.2,1);

  --shadow-sm: 0 1px 3px rgba(26,24,20,0.08), 0 1px 2px rgba(26,24,20,0.04);
  --shadow-md: 0 4px 12px rgba(26,24,20,0.08), 0 2px 4px rgba(26,24,20,0.04);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* =============================================
   TYPOGRAPHY
============================================= */
.display { font-family: var(--font-display); text-transform: uppercase; line-height: 0.92; }
.display--xl { font-size: clamp(4.5rem, 12vw, 10rem); }
.display--lg { font-size: clamp(2.8rem, 7vw,  6rem);  }
.display--md { font-size: clamp(2rem,   4vw,  3.5rem); }

.label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.label--accent { color: var(--accent); }

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* =============================================
   NAVIGATION
============================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: rgba(248,245,240,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.scrolled {
  background: rgba(248,245,240,0.96);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo .dot { color: var(--accent); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.primary-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.primary-nav a:hover       { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }

.nav-contact {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  transition: opacity 0.2s !important;
}
.nav-contact:hover { opacity: 0.88 !important; }
.nav-contact::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: 0.25s var(--ease);
}

/* =============================================
   HERO
============================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle geometric accent top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 80vh;
  background: var(--accent-bg);
  border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  padding: clamp(2rem, 6vw, 5rem) 0;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2.5rem; height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-name { margin-bottom: 0.5rem; color: var(--ink); }

.hero-role {
  color: var(--accent);
  display: block;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  color: var(--ink-mid);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image column */
.hero-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hero-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px dashed var(--border-md);
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem;
  right: -1rem; bottom: -1rem;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius);
  z-index: 0;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  top: -1.25rem; right: -1.25rem;
  width: 90px; height: 90px;
  background: var(--accent-dim);
  border-radius: 50%;
  z-index: 0;
}

.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  min-width: 140px;
  box-shadow: var(--shadow-md);
}
.hero-badge strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-badge span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--border-md);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* =============================================
   TICKER
============================================= */
.ticker-wrap {
  overflow: hidden;
  background: var(--ink);
  padding: 0.9rem 0;
}
.ticker {
  display: flex;
  gap: 2.5rem;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(248,245,240,0.5);
}
.ticker-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================
   ABOUT
============================================= */
.about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px dashed var(--border-md);
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content .label { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1.5rem; color: var(--ink); }

.about-bio {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-mid);
}
.credential-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
}
.stat { text-align: center; padding: 0 1rem; border-right: 1.5px solid var(--border); }
.stat:last-child { border-right: none; }
.stat:first-child { padding-left: 0; text-align: left; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* =============================================
   SERVICES
============================================= */
.services { background: var(--bg); }

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.services-header p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 380px;
  justify-self: end;
  align-self: end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2.25rem;
  position: relative;
  transition: background 0.25s var(--ease);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { background: var(--accent-bg); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(26,24,20,0.04);
  line-height: 1;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.service-card p {
  color: var(--ink-mid);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* =============================================
   CONNECT
============================================= */
.connect { background: var(--bg-alt); }

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.connect-info .label { margin-bottom: 1rem; }
.connect-info h2 { margin-bottom: 1.25rem; color: var(--ink); }
.connect-info p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 360px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-sm);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  box-shadow: none;
}
.social-link svg { flex-shrink: 0; color: var(--accent); }
.social-link span { flex: 1; }
.social-link .arrow { font-size: 0.9rem; opacity: 0.35; transition: transform 0.2s; }
.social-link:hover .arrow { transform: translateX(3px); opacity: 1; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a857c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }

#form-status { font-size: 0.85rem; padding: 0.5rem 0; display: none; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--ink);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: rgba(248,245,240,0.45); }
.footer-back { font-size: 0.78rem; color: rgba(248,245,240,0.45); transition: color 0.2s; }
.footer-back:hover { color: var(--accent); }

/* =============================================
   SCROLL ANIMATIONS
============================================= */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-anim].visible { opacity: 1; transform: none; }
[data-anim-delay="1"] { transition-delay: 0.1s; }
[data-anim-delay="2"] { transition-delay: 0.2s; }
[data-anim-delay="3"] { transition-delay: 0.3s; }
[data-anim-delay="4"] { transition-delay: 0.4s; }
[data-anim-delay="5"] { transition-delay: 0.5s; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .hero-image-col { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 360px; }
  .services-header { grid-template-columns: 1fr; }
  .services-header p { justify-self: start; }
  .connect-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stat { border-right: none; padding: 0; border-bottom: 1.5px solid var(--border); padding-bottom: 1.25rem; text-align: left; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* =============================================
   WORDPRESS CORE COMPATIBILITY
============================================= */
.aligncenter { margin: 0 auto; }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-caption-text { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content p { margin-bottom: 1.25rem; color: var(--ink-mid); line-height: 1.8; }
.page-content h2, .page-content h3 { margin: 2rem 0 1rem; color: var(--ink); }
