/* ==========================================================================
   Andrea Zupancich Campaign Website
   Mobile-first responsive styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --color-navy: #1a3a6e;
  --color-blue: #2b5592;
  --color-blue-light: #3a6db5;
  --color-blue-overlay: rgba(30, 80, 140, 0.75);
  --color-red: #c41230;
  --color-red-hover: #a00f28;
  --color-white: #ffffff;
  --color-gray: #666666;
  --color-gray-light: #cccccc;

  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-speed: 0.3s;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  line-height: 1.5;
  color: var(--color-navy);
  overflow-x: hidden;
  background-color: var(--color-white);
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Header (White bar with Logo at top, Nav at bottom)
   -------------------------------------------------------------------------- */
.header {
  background-color: var(--color-white);
  position: relative;
  z-index: 100;
}

.header__inner {
  display: flex;
  flex-direction: row;
  padding: 1rem 1rem 0 1rem;
}

.header__logo {
  width: 200px;
  max-width: 60%;
  align-self: center;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: end;
  width: 100%;
  padding-bottom: 1em;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 110;
}

.nav__hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* Hamburger active state */
.nav__hamburger.is-active .nav__hamburger-line {
  background-color: var(--color-white);
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav__list {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.nav__list.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__link {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-gray-light);
}

.nav__link--donate {
  color: var(--color-red);
}

.nav__link--donate:hover,
.nav__link--donate:focus {
  color: var(--color-red-hover);
}

.nav__link--active {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Hero Section (Blue Background - Contains portrait and form)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 160px);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Portrait (Inside hero)
   -------------------------------------------------------------------------- */
.portrait {
  width: 100%;
  max-width: 300px;
  position: relative;
  z-index: 10;
  right: 50px;
}

.portrait__img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Signup Card (Inside hero)
   -------------------------------------------------------------------------- */
.signup-card {
  background-color: rgba(255, 255, 255, .5);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  margin-bottom: 1rem;
}

.signup-card__donate-btn {
  display: block;
  width: 40%;
  background-color: var(--color-red);
  color: var(--color-white);
  text-align: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color var(--transition-speed);
  margin: 1rem auto 0 auto;
  border-radius:12px;
}

.signup-card__donate-btn:hover,
.signup-card__donate-btn:focus {
  background-color: var(--color-red-hover);
}

.signup-card__form-section {
  padding: 1.5rem;
}

.signup-card__heading {
  color: #c41230;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Signup Form
   -------------------------------------------------------------------------- */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-form__group {
  width: 100%;
}

.signup-form__row {
  display: flex;
  gap: 1rem;
}

.signup-form__group--email {
  flex: 2;
}

.signup-form__group--zip {
  flex: 1;
}

.signup-form__input {
  width: 100%;
  padding: 0.3rem 0.25rem;
  border: none;
  border-bottom: 1px solid var(--color-gray-light);
  background: #FFF;
  font-size: 0.9375rem;
  color: var(--color-navy);
  transition: border-color var(--transition-speed);
}

.signup-form__input::placeholder {
  color: var(--color-gray);
}

.signup-form__input:focus {
  outline: none;
  border-bottom-color: var(--color-blue);
}

.signup-form__submit {
  width: 100%;
  background-color: var(--color-white);
  color: var(--color-navy);
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-navy);
  margin-top: 0.5rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.signup-form__submit:hover,
.signup-form__submit:focus {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Footer (White space with social icons and disclaimer)
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-white);
  padding: 1.5rem 1rem 1rem 1rem;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.footer__social-link:hover,
.footer__social-link:focus {
  opacity: 0.85;
  transform: scale(1.05);
}

.footer__social-link img {
  width: 24px;
  height: 24px;
}

.footer__social-link--facebook {
  background-color: #1877f2;
  color: var(--color-white);
}

.footer__social-link--x {
  background-color: #000000;
  color: var(--color-white);
}

.footer__social-link--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--color-white);
}

.footer__disclaimer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-blue);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Page Banner (Interior pages title)
   -------------------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  padding: 2rem 1rem;
  text-align: center;
}

.page-banner__title {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* --------------------------------------------------------------------------
   About Section (Image + Text side by side)
   -------------------------------------------------------------------------- */
.about-section {
  background-color: var(--color-white);
  padding: 2rem 1rem;
}

.about-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section__image {
  flex-shrink: 0;
}

.about-section__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-section__content p {
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-section__content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Issues Section
   -------------------------------------------------------------------------- */
.issues-section {
  background-color: var(--color-white);
  padding: 2rem 1rem;
}

.issues-section__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.issue-card {
  background-color: #f8f9fa;
  border-left: 4px solid var(--color-red);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.issue-card__title {
  color: var(--color-navy);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.issue-card__text {
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Desktop Styles (768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  /* Header - Desktop */
  .header__inner {
    flex-direction: row;
    align-items: stretch;
    padding: 1rem 2rem 0 2rem;
  }

  .header__logo {
    width: 320px;
    max-width: none;
    align-self: flex-end;
    margin-bottom: 0.75rem;
  }

  /* Navigation - Desktop (aligned left, at bottom of header) */
  .nav {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__list {
    position: static;
    flex-direction: row;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-content: flex-end;
  }

  .nav__link {
    color: var(--color-navy);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .nav__link:hover,
  .nav__link:focus {
    color: var(--color-blue);
  }

  .nav__link--donate {
    color: var(--color-red);
  }

  .nav__link--active {
    color: var(--color-red);
  }

  /* Hero - Desktop */
  .hero {
    max-height: calc(100vh - 200px);
  }

  /* Hero Content - Desktop */
  .hero__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2rem 0 0;
    min-height: 500px;
  }

  /* Portrait - Desktop */
  .portrait {
    max-width: 450px;
    width: 50%;
    flex-shrink: 0;
    align-self: flex-end;
    right: 0;
  }

  /* Signup Card - Desktop */
  .signup-card {
    max-width: 320px;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 3rem;
    align-self: flex-end;
  }

  .signup-card__heading {
    font-size: 1rem;
  }

  /* Footer - Desktop */
  .footer {
    padding: 1.5rem 2rem 1.25rem 2rem;
  }

  .footer__social-link {
    width: 48px;
    height: 48px;
  }

  .footer__social-link img {
    width: 26px;
    height: 26px;
  }

  /* Page Banner - Desktop */
  .page-banner {
    padding: 2.5rem 2rem;
  }

  .page-banner__title {
    font-size: 2.5rem;
  }

  /* About Section - Desktop */
  .about-section {
    padding: 3rem 2rem;
  }

  .about-section__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .about-section__image {
    width: 45%;
  }

  .about-section__content {
    width: 55%;
  }

  .about-section__content p {
    font-size: 1.0625rem;
  }

  /* Issues Section - Desktop */
  .issues-section {
    padding: 3rem 2rem;
  }

  .issue-card {
    padding: 2rem;
  }

  .issue-card__title {
    font-size: 1.375rem;
  }

  .issue-card__text {
    font-size: 1.0625rem;
  }
}

/* ==========================================================================
   Large Desktop Styles (1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
  .header__inner {
    padding: 1.25rem 3rem 0 3rem;
  }

  .header__logo {
    width: 380px;
  }

  .nav__link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .hero {
    max-height: calc(100vh - 240px);
  }

  .hero__content {
    padding: 0 3rem 0 0;
    min-height: 550px;
  }

  .portrait {
    max-width: 550px;
  }

  .portrait__img {
    width: 75%;
  }

  .signup-card {
    max-width: 360px;
    margin-bottom: 4rem;
  }

  .signup-card__form-section {
    padding: 1.25rem;
  }

  .signup-card__heading {
    font-size: 1.0625rem;
  }

  /* Footer - Large Desktop */
  .footer {
    padding: 2rem 3rem 1.5rem 3rem;
  }

  /* Page Banner - Large Desktop */
  .page-banner {
    padding: 3rem;
  }

  .page-banner__title {
    font-size: 3rem;
  }

  /* About Section - Large Desktop */
  .about-section {
    padding: 4rem 3rem;
  }

  .about-section__inner {
    gap: 4rem;
  }

  .about-section__content p {
    font-size: 1.125rem;
  }

  /* Issues Section - Large Desktop */
  .issues-section {
    padding: 4rem 3rem;
  }

  .issue-card__title {
    font-size: 1.5rem;
  }

  .issue-card__text {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   Extra Large Desktop (1400px and up)
   ========================================================================== */
@media (min-width: 1400px) {
  .hero {
    max-height: calc(100vh - 280px);
  }

  .hero__content {
    padding: 0 4rem 0 0;
    min-height: 600px;
  }

  .portrait {
    max-width: 650px;
  }

  .portrait__img {
    width: 70%;
  }

  .signup-card {
    max-width: 380px;
    margin-bottom: 5rem;
  }

  .signup-card__form-section {
    padding: 2rem;
  }

  .signup-card__heading {
    font-size: 1.125rem;
  }

  /* Footer - Extra Large Desktop */
  .footer {
    padding: 2rem 4rem 1.5rem 4rem;
  }

  /* Page Banner - Extra Large Desktop */
  .page-banner {
    padding: 3.5rem 4rem;
  }

  /* About Section - Extra Large Desktop */
  .about-section {
    padding: 5rem 4rem;
  }

  .about-section__image {
    width: 40%;
  }

  .about-section__content {
    width: 60%;
  }

  /* Issues Section - Extra Large Desktop */
  .issues-section {
    padding: 5rem 4rem;
  }
}
