
/* ==========================================
   INYART DESIGNS
   CLEAN + ORGANIC WEBSITE
   COMPLETE STYLESHEET
========================================== */


/* ==========================================
   01. COLORS & VARIABLES
========================================== */

:root {
  --cream: #FAF9F5;
  --ivory: #F3EFE7;
  --olive: #4E6345;
  --olive-dark: #354832;
  --terracotta: #AA6D59;
  --charcoal: #30372F;
  --muted: #74776D;
  --line: #DEDCD3;
  --white: #FFFFFF;
  --green: #97A88F;
}


/* ==========================================
   02. RESET & GLOBAL STYLES
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--terracotta);
  color: white;
}


/* ==========================================
   03. TYPOGRAPHY
========================================== */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

h1 em,
h2 em {
  font-weight: 400;
  color: var(--olive);
}

.script {
  font-family: "Caveat", cursive;
  font-size: 1.25em;
  font-weight: 500;
  color: var(--terracotta);
}

.eyebrow {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}


/* ==========================================
   04. HEADER & NAVIGATION
========================================== */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 12px 7%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

/* Handwritten logo */

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* Navigation links */

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.site-header nav a {
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--terracotta);
}


/* ==========================================
   05. BUTTONS & TEXT LINKS
========================================== */

.about-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1;           /* Resets the inherited 1.7 line-height */
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.button-dark {
  background-color: #556b54;
  color: #f7f4ee !important;
}

.button-dark:hover {
  opacity: 0.9;
}

.text-link {
  display: inline-block;
  color: var(--olive);
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 5px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}


/* ==========================================
   06. HOMEPAGE HERO
========================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  min-height: 580px;
  padding: 70px 7% 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* Main homepage heading */

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 650px;
  margin: 25px 0 15px;
}

/* Description */

.hero-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 490px;
  margin: 30px 0;
}

/* Handwritten note */

.handwritten-note {
  position: relative;
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--terracotta);
  transform: rotate(-5deg);
  margin-left: 25%;
}

.hand-drawn-line {
  display: block;
  width: 100%;
  height: 12px;
  border-bottom: 2px solid var(--terracotta);
  border-radius: 50%;
  transform: rotate(-3deg);
}

/* Organic artwork on right */

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.organic-shape {
  width: min(100%, 400px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  border-radius:
    46% 54% 56% 44% /
    52% 44% 56% 48%;
  padding: 35px;
}

.organic-shape img {
  width: 100%;
  border-radius: 50%;
}

/* Bottom hero details */

.hero-bottom {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}


/* ==========================================
   07. GREEN INTRO STRIP
========================================== */

.intro-strip {
  background: var(--green);
  padding: 65px 7%;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.intro-strip p {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.5;
  color: var(--cream);
  max-width: 850px;
  margin: 0 auto;
  white-space: normal;
  overflow-wrap: break-word;
}

.intro-strip .script {
  font-family: "Caveat", cursive;
  font-size: 1.15em;
  color: #354832;
  white-space: normal;
}


/* ==========================================
   08. GENERAL SECTIONS & HEADINGS
========================================== */

.section {
  padding: 80px 7%;
  scroll-margin-top: 30px;
}

.work-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Centered Main Section Headings (Selected Work) */
.section-heading.centered-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 70px auto;
  max-width: 650px;
}

.section-heading.centered-heading h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  margin-bottom: 12px;
}

.section-heading.centered-heading .work-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
}

/* Left-aligned General Section Headings (Services, etc.) */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}


/* ==========================================
   09. PORTFOLIO CATEGORIES & DIVIDERS
========================================== */

.portfolio-category {
  padding-bottom: 75px;
  margin-bottom: 75px;
  border-bottom: 1px solid var(--line); /* Standardized divider line for all */
}

/* Removes divider and bottom margin from the last portfolio category */
.portfolio-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.portfolio-category-heading {
  margin-bottom: 35px;
}

.portfolio-category-heading .script {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.portfolio-category-heading h3 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 400;
  color: var(--charcoal);
  margin: 0 0 10px;
}

.portfolio-category-heading p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}


/* ==========================================
   10. PORTFOLIO GRID & UNIFIED CARDS
========================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 28px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Ensures all children (including buttons) only take their natural width */
  min-width: 0;
}

/* Image container frame */
.portfolio-media {
  width: 100%;
  aspect-ratio: 1 / 1;      /* Crisp, even square boxes */
  border-radius: 18px;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(48, 55, 47, 0.08);
}

/* Images fill the box edge-to-edge with no awkward margins */
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* Clarity Bloom or any standalone graphic that needs a white card backing */
.portfolio-media.white-bg {
  background-color: #ffffff;
}

.portfolio-media.white-bg img {
  object-fit: contain;
  padding: 30px;
}

.portfolio-item p {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 6px;       /* Reduced from 14px to sit right under the image */
  margin-bottom: 4px;
}


/* ==========================================
   11. PORTFOLIO LINKS & BUTTONS
========================================== */

/* Universal pill button style - hugs text cleanly */
.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  margin-top: 10px;
  padding: 0.65rem 1.35rem; /* Clean, compact padding sized to text */
  background: var(--olive);
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;           /* Resets baseline height */
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-button:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

/* Category footer action bar for multiple buttons */
.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.category-actions .portfolio-button {
  margin-top: 0;
}

/* ==========================================
   14. CREATIVE SERVICES
========================================== */

.services-section {
  background: var(--ivory);
}

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

.service {
  background: var(--cream);
  padding: 40px;
  border: 1px solid var(--line);
}

.service-number {
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 20px 0;
}

.service p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.service li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  list-style: none;
}

/* No arrows beside service items */

.service li::before {
  content: none;
}

.services-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 60px;
}

.services-footer .script {
  font-size: 1.8rem;
}


/* ==========================================
   15. ABOUT ME SECTION
========================================== */

.about-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  max-width: 1050px;
  margin: 0 auto;
}

/* Smaller oval photo */

.about-image {
  position: relative;
  width: 250px;
  max-width: 100%;
  margin: 0;
}

.about-image img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 50% / 40%;
  background: var(--ivory);
}

/* Handwritten note near photo */

.image-note {
  position: absolute;
  bottom: -25px;
  right: -15px;
  color: var(--terracotta);
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  transform: rotate(-7deg);
}

/* About text */

.about-content {
  width: 100%;
  min-width: 0;
  max-width: 650px;
}

.about-content h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin: 20px 0 25px;
}

.about-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content .text-link {
  margin-top: 20px;
}


/* ==========================================
   16. CONTACT SECTION
========================================== */

/* Contact / Call-to-Action Section */
.contact-section {
    background-color: #B9786B;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 100px 30px;
    box-sizing: border-box;
    border-radius: 0;
    text-align: center;
}

/* Heading */
.contact-section h2 {
    color: #F8F5EF;
}

/* Accent text */
.contact-section h2 span {
    color: #97A88F;
}

/* Description */
.contact-section p {
    color: #F8F5EF;
}

/* Button */
.contact-section a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.12);
    color: #F8F5EF;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-section a:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

.contact-handwritten {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: #E6B1A4;
  margin-top: 25px;
  transform: rotate(-4deg);
}

/* ABOUT ME LINKS - SIDE BY SIDE */

.about-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.about-links a:hover {
  opacity: 0.7;
}

/* ==========================================
   17. FOOTER
========================================== */

.site-footer {
  background: var(--cream);
  padding: 45px 7% 25px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-bottom: 35px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Handwritten footer logo */

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--muted);
}


/* ==========================================
   18. TABLET RESPONSIVE
========================================== */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
    gap: 35px;
  }

  .hero-art {
    max-width: 340px;
    margin: 0 auto;
  }

  .services-grid {
    gap: 25px;
  }

  .service {
    padding: 30px;
  }

  .about-layout {
    gap: 40px;
  }

  .section-heading {
    gap: 25px;
  }

}


/* ==========================================
   19. MOBILE RESPONSIVE
========================================== */

@media (max-width: 700px) {

  /* Header */

  .site-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 6%;
  }

  .brand-logo {
    width: 100px;
  }

  .site-header nav {
    justify-content: center;
    gap: 18px;
  }

  .site-header nav a {
    font-size: 0.8rem;
  }

  /* Hero */

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 6% 90px;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
    max-width: 100%;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .handwritten-note {
    font-size: 1.4rem;
    margin-left: 15%;
  }

  .hero-art {
    max-width: 280px;
  }

  .hero-bottom {
    left: 6%;
    right: 6%;
    font-size: 0.6rem;
  }

  .hero-bottom span {
    display: none;
  }

  /* Green intro */

  .intro-strip {
    padding: 60px 8%;
  }

  .intro-strip p {
    font-size: 1.45rem;
  }

  .intro-strip .script {
    white-space: normal;
  }

  /* General sections */

  .section {
    padding: 60px 6%;
  }

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

  .section-heading h2 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .section-description {
    max-width: 100%;
    margin-top: 20px;
  }

  /* Portfolio */

  .work-section {
    padding: 60px 6%;
  }

  .work-section .section-heading {
    margin-bottom: 45px;
  }

  .portfolio-category {
    margin-bottom: 65px;
  }

  .portfolio-category + .portfolio-category {
    padding-top: 45px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

/* Enforce true 1:1 square frames and full image fill on mobile */
  .portfolio-media,
  .portfolio-item .portfolio-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .portfolio-item img,
  .logo-gallery .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .portfolio-category-heading h3 {
    font-size: 1.8rem;
  }

  /* Services */

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 30px;
  }

  .service h3 {
    font-size: 1.6rem;
  }

  .services-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
  }

  /* About */

  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-image {
    width: 220px;
    margin: 0 auto;
  }

  .about-image img {
    height: 280px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-content h2 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  /* Contact */

  .contact-section {
    padding: 70px 6%;
  }

  .contact-section h2 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
   /* Contact / Call-to-Action Section */
.contact-section {
    background-color: #B9786B;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 100px 30px;
    box-sizing: border-box;
    border-radius: 0;
    text-align: center;
}

/* Heading */
.contact-section h2 {
    color: #F8F5EF;
}

/* Accent text */
.contact-section h2 span {
    color: #97A88F;
}

/* Description */
.contact-section p {
    color: #F8F5EF;
}

/* Button */
.contact-section a {
    display: inline-block;
    background-color: rgba(170, 109, 89, 1);
    color: #F8F5EF;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-section a:hover {
    background-color: rgba(170, 109, 89, 1);
}

  /* Footer */

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    width: 130px;
  }

}


/* ==========================================
   20. ACCESSIBILITY
========================================== */

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

  html {
    scroll-behavior: auto;
  }

  .button,
  .portfolio-button,
  .portfolio-item img {
    transition: none;
  }

}

