/* =========================================
   WEB DESIGN — ROWAN SALVERDA
   File: css-files/web-design.css
   ========================================= */


/* =========================================
   1. THEME
   ========================================= */

.theme-web {
  --accent: #9581b0;
  --accent-light: #f0ebf5;

  --web-purple: #9581b0;
  --web-dark-purple: #6f5b8b;
  --web-pale: #f6f2f9;
  --web-cream: #faf7f2;
  --web-border: #e7dfee;
}


/* =========================================
   2. HERO
   ========================================= */

.web-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;

  gap: clamp(40px, 6vw, 90px);

  padding-top: 100px;
  padding-bottom: 105px;
}

.web-hero-copy {
  max-width: 650px;
}

.web-hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;

  margin: 0 0 25px;
}

.web-hero h1 em {
  color: var(--web-purple);
}

.web-lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);

  line-height: 1.6;
  margin-bottom: 20px;
}

.web-hero-copy > p:not(.web-lead) {
  line-height: 1.9;
  margin-bottom: 20px;
}

.web-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 35px;
}


/* =========================================
   3. HERO WEBSITE ILLUSTRATION
   ========================================= */

.web-hero-visual {
  position: relative;

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

  min-height: 430px;
  padding: 30px 10px;
}

.web-browser {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 440px;

  overflow: hidden;

  background: white;
  border: 1px solid var(--web-border);
  border-radius: 18px;

  box-shadow: 0 25px 65px rgba(80, 60, 110, 0.12);

  transform: rotate(-3deg);
}

.web-browser-top {
  display: flex;
  align-items: center;
  gap: 7px;

  height: 42px;
  padding: 0 16px;

  background: var(--web-pale);
  border-bottom: 1px solid var(--web-border);
}

.web-browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;

  background: #d9cfe4;
}

.web-browser-top span:first-child {
  background: #c7a8bd;
}

.web-browser-top span:nth-child(2) {
  background: #dfc88f;
}

.web-browser-top span:nth-child(3) {
  background: #a7c8b0;
}

.web-browser-content {
  padding: 28px;
}

.web-mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 45px;
}

.web-mock-logo {
  width: 38px;
  height: 38px;

  background: var(--web-purple);
  border-radius: 12px;
}

.web-mock-links {
  display: flex;
  gap: 9px;
}

.web-mock-links span {
  width: 30px;
  height: 5px;

  background: #ded8e6;
  border-radius: 10px;
}

.web-mock-heading {
  width: 85%;
  height: 18px;

  background: #8e79aa;
  border-radius: 6px;

  margin-bottom: 10px;
}

.web-mock-heading.short {
  width: 58%;
  margin-bottom: 25px;
}

.web-mock-paragraph {
  width: 100%;
  height: 7px;

  background: #e6e1eb;
  border-radius: 5px;

  margin-bottom: 10px;
}

.web-mock-paragraph.short {
  width: 70%;
}

.web-mock-button {
  width: 110px;
  height: 30px;

  background: var(--web-purple);
  border-radius: 8px;

  margin-top: 28px;
  margin-bottom: 40px;
}

.web-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.web-mock-cards div {
  height: 80px;

  background: var(--web-pale);
  border: 1px solid var(--web-border);
  border-radius: 10px;
}

.web-mock-cards div:nth-child(2) {
  background: #e9e0f1;
}

.web-floating-label {
  position: absolute;
  z-index: 3;

  padding: 11px 17px;

  background: white;
  border: 1px solid var(--web-border);
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(80, 60, 110, 0.08);

  color: var(--web-dark-purple);
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
}

.web-label-one {
  top: 10px;
  right: 5px;
}

.web-label-two {
  bottom: 20px;
  left: 0;
}

.web-label-three {
  bottom: 75px;
  right: -10px;
}


/* =========================================
   4. DESIGN PHILOSOPHY
   ========================================= */

.web-philosophy {
  background: var(--web-pale);
}

.web-philosophy h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;

  margin: 0 0 28px;
}

.web-philosophy h2 em {
  color: var(--web-purple);
}

.web-philosophy p:not(.eyebrow) {
  line-height: 1.95;
  margin-bottom: 20px;
}

.web-philosophy p:last-child {
  margin-bottom: 0;
}


/* =========================================
   5. GENERAL SECTION HEADINGS
   ========================================= */

.web-section-heading {
  max-width: 850px;
  margin-bottom: 50px;
}

.web-section-heading h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;

  margin: 0 0 22px;
}

.web-section-heading h2 em {
  color: var(--web-purple);
}

.web-section-heading > p:not(.eyebrow) {
  line-height: 1.9;
}


/* =========================================
   6. SERVICES
   ========================================= */

.web-services {
  background: white;
}

.web-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
  align-items: stretch;
}

.web-service-card {
  padding: 35px 30px;

  background: var(--web-cream);
  border: 1px solid var(--web-border);
  border-radius: 22px;
}

.web-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 65px;
  height: 65px;

  margin-bottom: 28px;

  background: var(--accent-light);
  border-radius: 16px;

  color: var(--web-dark-purple);

  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
}

.web-service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;

  margin-bottom: 20px;
}

.web-service-card > p {
  font-size: 0.94rem;
  line-height: 1.85;

  margin-bottom: 18px;
}

.web-service-option {
  padding-top: 20px;
  margin-top: 22px;

  border-top: 1px solid var(--web-border);
}

.web-service-option h4 {
  font-size: 1rem;
  font-weight: 700;

  margin-bottom: 12px;
}

.web-service-option p {
  font-size: 0.9rem;
  line-height: 1.85;
}


/* =========================================
   7. BRANDING TAGS
   ========================================= */

.web-branding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 25px;
}

.web-branding-tags span {
  display: inline-flex;
  align-items: center;

  padding: 9px 13px;

  background: var(--accent-light);
  border-radius: 100px;

  color: var(--web-dark-purple);
  font-size: 0.78rem;
  font-weight: 600;
}


/* =========================================
   8. EXPERIENCE
   ========================================= */

.web-experience {
  background: var(--web-pale);
}

.web-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.web-experience-card {
  padding: 35px 30px;

  background: white;
  border: 1px solid var(--web-border);
  border-radius: 22px;
}

.web-experience-number {
  display: inline-block;

  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 700;

  color: var(--web-purple);
  margin-bottom: 25px;
}

.web-experience-card h3 {
  font-size: 1.4rem;
  font-weight: 700;

  line-height: 1.4;
  margin-bottom: 12px;
}

.web-experience-subtitle {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--web-dark-purple);

  line-height: 1.6;
  margin-bottom: 20px;
}

.web-experience-card p:not(.web-experience-subtitle) {
  font-size: 0.94rem;
  line-height: 1.85;

  margin-bottom: 18px;
}

.web-experience-card p:last-child {
  margin-bottom: 0;
}


/* =========================================
   9. CONTACT
   ========================================= */

.web-contact {
  background: white;
  text-align: center;
}

.web-contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 750px;
}

.web-contact h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;

  margin: 0 0 25px;
}

.web-contact h2 em {
  color: var(--web-purple);
}

.web-contact p:not(.eyebrow) {
  line-height: 1.9;
  margin-bottom: 20px;
}

.web-email {
  display: block;

  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;

  color: var(--web-dark-purple);
  overflow-wrap: anywhere;

  margin: 15px 0 30px;
}

.web-email:hover {
  color: var(--ink);
}


/* =========================================
   10. BUTTONS
   ========================================= */

.theme-web .btn-primary {
  background: var(--web-purple);
  color: white;
}

.theme-web .btn-primary:hover {
  background: var(--web-dark-purple);
  color: white;
}

.theme-web .btn-outline {
  border-color: var(--web-purple);
  color: var(--web-dark-purple);
}

.theme-web .btn-outline:hover {
  background: var(--web-purple);
  color: white;
}


/* =========================================
   11. TABLET
   ========================================= */

@media (max-width: 1000px) {

  .web-hero {
    gap: 40px;
  }

  .web-service-grid,
  .web-experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-service-card:last-child,
  .web-experience-card:last-child {
    grid-column: 1 / -1;
  }

}


/* =========================================
   12. SMALL TABLET
   ========================================= */

@media (max-width: 850px) {

  .web-hero {
    grid-template-columns: 1fr;

    padding-top: 70px;
    padding-bottom: 75px;
  }

  .web-hero-copy {
    max-width: 100%;
  }

  .web-hero-visual {
    min-height: 390px;
    max-width: 550px;

    width: 100%;
    margin: 0 auto;
  }

  .web-browser {
    max-width: 420px;
  }

}


/* =========================================
   13. MOBILE
   ========================================= */

@media (max-width: 650px) {

  .web-hero {
    padding-top: 50px;
    padding-bottom: 55px;
  }

  .web-hero h1 {
    font-size: clamp(2.7rem, 10vw, 4rem);
  }

  .web-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .web-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .web-hero-visual {
    min-height: 300px;
    padding: 20px;
  }

  .web-browser-content {
    padding: 20px;
  }

  .web-floating-label {
    font-size: 0.72rem;
    padding: 8px 11px;
  }

  .web-label-three {
    right: 0;
  }

  .web-service-grid,
  .web-experience-grid {
    grid-template-columns: 1fr;
  }

  .web-service-card:last-child,
  .web-experience-card:last-child {
    grid-column: auto;
  }

  .web-service-card,
  .web-experience-card {
    padding: 28px 24px;
  }

  .web-section-heading {
    margin-bottom: 35px;
  }

  .web-contact .btn {
    width: 100%;
    max-width: 300px;
  }

}


/* =========================================
   14. REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  .theme-web *,
  .theme-web *::before,
  .theme-web *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}


/* =========================================
   END OF WEB DESIGN STYLESHEET
   ========================================= */

/* =========================================
   WEB DESIGN SOCIAL BUTTON COLOURS
   ========================================= */

.theme-web .social-button {
  background: var(--web-purple);
  color: #ffffff;
}

.theme-web .social-button:hover,
.theme-web .social-button:focus-visible {
  background: var(--web-dark-purple);
  color: #ffffff;
}