/* =========================================================
   Pool Designer Portfolio - Earthy Modern PHP Starter
   ========================================================= */

:root {
  --bg: #f5f0e8;
  --bg-soft: #f4f0eb;
  --ink: #1f2420;
  --muted: #555e59;
  --olive: #566f64;
  --sage: #566f64;
  --sand: #d8c7a3;
  --clay: #5f86a3;
  --deep: #2c381f;
  --line: rgba(31, 36, 32, 0.18);
  --shadow: 0 24px 70px rgba(31, 36, 27, 0.13);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 199, 163, 0.5), transparent 35%),
    linear-gradient(180deg, var(--bg), #eee4d3 65%, var(--bg));
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  background: var(--deep);
  color: white;
  z-index: 99;
}

.skip-link:focus { left: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 18px;
  background: rgba(143, 125, 109, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--sand);
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 25px rgba(23, 32, 24, 0.2);
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand em {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #445045;
  font-size: 0.93rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-menu a:hover,
.site-menu a.active {
  background: rgba(86, 111, 100, 0.18);
  color: var(--deep);
}

.site-menu .nav-cta {
  background: var(--olive);
  color: var(--bg-soft);
  margin-left: 4px;
}

.site-menu .nav-cta:hover {
  background: var(--deep);
  color: white;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(244, 240, 235, 0.74);
  border-radius: 14px;
  padding: 11px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--deep);
  border-radius: 999px;
}

.section-shell {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: 44px;
  padding: 88px 0 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(1.55rem, 3.5vw, 3.3rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 2rem);
  margin: 0 0 18px;
}

h3 { margin: 0 0 10px; }

.hero-text {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--olive);
  color: var(--bg-soft);
  box-shadow: 0 14px 30px rgba(44, 56, 31, 0.2);
}

.button.primary:hover {
  background: var(--deep);
}

.button.secondary {
  background: rgba(244, 240, 235, 0.78);
  border-color: var(--line);
  color: var(--deep);
}

.hero-card {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.hero-card img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-card::after,
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(23, 32, 24, 0.72));
  pointer-events: none;
}

.floating-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  background: rgba(244, 240, 235, 0.9);
  backdrop-filter: blur(14px);
}

.floating-note span {
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section,
.project-preview-grid,
.portfolio-grid,
.contact-layout,
.resume-layout,
.process-steps,
.image-text {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.process-card,
.contact-card,
.contact-form,
.resume-sidebar,
.resume-content,
.cta-panel,
.showcase-band {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 240, 235, 0.76);
  box-shadow: 0 16px 45px rgba(38, 48, 39, 0.07);
}

.feature-number,
.process-card span,
.portfolio-card span,
.timeline span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--clay);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-band {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: end;
  gap: 40px;
  margin-top: 44px;
  background: linear-gradient(135deg, rgba(244, 240, 235, 0.88), rgba(143, 125, 109, 0.35));
}

.project-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 275px;
  gap: 18px;
}

.project-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.project-tile.large {
  grid-row: span 2;
}

.project-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-tile:hover img,
.portfolio-card:hover img {
  transform: scale(1.04);
}

.project-tile div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: white;
}

.project-tile h3 {
  color: white;
  font-size: 1.55rem;
}

.project-tile span {
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.76rem;
}

.cta-panel {
  text-align: center;
  margin: 40px auto 88px;
  max-width: 960px;
}

.cta-panel p {
  max-width: 620px;
  margin: 0 auto 22px;
}

.page-hero {
  padding: 82px 0 38px;
  max-width: 940px;
}

.page-hero p:not(.eyebrow) {
  font-size: 1.15rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244, 240, 235, 0.78);
  box-shadow: 0 16px 40px rgba(38, 48, 39, 0.08);
}

.portfolio-card img {
  height: 250px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.portfolio-card div {
  padding: 22px;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 34px;
  align-items: center;
  max-width: var(--max);
}

.about-hero img,
.image-text img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 420px;
  object-fit: cover;
}

.resume-layout,
.contact-layout,
.image-text {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-items: start;
}

.process-inspiration {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: center;
}

.process-inspiration div {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.process-inspiration img {
  width: 100%;
  height: 250px;
  min-height: 0;
  object-fit: cover;
}

.resume-sidebar ul {
  padding-left: 18px;
  color: var(--muted);
}

.pill-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(86, 111, 100, 0.18);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.timeline article {
  padding-left: 18px;
  border-left: 3px solid var(--sage);
}

.contact-form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--deep);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(244, 240, 235, 0.8);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(95, 134, 163, 0.24);
  border-color: rgba(95, 134, 163, 0.62);
}

.site-footer {
  padding: 54px 18px 26px;
  background: var(--deep);
  color: var(--bg-soft);
}

.site-footer p,
.site-footer a {
  color: rgba(244, 240, 235, 0.76);
}

.site-footer h2,
.site-footer h3 {
  color: var(--bg-soft);
}

.footer-grid,
.footer-bottom {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--bg-soft) !important;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(244, 240, 235, 0.62);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .site-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(244, 240, 235, 0.96);
    box-shadow: var(--shadow);
  }

  .site-menu.open { display: flex; }
  .site-menu a { padding: 13px 14px; }
  .site-menu .nav-cta { margin-left: 0; }

  .hero,
  .showcase-band,
  .about-hero,
  .resume-layout,
  .contact-layout,
  .image-text {
    grid-template-columns: 1fr;
  }

  .process-inspiration div {
    max-width: 680px;
  }

  .process-inspiration img {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-card,
  .hero-card img {
    min-height: 430px;
  }

  .feature-grid,
  .portfolio-grid,
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand strong { font-size: 0.9rem; }
  .brand em { display: none; }

  .hero {
    padding: 44px 0 54px;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-grid,
  .portfolio-grid,
  .process-steps,
  .project-preview-grid,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .project-preview-grid {
    grid-auto-rows: 280px;
  }

  .project-tile.large {
    grid-row: span 1;
  }

  .footer-bottom {
    display: grid;
  }
}






