/* ==========================================================
   Homepage design for phillipschmutz.github.io
   Loaded only by index.qmd
   ========================================================== */

.homepage {
  --home-navy: #00205B;
  --home-blue: #009CDE;
  --home-green: #007A33;
  --home-gold: #FFB81C;
  --home-orange: #E03C31;
  --home-text: #263f53;
  --home-muted: #627383;
  --home-border: #dce5ec;
  --home-pale: #f3f7fb;
  --home-shadow: 0 8px 24px rgba(13, 44, 72, 0.09);
  color: var(--home-text);
}

/* Override the narrow grid in the site's existing styles.css on the homepage. */
body:has(.homepage) #quarto-content .page-columns {
  display: block;
  width: 100%;
}

body:has(.homepage) #quarto-content main.content {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.homepage) #title-block-header,
body:has(.homepage) .quarto-title-block {
  display: none;
}

.home-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/*---------------------------------------------------------
HERO BANNER
---------------------------------------------------------*/
.home-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(7, 35, 62, 0.88) 0%,
      rgba(7, 35, 62, 0.67) 47%,
      rgba(7, 35, 62, 0.13) 80%
    ),
    url("files/hero-coast.png");
  background-size: cover;
  background-position: center bottom;
}

.home-hero-shade {
  width: 100%;
}

.hero-copy {
  max-width: 760px;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.hero-copy p {
  margin: 0 0 13px;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.52;
  text-shadow: 0 1px 11px rgba(0, 0, 0, 0.32);
}

.hero-copy em {
  display: inline-block;
  margin-top: 7px;
}

.hero-tags {
  margin-top: 10px;
}

.hero-copy .hero-tags p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: none;
  text-shadow: 0 1px 11px rgba(0, 0, 0, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.home-button {
  display: inline-block;
  padding: 0.76rem 1.08rem;
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.018em;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}

.home-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.home-button-primary {
  color: #fff !important;
  background: var(--home-navy);
  border-color: var(--home-navy);
}

.home-button-primary:hover {
  background: #164d80;
  border-color: #164d80;
}

.home-button-outline {
  color: #fff !important;
  background: rgba(8, 33, 56, 0.25);
  border-color: rgba(255, 255, 255, 0.88);
}

.home-button-outline:hover {
  color: var(--home-navy) !important;
  background: #fff;
}

.home-content {
  padding-top: 46px;
  padding-bottom: 74px;
}

.home-content h2 {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 14px;
  color: var(--home-navy);
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--home-border);
}

.home-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 3px;
  background: var(--home-blue);
  border-radius: 20px;
}

/*---------------------------------------------------------
WELCOME
---------------------------------------------------------*/
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.95fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 54px;
}

.welcome-copy p {
  font-size: 1.02rem;
  line-height: 1.72;
}

.profile-contact-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.92fr) minmax(190px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.portrait-wrap p {
  height: 100%;
  margin: 0;
}

.home-portrait {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 9px;
  box-shadow: var(--home-shadow);
}

.contact-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 9px;
  box-shadow: var(--home-shadow);
}

.contact-panel h3 {
  margin-top: 0;
  color: var(--home-navy);
}

.contact-panel p {
  margin: 0.8rem 0;
  font-size: 0.9rem;
  line-height: 1.38;
}



/*---------------------------------------------------------
CURRENT ROLES
---------------------------------------------------------*/

.role-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:55px;
  align-items:stretch;
}

.role-card{
  min-height:185px;

  padding:22px;

  background:#fff;
  border:1px solid var(--home-border);
  border-radius:9px;

  box-shadow:0 4px 14px rgba(13,44,72,.06);

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.role-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--home-shadow);
}


/*---------------------------------------------------------
HEADER (ICON + TITLE)
---------------------------------------------------------*/

.role-header{
  display:flex;
  align-items:center;
  gap:10px;

  margin-bottom:18px;
}

/* Remove Quarto paragraph spacing */

.role-header > p{
  margin:0;
}

.role-title{
  flex:1;
  margin:0;
  color:var(--home-navy);
  font-size:1.05rem;
  font-weight:700;
  line-height:1.2;
}

.role-title p{
  margin:0;
}


/*---------------------------------------------------------
ICONS
---------------------------------------------------------*/

.role-symbol{
  flex:0 0 34px;

  display:flex;
  justify-content:center;
  align-items:center;

  width:34px;
  height:34px;

  margin:0;
  padding:0;
}

.role-symbol p{
  margin:0;
  line-height:1;
}

.role-symbol i,
.role-symbol svg,
.role-symbol .svg-inline--fa{
  width:1.55rem;
  height:1.55rem;

  font-size:1.55rem;

  color:inherit;
  fill:currentColor;
}

.role-symbol.role-blue{
  color:var(--home-blue);
}

.role-symbol.role-green{
  color:var(--home-green);
}

.role-symbol.role-gold{
  color:var(--home-gold);
}

.role-symbol.role-orange{
  color:var(--home-orange);
}


/*---------------------------------------------------------
BODY
---------------------------------------------------------*/

.role-body{
  margin:0;
  color:var(--home-muted);
  font-size:.90rem;
  line-height:1.55;
}

.role-body p{
  margin:0 0 7px;
}

.role-body p:last-child{
  margin-bottom:0;
}

.role-body strong{
  display:block;
  margin-bottom:3px;
  color:var(--home-text);
  font-size:1rem;
  font-weight:700;
}




/*---------------------------------------------------------
HIGHLINGES BAND
---------------------------------------------------------*/
.highlights-band {
  margin-top: 70px;
  padding: 58px 0 62px;
  background: #eef3f6;
  border-top: 1px solid #dce4e9;
  border-bottom: 1px solid #dce4e9;
}

.highlights-band > h2 {
  margin: 0 0 32px;
  color: #294257;
  font-size: 2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.highlight-column h3 {
  margin: 0 0 22px;
  padding-bottom: 10px;
  color: #294257;
  font-size: 1.35rem;
  border-bottom: 3px solid #0b5ba7;
}

.highlight-column p {
  margin-bottom: 24px;
  line-height: 1.65;
}

.highlight-column ul {
  margin: 0;
  padding-left: 1.2rem;
}

.highlight-column li {
  margin-bottom: 22px;
  line-height: 1.6;
}

.highlight-column a {
  font-weight: 600;
  text-decoration: none;
}

.highlight-column a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .highlights-band {
    padding: 44px 0;
  }
}

/*---------------------------------------------------------
CONTANCT BANNER
---------------------------------------------------------*/
.contact-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 30px 34px;
  color: #fff;
  background: var(--home-navy);
  border-radius: 9px;
}

.contact-banner h2 {
  margin: 0 0 7px;
  color: #fff;
}

.contact-banner h2::after {
  display: none;
}

.contact-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
}

.home-button-light {
  color: var(--home-navy) !important;
  background: #fff;
  border-color: #fff;
}



/*---------------------------------------------------------
NAVIGATION BAR
---------------------------------------------------------*/
/* Existing navbar remains, with a small amount of polish. */
body:has(.homepage) .navbar {
  box-shadow: 0 2px 10px rgba(13, 44, 72, 0.11);
}


/*---------------------------------------------------------
TABLETS
---------------------------------------------------------*/
@media (max-width: 1050px) {
  .welcome-grid,
  .highlight-band {
    grid-template-columns: 1fr;
  }

  .role-grid,
  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-contact-grid {
    max-width: 700px;
  }
}


/*---------------------------------------------------------
MOBILE
---------------------------------------------------------*/
@media (max-width: 700px) {
  .home-shell {
    width: min(100% - 28px, 1180px);
  }

  .home-hero {
    min-height: 540px;
    background-position: 62% center;
  }

  .hero-copy {
    padding: 58px 0;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .profile-contact-grid,
  .role-grid,
  .focus-grid,
  .numbers-grid,
  .publication-grid,
  .lower-grid,
  .contact-banner {
    grid-template-columns: 1fr;
  }

  .role-card {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
  }

  .role-header{
    gap:10px;
    margin-bottom:16px;
  }
  
  .role-symbol{
    width:32px;
    height:32px;
    flex-basis:32px;
  }
  
  .role-symbol i,
  .role-symbol svg,
  .role-symbol .svg-inline--fa{
    width:1.4rem;
    height:1.4rem;
    font-size:1.4rem;
  }

  .role-title{
    font-size:1.05rem;
  }
  
  .home-portrait {
    max-height: 410px;
  }

  .highlight-band {
    padding: 20px;
  }

  .contact-banner {
    text-align: center;
  }
}

