/* ==========================================================================
   Hopewell Partners — site styles
   Plain CSS, no framework. Change the values in :root to restyle the whole site.
   ========================================================================== */

:root {
  /* Colors */
  --page-bg: #ece8e2;   /* warm off-white behind the card */
  --card-bg: #ffffff;
  --heading: #333333;
  --text: #666666;
  --strong: #000000;
  --accent: #e09900;    /* orange: Contact button, crane paper */
  --rule: #cccccc;

  /* Type */
  --sans: europa, "Helvetica Neue", Arial, sans-serif;
  --serif: minion-pro, "Iowan Old Style", Georgia, serif;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--page-bg);  /* covers the whole window, however tall */
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: 0.3px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul { margin: 0; }

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

a { color: inherit; }

/* --- The white card ---------------------------------------------------- */

.card {
  width: 80%;
  max-width: 800px;
  /* Full window height. 100dvh accounts for mobile browser toolbars;
     the 100vh line is a fallback for older browsers. */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  /* Side padding ≈ 10% of the card (a plain % would be 10% of the *window*) */
  padding: 52px clamp(24px, 8vw, 80px) 8px;
  /* Flex column lets the footer sit at the bottom on tall screens */
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  /* Soft, warm-tinted shadow: no spread, so it fades straight into the page */
  box-shadow: 0 0 48px rgba(90, 70, 40, 0.08);
  text-align: center;
}

.site-footer { margin-top: auto; }

/* --- Masthead ---------------------------------------------------------- */

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 4px;
}

.tagline {
  font-size: 21.5px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.principal {
  color: var(--strong);
  margin-bottom: 6px;
}

/* --- Crane sequence ---------------------------------------------------- */

.cranes {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin: 36px auto 0;
  padding: 0 4%;
}

.cranes img { width: 100px; }

/* --- Dividers ---------------------------------------------------------- */

hr {
  width: 80%;
  max-width: 300px;
  height: 1px;
  margin: 40px auto;
  border: 0;
  background: var(--rule);
}

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

h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.7px;
  color: var(--heading);
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.plain-list {
  list-style: none;
  padding: 0;
}

/* --- Contact button ---------------------------------------------------- */

.contact { margin-top: 36px; }

.button {
  display: inline-block;
  padding: 0.3em 1em;
  border: 1px solid var(--accent);
  border-radius: 24px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--strong);
  transition: background-color 0.2s, color 0.2s;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  color: #fff;
}

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

.social { margin-top: 40px; }

.site-footer { padding: 40px 0 36px; }

.linkedin {
  display: inline-block;
  color: var(--text);
  transition: color 0.2s;
}

.linkedin:hover,
.linkedin:focus-visible { color: var(--accent); }

.linkedin svg { display: block; }


/* Keyboard users get a clear focus ring */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Phones ------------------------------------------------------------ */

@media (max-width: 640px) {
  .card {
    width: 100%;
    padding: 40px 24px 8px;
    box-shadow: none;
  }

  .tagline { font-size: 19px; }

  .cranes { padding: 0; }
  .cranes img { width: 25%; max-width: 90px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Let long client descriptions wrap cleanly under the name */
  .clients li { margin-bottom: 6px; }
  .clients .sep { display: none; }
  .clients em { display: block; font-size: 0.93em; }
}
