/* =========================
   Tamsen Brooke Warner Site
   ========================= */

:root{
  --bg: #ffffff;
  --text: #121826;
  --muted: #667085;
  --line: #e6e8ee;

  /* teal-blue accent */
  --accent: #0ea5a8;
  --accent-dark: #0b7f82;

  /* hero overlay */
  --overlay: rgba(10, 14, 25, 0.55);

  --max: 1120px;
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--accent); }

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

/* ---------- Header / Nav ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand{
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand .dot{ color: var(--accent); }

.nav-links{
  display:flex;
  gap: 18px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  font-size: 14px;
  color: #2b3445;
  padding: 6px 8px;
  border-radius: 10px;
}
.nav-links a:hover{
  background: rgba(14,165,168,0.10);
  color: var(--accent-dark);
}
.nav-links a.active{
  color: var(--accent-dark);
  background: rgba(14,165,168,0.14);
}

/* ---------- Hero ---------- */

.hero{
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-inner{
  min-height: 680px; /* was 520px */
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 56px 20px;
  position: relative;

  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../img/hero.jpg");

  background-size: cover;
  background-position: center top; /* shifts image up slightly */
}


.hero-content{
  max-width: 760px;
  color: #fff;
  padding: 8px 8px;
}

.hero-kicker{
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero-title{
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero-subtitle{
  margin: 0 0 26px;
  font-size: 15px;
  opacity: 0.95;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.10);
  transition: 180ms ease;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(14,165,168,0.9);
  background: rgba(14,165,168,0.22);
  color: #fff;
}
.btn.primary{
  border-color: rgba(14,165,168,0.9);
  background: rgba(14,165,168,0.30);
}

/* ---------- Sections ---------- */

.section{
  padding: 44px 0;
}

.page-title{
  margin: 22px 0 6px;
  font-size: 34px;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.page-subtitle{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(18,24,38,0.05);
}

/* ---------- Grid ---------- */

.grid{
  display:grid;
  gap: 18px;
}
.grid.two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px){
  .grid.two, .grid.three{ grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */

.project{
  overflow:hidden;
  padding:0;
}
.project-media{
  height: 220px;
  background: #0b1324;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(0.95) contrast(1.05);
}
.project-body{
  padding: 18px 20px 20px;
}
.tag-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,168,0.35);
  background: rgba(14,165,168,0.10);
  color: var(--accent-dark);
}
.project h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.project p{
  margin: 0 0 14px;
  color: var(--muted);
}

.project-links{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
}
.link-btn:hover{
  border-color: rgba(14,165,168,0.55);
  background: rgba(14,165,168,0.08);
  color: var(--accent-dark);
}
/* ---------- Alternating portfolio layout ---------- */

.portfolio-stack{
  display: grid;
  gap: 18px;
}

.project-row{
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* image a bit larger than text */
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.project-row.reverse{
  grid-template-columns: 1fr 1.2fr;
}

.project-row .project-media{
  height: 420px;              /* taller, more editorial */
  border-bottom: 0;           /* no bottom border in split layout */
  border-right: 1px solid var(--line);
}

.project-row.reverse .project-media{
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.project-row .project-body{
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-row h3{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.project-row p{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Portfolio galleries (no JS) ---------- */

.project-gallery {
  height: 100%;
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.project-gallery::-webkit-scrollbar {
  height: 10px;
}

.project-gallery::-webkit-scrollbar-thumb {
  background: rgba(14,165,168,0.35);
  border-radius: 999px;
}

.project-gallery-item {
  flex: 0 0 100%;              /* each slide takes full width */
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* consistent crop like your current images */
  display: block;
}


/* Responsive: stack image over text on mobile */
@media (max-width: 860px){
  .project-row,
  .project-row.reverse{
    grid-template-columns: 1fr;
  }

  .project-row .project-media,
  .project-row.reverse .project-media{
    order: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    height: 260px;
  }
}

/* ---------- Resume ---------- */

.resume-block h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.03em;
}
.item{
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.item:first-of-type{ border-top: 0; padding-top: 0; }
.item-title{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.item-title strong{ font-size: 15px; }
.item-title span{ color: var(--muted); font-size: 13px; }
.item p{ margin: 6px 0 0; color: var(--muted); }

/* ---------- Forms ---------- */

form{
  display:grid;
  gap: 12px;
}

label{
  font-size: 13px;
  font-weight: 600;
}

input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(14,165,168,0.55);
  box-shadow: 0 0 0 4px rgba(14,165,168,0.14);
}
textarea{ min-height: 140px; resize: vertical; }

.submit{
  justify-self: start;
  border: 1px solid rgba(14,165,168,0.55);
  background: rgba(14,165,168,0.10);
  color: var(--accent-dark);
}
.submit:hover{
  background: rgba(14,165,168,0.18);
  border-color: rgba(14,165,168,0.85);
}


/* ---------- Resume page (PDF viewer style) ---------- */

.resume-download {
  display: flex;
  justify-content: center;
  padding: 24px 0 10px;
}

.resume-download a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;
  border-radius: 999px;

  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;

  background: var(--accent);
  color: #ffffff;

  border: 1px solid var(--accent);
  box-shadow: 0 8px 20px rgba(14,165,168,0.25);

  transition: 180ms ease;
}


.resume-download a:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14,165,168,0.35);
}


.resume-stage {
  padding: 8px 0 44px;
}

.resume-paper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.resume-frame {
  width: min(860px, 100%);
  aspect-ratio: 8.5 / 11; /* letter-like */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(18,24,38,0.10);
}

.resume-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- YouTube responsive embed ---------- */

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}


/* ---------- Footer ---------- */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  text-align:center;
}
.footer-links{
  display:flex;
  gap: 16px;
  justify-content:center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a{
  font-weight: 600;
  font-size: 13px;
  color: #2b3445;
}
.footer-links a:hover{ color: var(--accent-dark); }
.small{
  font-size: 12px;
  opacity: 0.9;
}

/* ---------- Footer brand + socials ---------- */

.footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-logo {
  height: 80px;           
  width: auto;
  display: block;
  opacity: 1;
}


.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid rgba(14,165,168,0.85);
  background: rgba(14,165,168,0.12);
  font-weight: 600;
  font-size: 13px;

  color: var(--accent-dark);
  transition: 180ms ease;
}


.social-link:hover {
  background: rgba(14,165,168,0.22);
  border-color: rgba(14,165,168,1);
  color: var(--accent-dark);
  transform: translateY(-1px);
}


.social-icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}




/* ---------- Utilities ---------- */

.divider{
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.note{
  color: var(--muted);
  font-size: 13px;
}
