:root{
  --bg:#fbfaf7;
  --card:#ffffff;
  --accent:#0b4a6f;
  --accent-2:#d4af37;
  --muted:#444;
  --container:1100px;
}
*{box-sizing:border-box}
body{font-family: 'Merriweather', Georgia, serif; margin:0; color:var(--muted); background:var(--bg); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;}
a{color:var(--accent); text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:28px;}
.site-header .header-inner{display:flex; align-items:flex-start; justify-content:space-between; gap:20px;}
.site-title{margin:0; font-family: 'Poppins', Arial, sans-serif; font-weight:700; letter-spacing:0.5px; color:var(--accent); font-size:1.6rem}
.site-sub{margin:6px 0 0; color:#6b6b6b; font-size:0.95rem; letter-spacing:0.2px}
/* subtitle is broken into spans so we can insert separators and control wrapping precisely */
.site-sub span{display:inline-block; white-space:nowrap}
.site-sub span + span::before{content:"\00a0•\00a0"; color:#999; margin:0 6px; display:inline-block}

.brand{display:flex; flex-direction:column; align-items:flex-start}
.site-title{margin-bottom:0}
.site-nav a{margin-left:14px; color:#333; font-weight:600}
/* larger tap targets for mobile */
.site-nav a{padding:6px 8px; border-radius:6px}
.site-nav a:active, .site-nav a:focus{outline:2px solid rgba(11,74,111,0.15)}
.site-nav a{transition:background-color 160ms ease, color 160ms ease}
.site-nav a:hover, .site-nav a:focus{background:rgba(11,74,111,0.06); color:var(--accent); border-radius:8px}
.site-nav{display:flex; align-items:center}
.header-resume{margin-left:14px}
.btn.header-resume{display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:10px}
.header-resume .icon-download{width:18px;height:18px;display:inline-block}
.hire-nav{margin-left:12px; font-weight:700; color:#1b7a46; text-decoration:none; white-space:nowrap; padding:6px 10px; border-radius:8px; transition:background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease}
.hire-nav:focus{outline:2px solid rgba(27,122,70,0.15); border-radius:6px; padding:4px}

.hire-nav:hover, .hire-nav:focus-visible{background:var(--accent-2); color:var(--accent); box-shadow:0 8px 24px rgba(212,175,55,0.12); text-decoration:none; transform:translateY(-1px)}
.hire-nav:active{transform:translateY(0)}
.nav-toggle{display:none;background:none;border:0;padding:6px;cursor:pointer}
.nav-toggle .hamburger{display:inline-block;width:22px;height:2px;background:#333;position:relative}
.nav-toggle .hamburger::before,.nav-toggle .hamburger::after{content:'';position:absolute;left:0;width:22px;height:2px;background:#333;transition:transform 200ms ease,opacity 200ms ease}
.nav-toggle .hamburger::before{top:-7px}
.nav-toggle .hamburger::after{top:7px}
.nav-toggle[aria-expanded="true"] .hamburger{background:transparent}
.nav-toggle[aria-expanded="true"] .hamburger::before{transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .hamburger::after{transform:translateY(-7px) rotate(-45deg)}
.hero{background-image:none; background-size:cover; background-position:center; display:block; margin-top:8px; border-radius:10px; overflow:hidden; position:relative; padding:0; /* decorative band background matches the SVG so the pale area extends even if SVG is cropped */
  background: linear-gradient(180deg,#ffffff 0%, #f6f9ff 100%);
  min-height:clamp(260px,30vh,360px);
}
.hero svg{width:100%; height:100%; display:block}
/* hero heading (moved into DOM to avoid SVG text clipping). center it over the SVG and scale fluidly */
.hero-content{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:2; width:92%; max-width:var(--container); text-align:center; pointer-events:none}
.hero-title{font-family:'Poppins', Arial, sans-serif; color:var(--accent); font-weight:700; margin:0; line-height:1.02; pointer-events:none; text-wrap:balance; font-size:clamp(1.4rem,3.6vw + 0.6rem,3.6rem)}
/* hero subtitle (roles) placed under the title; use spans so separators and wrapping are controllable */
.hero-sub{margin:10px 0 0; color:var(--accent); font-size:clamp(0.95rem,1.2vw + 0.2rem,1.05rem); letter-spacing:0.2px}
.hero-sub span{display:inline-block}
/* place comma AFTER each role (except the last) so the comma stays attached to the preceding word when wrapping */
.hero-sub span:not(:last-child)::after{content:", "; color:var(--accent); display:inline}
.hero-overlay{background:linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)); padding:28px; margin-left:40px; max-width:700px; border-radius:8px; display:flex; flex-direction:column; gap:8px; z-index:2}
.hero-overlay h2{margin:0 0 8px; font-family:'Poppins', Arial, sans-serif; font-size:1.8rem; color:var(--accent)}

/* simple hero text (no overlay box) */
.hero-text{width:100%; padding:28px; text-align:center;}
.hero-text h2{margin:0; font-family:'Poppins', Arial, sans-serif; font-size:2rem; color:var(--accent); background:transparent}
.btn{display:inline-block;padding:10px 14px;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;font-weight:600;margin-top:10px}
.site-main{padding:30px 0}
h2.section-title{font-family:'Poppins', Arial, sans-serif; color:var(--accent); margin-bottom:10px}
.card{background:var(--card); border-radius:10px; padding:18px; box-shadow:0 6px 18px rgba(30,30,30,0.06); margin-bottom:18px}
.two-col{display:flex; gap:20px; align-items:flex-start}
.two-col .col{flex:1}
.gallery-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px}
.gallery-grid img{width:100%; height:180px; object-fit:cover; border-radius:8px}
.testimonial{padding:14px; border-left:4px solid var(--accent-2); background:linear-gradient(180deg,#fff,#fbfbfb); border-radius:6px}
footer.site-footer{padding:18px 0; margin-top:30px; text-align:center; color:#666}
@media (max-width:800px){
  .site-header .header-inner{flex-direction:column; align-items:stretch}
  /* allow absolutely-positioning elements (resume button) inside the header */
  .site-header .header-inner{position:relative}
  /* leave room on the right for the absolutely-positioned resume CTA so it doesn't cover the brand */
  .site-header .header-inner{padding-right:88px}
  /* collapsed mobile nav (toggle with hamburger) */
  .nav-toggle{display:inline-block}
  .site-nav{display:flex; flex-direction:column; width:100%; margin-top:8px; max-height:0; overflow:hidden; transition:max-height 280ms ease}
  .site-nav.open{max-height:420px}
  .site-nav a{margin-left:0; padding:10px 12px; border-top:1px solid rgba(0,0,0,0.04); display:block}
  /* position resume button at the top-right on mobile */
  .header-resume{position:absolute; right:18px; top:14px; margin-top:0; width:auto; display:inline-block; z-index:6}
  .btn.header-resume{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; font-size:0.98rem; border-radius:8px}
  .header-resume .icon-download{width:16px;height:16px}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .hero{min-height:220px}
  .hero svg{height:100%}
  /* allow Hire Me to wrap inside the mobile nav (single-line reserved for larger screens) */
  .hire-nav{white-space:normal}
  /* remove left offset on narrower screens so overlay stays centered */
  .hero-overlay{margin-left:0; padding:18px; max-width:unset}
  .container{padding:20px}
  /* allow subtitle to wrap on narrow screens */
  .site-sub{white-space:normal}
  .site-sub span{white-space:normal}
  /* hide the desktop-only invite if present (we use the nav link in mobile) */
  .hire-link{display:none}
  /* allow hero subtitle spans to wrap on narrow screens */
  .hero-sub span{white-space:normal}
}
@media (max-width:480px){
  .gallery-grid{grid-template-columns:1fr}
  .site-title{font-size:1.2rem}
  .hero-overlay h2{font-size:1.1rem}
  .hero-text h2{font-size:1.05rem}
  .hero{min-height:200px}
  .hero svg{height:100%}
  .hero-overlay{margin-left:0; padding:14px}
  /* make primary buttons full width on very small screens */
  .btn{display:block; width:100%; text-align:center; padding:12px 14px}
  /* adjust top-right offset slightly on very small screens */
  .header-resume{right:12px; top:12px}
  .btn.header-resume{display:inline-flex; width:auto; margin:0; padding:10px 14px}
  .container{padding:14px}
}



/* On very narrow devices make the resume CTA an icon-only square to save space */
@media (max-width:420px){
  /* enforce compact icon-only resume CTA on very small screens */
  .site-header .header-inner{padding-right:64px}
  .header-resume{position:absolute !important; right:12px !important; top:10px !important; z-index:60 !important}
  .btn.header-resume{padding:6px !important; width:40px !important; height:40px !important; border-radius:8px !important; justify-content:center !important}
  .btn.header-resume .btn-text{display:none !important}
  .header-resume .icon-download{width:18px;height:18px;margin:0}
}
/* Also apply compact resume CTA for slightly larger small devices (covers devices like iPhone 8 Plus CSS widths) */
@media (max-width:440px){
  .site-header .header-inner{padding-right:64px}
  .header-resume{position:absolute !important; right:12px !important; top:10px !important; z-index:60 !important}
  .btn.header-resume{padding:6px !important; width:40px !important; height:40px !important; border-radius:8px !important; justify-content:center !important}
  .btn.header-resume .btn-text{display:none !important}
  .header-resume .icon-download{width:18px;height:18px;margin:0}
}
/* transitions & small polish */
.btn{transition:background-color 180ms ease, transform 120ms ease}
.btn:active{transform:translateY(1px)}
.header-resume .icon-download{vertical-align:middle;margin-right:8px;display:inline-block}
.btn .btn-text{vertical-align:middle}

/* visually-hidden (accessible text only) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* typography tweaks for legibility on small screens */
body{line-height:1.6}
.hero-overlay p{font-size:0.98rem; line-height:1.5; margin:0}
.hero-overlay h2{line-height:1.15}
@media (max-width:600px){
  body{font-size:16px}
  h2.section-title{font-size:1.05rem}
}
