/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg-primary);
  color: #111;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1, h2, h3 {
  font-weight: 400;
}

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

/* global vars */
:root {
  /* Colors */
  --color-bg-primary: #F4F2EF;
  --color-bg-subtle: #BEB7AD;
  --color-text-primary: #232527;
  --color-text-secondary: #FAFAFB;
  --color-accent-primary: #6E6C68;
  --color-accent-secondary: #C98F84;
  --color-accent-tertiary: #D9D9D9;

  /* Typography */
  --font-secondary: "neue-haas-grotesk-text", sans-serif;
  --font-primary: "area-normal", sans-serif; /*"Inter", system-ui, -apple-system, sans-serif;*/
}

/* text styles */
body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.6;
}

h1 {
  font-family: var(--font-primary);
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-secondary);
  font-size: 28px;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

p {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

small {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.4;
}

.nav a,
.btn-solid, .btn-outline,
footer,
.footer a {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

h1, h2 {
  letter-spacing: -0.02em;
}

h3 {
  letter-spacing: -0.01em;
}

.btn-solid, footer, .btn-outline:hover {
  color: var(--color-bg-primary);
  background-color: var(--color-text-primary);
}

.card, article {
  background-color: var(--color-text-secondary);
}

/* layout styles */
section {
  padding: 70px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
}

nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
}

footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}

.footer-content {
  width: 1200px;
  display: flex;
  justify-content: space-between;
}

.name-email-footer, .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

.footer-nav {
  align-items: center;
}

footer .socials-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

footer .socials-grid img {
  width: 32px;
  color: var(--color-bg-primary);
}

.btn-outline, .btn-solid {
  display: inline-block;
  padding: 16px 20px 18px 20px;
  line-height: 1;
  border-radius: 8px;
}

.btn-outline, .btn-solid:hover {
  box-shadow: inset 0 0 0 1.5px var(--color-text-primary); /* inside border */
  background-color: transparent;
  color: var(--color-text-primary);
}

.btn-outline, .btn-solid, .nav a {
  transition:
    background-color 0.3s ease 0.1s,
    color 0.3s ease 0.1s,
    box-shadow 0.3s ease 0.1s,
    text-decoration  0.3s ease 0.1s;
}


/* cards styles */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}

.homepage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 65px;
  justify-content: center;
  width: 700px;
}

.contact-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.design-approach-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.even-columns {
  width: 53vw;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.homepage-grid .card {
  width: 280px;
}

.card p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0px;
}

.homepage-grid .card .btn-solid {
  align-self: flex-end;
  margin-top: auto;
  border-radius: 100px;
  padding: 16px 17px 18px 17px;
}

.contact-grid .card {
  width: fit-content;
  height: 240px;
  justify-content: center;
}

.contact-grid a, .underline-link {
  text-decoration: underline;
  text-underline-offset: 5px;

}

.design-approach-grid .card{
  width: 65%;
}

.service-grid .card {
  width: 25vw;
}

/* homepg styles */
.hero, .contact-section {
  background-image: url(../assets/images/vector-curve.png);
  background-size: cover;        /* fills the section */
  background-position: center;   /* keeps it centered */
  background-repeat: no-repeat;
  width: 100%;
}

.hero-content h3 {
  font-size: 28px;
}

.portfolio-cta-content h2 {
  font-size: 36px;
}

.main-cta-content h3 {
  font-size: 28px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 100px;
  padding-top: 2vw;
}

.hero-title h1:first-child {
  transform: translate(45px);
}
.hero-title h1:last-child{
  transform: translate(-45px);
}

.services-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.portfolio-cta, .main-cta, .services-cta {
  border: 1.5px solid var(--color-accent-primary);
  margin: 15px;
  border-radius: 40px;
  width: calc(100vw - 30px);
}

.portfolio-cta-content {
  display: flex;
  gap: 80px;
}

.deliverables-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.deliverables-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.deliverable-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.deliverable-card h1 {
  color: var(--color-accent-primary);
padding: 20px;
}

.main-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* contactpg styles */

.secondary-pgs-hero-content {
  width: 75%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-section {
  background-position: center top; /* or center bottom */
  padding: 90px 0 180px 0;
}

/* aboutpg styles */
.about-desc-content {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-desc-content p {
  width: 40vw;
}

.services-cta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.services-cta-heading {
  margin-bottom: 25px;
}

.design-approach-grid {
  padding-bottom: 0px;
}

/* servicespg styles */
.secondary-pgs-hero-content h3 {
  font-size: 24px;
  width: 52vw;
}

.category-desc, .meta-desc p {
  font-size: 16px;
  text-transform: uppercase;
}

.service-category {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.category-header {
  width: 75%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-header.right-align, .category-header p {
  text-align: right;
}

.category-header.right-align p {
  text-align: left;
}

.service-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

.service-meta-content {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 80%;
    gap: 50px;
  }

  #payment-and-process {
    align-items: flex-end;
    text-align: right;
  }

.included-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 80%;
}

.included-content ul {
  list-style-type: none;
  width: 52vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 10px;
}

.included-list li {
  display: flex;
  width: 23vw;
  padding-left: 10px;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.included-list li p {
  margin: 0px;}

.included-icon img {
  width: 100px;
  height: 100px;
}

.deliverable-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*mobile responsiveness*/
@media (max-width: 768px) {

  /* layout widths */
  nav,
  .footer-content,
  .homepage-grid,
  .even-columns,
  .secondary-pgs-hero-content,
  .category-header,
  .included-content,
  .included-content ul {
    width: 100%;
  }

  section {
    padding: 50px 20px;
  }

  /* typography scaling */
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 15px;
  }

  /* nav */
  nav {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  nav ul {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* hero */
  .hero-title h1:first-child,
  .hero-title h1:last-child {
    transform: none;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
  }

  /* grids */
  .homepage-grid {
    gap: 30px;
  }

  .homepage-grid .card {
    width: 100%;
    max-width: 340px;
  }

  .service-grid .card {
    width: 100%;
  }

  .design-approach-grid .card,
  .contact-grid .card {
    width: 100%;
  }

  .contact-grid {
    flex-direction: column;
  }

  /* portfolio + cta sections */
  .portfolio-cta-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  /* deliverables */
  .deliverables-grid {
    gap: 30px;
  }

  /* about page */
  .about-desc-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-desc-content p {
    width: 100%;
  }

  /* services page */
  .secondary-pgs-hero-content h3,
  .included-content ul {
    width: 100%;
  }

  .included-list li {
    width: 100%;
    justify-content: flex-start;
  }

  .included-icon img {
    width: 70px;
    height: 70px;
  }

    header {
    width: 100%;
  }
  
  .main-cta-content {
    text-align: center;
  }

  /* footer */
  .footer-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    gap: 16px;
  }
  

/*hamburger menu styles*/
  /* nav layout */
  nav {
    position: relative;
    width: 100%;
    padding: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* hamburger */
  .hamburger {
    display: flex;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    height: 2px;
    width: 100%;
    background-color: var(--color-text-primary);
  }

  /* fullscreen menu */
  .nav-links {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    display: none;
    z-index: 1000;
  }

  .nav-links a {
    font-size: 24px;
  }

  /* toggle open */
  .nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }


  /* service category headers */
  .category-header,
  .category-header.right-align {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  .category-header p.category-desc {
    text-align: center;
  }

  /* service grid adjustments */
  .service-grid,
  .service-grid.even-columns {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .service-grid .card {
    width: 100%;
    max-width: 100%;
  }

  /* meta sections */
  .service-meta-content {
    width: 100%;
    gap: 20px;
    text-align: center;
  }

  #payment-and-process p {
    text-align: center;
  }

  /* included section */
  .included-content {
    width: 100%;
    gap: 20px;
  }

  .included-content ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .included-list li {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .included-icon img {
    width: 70px;
    height: 70px;
  }

  /* CTA section */
  .services-cta-content {
    text-align: center;
    gap: 15px;
  }

  .services-cta-content h3 {
    font-size: 22px;
  }

}

@media (max-width: 1200px) {

  header {
    width: 90%;
  }
  /* nav adjustments */
  nav {
    width: 95%;
    padding: 20px 0;
  }

  nav ul {
    gap: 36px;
  }

  /* hero section */
  .hero-content {
    gap: 16px;
  }

  .hero-title h1 {
    font-size: 52px;
  }

  .hero-content h3 {
    font-size: 24px;
  }

  .hero-buttons {
    gap: 60px;
    padding-top: 1.5vw;
  }

  /* services section */
  .homepage-grid {
    gap: 50px;
    width: 90%;
  }

  .homepage-grid .card {
    width: 260px;
  }

  /* portfolio CTA */
  .portfolio-cta-content {
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
    width: 90%;
  }

  .portfolio-cta-content h2 {
    font-size: 32px;
  }

  /* deliverables section */
  .deliverables-grid {
    gap: 32px;
  }

  .deliverable-card h1 {
    font-size: 36px;
    padding: 16px;
  }

  .deliverables-content h3 {
    font-size: 24px;
  }

  /* main CTA */
  .main-cta-content h3 {
    font-size: 24px;
  }

  /* footer adjustments */
  .footer-content {
    width: 95%;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  footer .socials-grid {
    gap: 20px;
  }

  /* service category headers */
  .category-header,
  .category-header.right-align {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    width: 95%;
    margin: 0 auto 40px auto;
  }

  .category-header p.category-desc {
    text-align: left;
    max-width: 55%;
  }

  /* service grid adjustments */
  .service-grid,
  .service-grid.even-columns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 95%;
    margin: 0 auto;
  }

  .service-grid .card {
    width: calc(70% - 24px);
    max-width: 480px;
    min-width: 280px;
  }

  /* included section */
  .included-content {
    width: 95%;
  }

  .included-content ul {
    gap: 20px;
  }

  .included-list li {
    width: calc(50% - 20px);
    max-width: 300px;
  }


  .category-header,
.category-header.right-align {
    flex-direction: column;      /* stack heading above description */
    align-items: flex-start;     /* keep left-aligned text */
    gap: 12px;
}

.category-header p.category-desc {
    max-width: 100%;             /* full width below heading */
}

.portfolio-cta-content {
    justify-content: center;
    align-items: center;
}

.included-content {
  width: 80%;
}
}

@media (max-width: 1440px) and (min-width: 1201px) {

  header {
    width: 95%;
  }
  nav, .footer-content {
    width: 95%;          /* shrink from 1200px to fit screen */
    margin: 0 auto;
  }

  .homepage-grid {
    width: 85%;          /* keep cards centered and spaced */
    gap: 50px;
  }

  .hero-title h1:first-child {
    transform: translate(30px); /* reduce offset for smaller width */
  }

  .hero-title h1:last-child {
    transform: translate(-30px);
  }

  .hero-buttons {
    gap: 80px;           /* smaller than desktop gap */
  }

  .portfolio-cta-content,
  .main-cta-content {
    width: 90%;           /* fit within smaller screen */
    gap: 60px;
  }

}
